Jump to content

Recommended Posts

guys,

i also need help on this. i have a page which displays the email list and has a "update" and "delete" text button on the right side. the delete button is already working fine but for my update button, i am getting an error:
Parse error: syntax error, unexpected $end in /home/sinag/public_html/admean/emailupdate.php on line 183
whenever i am clicking the button

this is the code for my update button
[code]<a href="emailupdate.php?eid=<? echo $uRow[0]; ?>" onclick="return confirmupdate()" class="pixeltracefooter">Update Item</a> [/code]

and this is the code for my emailupdate.php

http://www.sinagtala.net/emailupdate.phps

thanks!
I had a similar problem with an "update" button. I was also trying to append a URL in the same manner and it wasn't working. A friend recommended putting it in a form and passing the variable in a hidden input field and it worked. You might try that. It's a bit more code but, hey, if it works...groovy gravy!

Mark
In emailupdate.php where does the ELSE and WHILE statement continue to? If that is it then you forgot to close them.

[code]

    //query Start                   
    $uSql = "SELECT full_name, company, email, category FROM emailadd WHERE UserID='$eid'";
    $uResult = mysql_query($uSql, $connection);
    if(!$uResult){
    echo 'no data found';
    }
    else{
    while($uRow = mysql_fetch_row($uResult)){
    //query end
    ?>

[/code]
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.