zackcez Posted June 4, 2008 Share Posted June 4, 2008 Well here's my code: <tr> <td class="$bgclass"> <? $result3 = mysql_query("SELECT * FROM affiliations WHERE uid='$this->user['memberid']'") or die(mysql_error()); $row35 = mysql_fetch_array($result3); $linkasd = $row35['link']; $title = $row35['title']; $memberid = $this->user['memberid']; echo '<html><form method='post' action='aff_update.php'>'; echo '<input type='hidden' name='uid' value='$memberid'>'; echo 'ite Url: <input value='$linkasd' type='text' size='10' maxlength='40' name='link'> <br />' echo 'Site Title: <input type='$title' size='10' maxlength='10' name='title'><br />'; echo '<input type='submit' value='Update'>'; echo '</form></html>'; ?> </td> </tr> And I get this error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /homepages/43/d240520710/htdocs/pg/modules/update.php on line 12 Thanks for reading, Zack Link to comment https://forums.phpfreaks.com/topic/108640-html-form-with-mysql/ Share on other sites More sharing options...
peranha Posted June 4, 2008 Share Posted June 4, 2008 This line echo 'ite Url: <input value='$linkasd' type='text' size='10' maxlength='40' name='link'> <br />' you do not close with ; echo 'ite Url: <input value='$linkasd' type='text' size='10' maxlength='40' name='link'> <br />'; also start php with <?php not <? unless you know it will be supported. Link to comment https://forums.phpfreaks.com/topic/108640-html-form-with-mysql/#findComment-557166 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.