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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.