Results 1 to 8 of 8
Hybrid View
-
25th Mar 2012, 09:09 PM #1Respected Member
So you can see the query and try it in phpmyadmin change your code to this:
PHP Code:$newName = $_POST['sName'];
$newUrl = $_POST['sURL'];
$newRate = $_POST['sRate'];
$newEmail = $_POST['sEmail'];
$reason = $_POST['sReason'];
$q = "update wcddl_sites set name='$newName',url='$newUrl',rate='$newRate',email='$newEmail' WHERE id='". mysql_real_escape_string($sid) ."'";
echo "query is : $q";
mysql_query($q);
Lock Down Reviewed by Lock Down on . Updating the DB Well here's my code: $newName = $_POST; $newUrl = $_POST; $newRate = $_POST; $newEmail = $_POST; $reason = $_POST; mysql_query("update wcddl_sites set name='$newName',url='$newUrl',rate='$newRate',email='$newEmail' WHERE id='". mysql_real_escape_string($sid) ."'"); Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Latest Post not updating for me
By Ifirst in forum Feedback and SuggestionsReplies: 3Last Post: 27th Oct 2012, 09:41 PM -
Updating Wordpress
By MightyMike in forum WordpressReplies: 3Last Post: 16th May 2012, 06:24 PM -
google has started updating PR
By pompom in forum General DiscussionReplies: 6Last Post: 8th Nov 2011, 04:33 PM -
WWW A Record isn't updating
By BounceR in forum Webmaster DiscussionReplies: 5Last Post: 16th Mar 2011, 09:50 AM -
Error when updating avatars
By system32 in forum vBulletinReplies: 13Last Post: 27th Jul 2009, 09:07 PM
themaCreator - create posts from...
Version 3.56 released. Open older version (or...