ecabrera Posted November 27, 2011 Share Posted November 27, 2011 i did include my connection to the db Parse error: syntax error, unexpected T_VARIABLE LIne 52 line 52 is $id if ($_POST['editbtn']){ $query = mysql_query("SELECT * FROM venue"); $row = mysql_fetch_assoc($query) $id = $row['id']; $venuename= $row['venuename']; $address= $row['address']; $phone = $row['phone']; $vemail = $row['vemail']; $state = $row['state']; $town= $row['town']; $zip= $row['zip']; $seats = $row ['seats']; $form = "<form action ='$site/editvenue.php' method='post'> <table> <tr> <td>Venue Name</td> <td><textarea rows='2' cols='20' name='venuename'></textarea></td> </tr> </table> </form>"; } Quote Link to comment https://forums.phpfreaks.com/topic/251914-help-t_variable/ Share on other sites More sharing options...
Adam Posted November 27, 2011 Share Posted November 27, 2011 You're missing a semi-colon after the mysql_fetch_assoc() call. Quote Link to comment https://forums.phpfreaks.com/topic/251914-help-t_variable/#findComment-1291677 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.