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>"; } 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. Link to comment https://forums.phpfreaks.com/topic/251914-help-t_variable/#findComment-1291677 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.