pixeltrace Posted November 8, 2006 Share Posted November 8, 2006 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 183whenever i am clicking the buttonthis 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.phphttp://www.sinagtala.net/emailupdate.phpsthanks! Quote Link to comment https://forums.phpfreaks.com/topic/26542-need-help-on-posting-displaying-items-on-database/ Share on other sites More sharing options...
markkanning Posted November 8, 2006 Share Posted November 8, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/26542-need-help-on-posting-displaying-items-on-database/#findComment-121431 Share on other sites More sharing options...
pixeltrace Posted November 8, 2006 Author Share Posted November 8, 2006 Hi,i already did that but its quite messy and my client didn't like that way.any better ideas for that?thanks! Quote Link to comment https://forums.phpfreaks.com/topic/26542-need-help-on-posting-displaying-items-on-database/#findComment-121433 Share on other sites More sharing options...
littlejones Posted November 8, 2006 Share Posted November 8, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/26542-need-help-on-posting-displaying-items-on-database/#findComment-121435 Share on other sites More sharing options...
pixeltrace Posted November 9, 2006 Author Share Posted November 9, 2006 Hi,,I dont get it, where will i place the closing code and what is the code?thanks and hoping you could help me with this Quote Link to comment https://forums.phpfreaks.com/topic/26542-need-help-on-posting-displaying-items-on-database/#findComment-122144 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.