Jump to content

help T_variable


ecabrera

Recommended Posts

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.