Okay, here is the error I'm getting.
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /srv/www/htdocs/web_test/trans.php on line 1517
And here is the code in question...
$sql="SELECT * FROM active WHERE last_name=$_GET[lname_select]";
$conn = db_trans_connect();
$result = mysql_query($sql,$conn);
echo '<form METHOD=POST ACTION="trans.php?index_radio=8&submit=Submit">';
echo '<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>';
echo '<TBODY>';
// title row
echo '<TR>';
echo '<TD align=center colspan=10 rowspsan=4><H1>SPECIAL EDUCATION TRANSPORTATION REQUEST</H1></TD>';
echo '</TR>';
while ($row=mysql_fetch_array($result)) {
The form is supposed to be populated based on a selection from a dropdown on the previous page. I'm able to echo variable passed from the previous page. e.g...
echo $_GET[lname_select];
...but I can't get it to correctly pass into my new query string to pull from the database.
Let me know if I need to provide anymore info. I've been stuck on this for an hour.
Thanks in advance,
Scott