Jump to content

need help on posting displaying items on database


pixeltrace

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]

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.