kpetsche20 Posted July 3, 2008 Share Posted July 3, 2008 Error Parse error: syntax error, unexpected T_IF in /home/webmaste/public_html/realestate/new/admin/listclients.php on line 10 Code <table width="550" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td width="522"><p>List Clients </p> <?php //index.php?p=listclients&name=Clients Name -- Displays Client Info if($_GET['update'] { if (mysql_query("UPDATE tblpeople SET `indfirstname` = '".$_POST['firstname']."' WHERE `indid`= '".$_POST['id']."'")) { echo "Product Type was successfully updated <br /><br />"; } else { echo "Product Type was not successfully updated <br /><br />"; } } Link to comment https://forums.phpfreaks.com/topic/113038-parse-error-need-help/ Share on other sites More sharing options...
thatsgreat2345 Posted July 3, 2008 Share Posted July 3, 2008 if($_GET['update'] should be if($_GET['update']) you forgot the ending parentheses Link to comment https://forums.phpfreaks.com/topic/113038-parse-error-need-help/#findComment-580675 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.