I have page#1 where I create a drop-down menu with entries "OneName" from a db table. When I make a selection I click NEXT page and post that "OneName" on page#2 as:
<?php echo $OneName; ?>
Now what I really need on page#2 is to get the rest of the fields' data of the same table from a table row corresponding to OneName... Here's how i do it but it doesn't work:
<?
$db = mysql_connect("mydb", "user", "pass");
mysql_select_db("db_name",$db);
$query = mysql_query("select * from MY_TBL where OneName = '$OneName'");
echo $query; //testing to see what's returned
?>