Dear guru’s
I have been google-ing for the problem but other solutions or tips I cant apply to my script, or dont know how to.
The folowing is my target:
I have 2 databases, 1 with prices, 1 with names of different providers of the product.
They both have a field to link those together, so far so good.
I’ve put the names into a dropdown menu and am able to choose one and it will get displayed on the page neatly formatted into a table.
Just one thing that really bugs me is that I can get the Id code of the provider from the seccond DB echo’d onto the page, but I cant get the Name of the provider from the first DB echo’d.
To clarify my point, just click on the “geef prijzen” button on the following page:
http://flexdatawebsite.nl/index.php/tarieven
The script is the following:
[code]<?php
//Variables
$username="";
$password="";
$database=“prijzen”;
$tabel2=“Ziekenfonds”;
$value= $_POST[“value”];
//connecting to database
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( “Unable to select database”);
$query2=“SELECT * FROM $tabel2”;
$result2=mysql_query($query2);
$num2=mysql_numrows($result2);
mysql_close();
?>
Tarieven Zorgverzekeraarcode:
<?php echo $value; ?> PROBLEM ECHO<?php echo $zorg; ?>
Prestatiecode | Omschrijving | Kostprijs | Geldig t/m |
---|---|---|---|
<?php echo $f2; ?> | <?php echo $f3; ?> | <?php echo $f4; ?> | <?php echo $f5; ?> |