Jump to content

Html Form With MySql


zackcez

Recommended Posts

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

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

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.