PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 6th, 2012, 12:31 AM
big0mike's Avatar
big0mike big0mike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Glendale AZ
Posts: 158 big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 20 h 11 m 16 sec
Reputation Power: 92
PHP5 - Another update prepared statement not working

Sorry, guys. I seem to have an endless supply of stupid problems. I've been staring at this damn thing for an hour, trying different things and I can't get it to do what it should be doing. I'm sure it's embarrassingly simple (like my last fail to fetch) but I can't see it...

PHP Code:
echo "Donkey: ".$donkey."<br />";
echo 
"Password: ".$password."<br />";

        
$update "UPDATE donkeys SET password = ? WHERE donkey = ? LIMIT 1";
        if (
$stmt $conn->prepare($update)) {

        echo 
"Made it into update loop...<br />";

            
$stmt->bind_param('si'$password$donkey);
            if (!
$updated $stmt->execute()) {echo $stmt->error;}
            
$stmt->close();
        }
        else {echo 
"Broke in IF statement 88 - 92<br />";} 
Donkey and password are echoing proper values.
$conn is opened and used several other times in the program.
donkeys is a valid table and password and donkey are valid columns with the correct and expected data types.

Most of it is copied/pasted from other scripts but even comparing side by side I'm failing to an error.

When run I get the donkey and password echoed followed by the "Broke" line echoed. It's not even entering the if ($stmt = $conn->prepare($update)) loop so I don't get a $stmt->error.

Any ideas?

Thanks,

Mike

Reply With Quote
  #2  
Old September 6th, 2012, 03:11 AM
requinix's Avatar
requinix requinix is online now
Still alive
Click here for more information.
 
Join Date: Mar 2007
Location: Washington, USA
Posts: 12,698 requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)requinix User rank is General 120th Grade (Above 100000 Reputation Level)  Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1Folding Points: 417516 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 5 Months 1 Week 4 Days 4 h 52 m 36 sec
Reputation Power: 8969
Send a message via AIM to requinix Send a message via MSN to requinix Send a message via Yahoo to requinix Send a message via Google Talk to requinix
Quote:
Originally Posted by big0mike
It's not even entering the if ($stmt = $conn->prepare($update)) loop so I don't get a $stmt->error.

Which means it couldn't prepare() that statement, right? Check for errors about that.

Reply With Quote
  #3  
Old September 6th, 2012, 10:38 AM
big0mike's Avatar
big0mike big0mike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Glendale AZ
Posts: 158 big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 20 h 11 m 16 sec
Reputation Power: 92
Quote:
Originally Posted by requinix
Which means it couldn't prepare() that statement, right? Check for errors about that.

That's my understanding. Which means there's either an error in $update or $conn. I've used $conn twice in this same script previous to this instance with no problem so it must be in $update but I have yet to see the error...

I just manually did the update in phpMyAdmin so I'm pretty sure $update is correct and I know the values are correct and expected and appropriate for the columns they'll be placed in.

Googling has yet to be much help... I'll keep looking...

Reply With Quote
  #4  
Old September 6th, 2012, 10:42 AM
gw1500se gw1500se is online now
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2003
Posts: 2,877 gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Year 2 Weeks 13 h 37 m 3 sec
Reputation Power: 581
Rather than an 'if' statement use a try/catch and output the error on the exception.
__________________
There are 10 kinds of people in the world. Those that understand binary and those that don't.

Reply With Quote
  #5  
Old September 6th, 2012, 11:25 AM
big0mike's Avatar
big0mike big0mike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Glendale AZ
Posts: 158 big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 20 h 11 m 16 sec
Reputation Power: 92
Quote:
Originally Posted by gw1500se
Rather than an 'if' statement use a try/catch and output the error on the exception.
Never seen or heard of that so I'm not sure this is correct but based on the samples I saw it should work...

PHP Code:
 $update "UPDATE donkeys SET password = ? WHERE donkey = ? LIMIT 1";
        try {
$stmt $conn->prepare($update);}
        catch (
Exception $e) {throw new Exception('Broke on 89'0$e);}
        die(
'Stopped on 90'); 
But I get no output but Stopped on 90 from the die() statement. I assume if there was an error I should get Broke on 89 followed by the error ($e)?

Reply With Quote
  #6  
Old September 6th, 2012, 11:31 AM
gw1500se gw1500se is online now
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2003
Posts: 2,877 gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Year 2 Weeks 13 h 37 m 3 sec
Reputation Power: 581
PHP Code:
 $update "UPDATE donkeys SET password = ? WHERE donkey = ? LIMIT 1";
   try {
         
$stmt $conn->prepare($update);
   }
   catch (
PDOException $e) {
        die(
"Prepare error: ".$e->getMessage());
  } 

Reply With Quote
  #7  
Old September 6th, 2012, 12:15 PM
big0mike's Avatar
big0mike big0mike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Glendale AZ
Posts: 158 big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 20 h 11 m 16 sec
Reputation Power: 92
Quote:
Originally Posted by gw1500se
PHP Code:
 $update "UPDATE donkeys SET password = ? WHERE donkey = ? LIMIT 1";
   try {
         
$stmt $conn->prepare($update);
   }
   catch (
PDOException $e) {
        die(
"Prepare error: ".$e->getMessage());
  } 

Doesn't even die()... I also tried mysqli_sql_exception (found googling) since I'm not using PDO with the same results.

Reply With Quote
  #8  
Old September 6th, 2012, 12:25 PM
gw1500se gw1500se is online now
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2003
Posts: 2,877 gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Year 2 Weeks 13 h 37 m 3 sec
Reputation Power: 581
If it doesn't die then it is not throwing an exception. In other words the prepare was successful. The the problem may be in the bind. Use try/catch on that.

Reply With Quote
  #9  
Old September 6th, 2012, 01:43 PM
big0mike's Avatar
big0mike big0mike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Glendale AZ
Posts: 158 big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 20 h 11 m 16 sec
Reputation Power: 92
Quote:
Originally Posted by gw1500se
If it doesn't die then it is not throwing an exception. In other words the prepare was successful. The the problem may be in the bind. Use try/catch on that.

Hmmm... if this was my original code:
PHP Code:
if ($stmt $conn->prepare($update)) {

        echo 
"Made it into update loop...<br />";

            
$stmt->bind_param('si'$password$donkey);
            if (!
$updated $stmt->execute()) {echo $stmt->error;}
            
$stmt->close();
        } 
and it never output "Made it into update loop..." then wouldn't that imply that the prepare didn't work? And thus it never gets the chance to make it to the bind_param?

What are the chances that the prepare is not working yet not throwing an error?

I'll give the try/catch on bind_param a shot and see what happens...

Reply With Quote
  #10  
Old September 6th, 2012, 01:53 PM
gw1500se gw1500se is online now
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jul 2003
Posts: 2,877 gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level)gw1500se User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Year 2 Weeks 13 h 37 m 3 sec
Reputation Power: 581
One might think that but the documentation says it either succeeds or fails returning false or an exception depending on error handling. If it was returning false previously then it will throw an exception when try/catch is used. The implication is that it stopped failing when you added try/catch.

Reply With Quote
  #11  
Old September 6th, 2012, 03:02 PM
ptr2void ptr2void is offline
I haz teh codez!
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Dec 2003
Posts: 2,476 ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level)ptr2void User rank is General 18th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 2 Days 5 h 44 m 36 sec
Reputation Power: 2194
I don't use mysqli, but you could try

php Code:
Original - php Code
  1. $stmt = $conn->prepare($update);
  2. if (!$stmt)
  3. {
  4.     echo "Statement preparation error: {$conn->error}<br />";
  5. }
  6. else
  7. {
  8.     echo "Made it into update loop...<br />";
  9.     if (!$stmt->bind_param('si', $password, $donkey))
  10.     {
  11.         echo "Bind param error: {$stmt->error}<br />";
  12.     }
  13.     else
  14.     {
  15.         $updated = $stmt->execute();
  16.         if (!$updated)
  17.         {
  18.             echo "Execute error: {$stmt->error}<br />";
  19.         }
  20.     }
  21.     $stmt->close();
  22. }
__________________
I ♥ ManiacDan & requinix

This is a sig, and not necessarily a comment on the OP:
Please don't be a help vampire!

Reply With Quote
  #12  
Old September 6th, 2012, 03:31 PM
big0mike's Avatar
big0mike big0mike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Glendale AZ
Posts: 158 big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 20 h 11 m 16 sec
Reputation Power: 92
PHP Code:
 $stmt $conn->prepare($update);
if (!
$stmt
{
    echo 
"Statement preparation error: {$conn->error}<br />";
}
else

that gave "Statement preparation error:" but no error was actually output.

Reply With Quote
  #13  
Old September 6th, 2012, 03:40 PM
SimonJM SimonJM is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2006
Posts: 2,108 SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level)SimonJM User rank is General 8th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 4 h 41 m
Reputation Power: 1485
A very silly question, since you don't show the connect, but you ARE using mysqli?
__________________
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc

Reply With Quote
  #14  
Old September 6th, 2012, 04:01 PM
big0mike's Avatar
big0mike big0mike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Glendale AZ
Posts: 158 big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level)big0mike User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 20 h 11 m 16 sec
Reputation Power: 92
Quote:
Originally Posted by SimonJM
A very silly question, since you don't show the connect, but you ARE using mysqli?
Given some of my really dumb problems, not so silly. But, yes. mysqli is the only thing I know...
PHP Code:
function dbConnect($type) {

    if (
$type == "query") {
        
$user "...";
        
$pwd "...";
        }
    elseif (
$type == "admin") {
        
$user "...";
        
$pwd "...";
        }
    else {
        exit (
"Unrecognized connection type");
        }
    
$conn = new mysqli("localhost"$user$pwd"...") or die ("Cannot open database");
    return 
$conn;
    } 
I didn't bother posting it because it works in two different spots before this problem section as well as every other part of the site.

And, just for giggles...
PHP Code:
--
-- 
Table structure for table `donkeys`
--

CREATE TABLE IF NOT EXISTS `donkeys` (
  `
donkeyint(10unsigned NOT NULL AUTO_INCREMENT,
  `
last_namevarchar(48NOT NULL,
  `
first_namevarchar(48NOT NULL,
  `
nick_namevarchar(48) DEFAULT NULL,
  `
emailvarchar(48NOT NULL,
  `
passwordvarchar(65) DEFAULT NULL,
  `
phonevarchar(12) DEFAULT NULL,
  `
joineddate DEFAULT NULL,
  `
photovarchar(32) DEFAULT NULL,
  `
approvedvarchar(1NOT NULL DEFAULT 'N',
  `
invitevarchar(8NOT NULL DEFAULT 'Y',
  `
adminvarchar(1NOT NULL DEFAULT 'N',
  
PRIMARY KEY (`donkey`),
  
UNIQUE KEY `email` (`email`),
  
KEY `name` (`last_name`,`first_name`)
ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=56 

Reply With Quote
  #15  
Old September 6th, 2012, 04:36 PM
AndrewSW's Avatar
AndrewSW AndrewSW is offline
JavaScript is not spelt java
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2011
Location: Landan, England
Posts: 743 AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level)AndrewSW User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 23 h 1 m 13 sec
Reputation Power: 164
password is a reserved word in mysql so should be enclosed in back-ticks `password`.

[Did you change it from key which is also a reserved word ]

Luckily, though, donkey is not a reserved word
Edit This sounds ruder than I intended..

Last edited by AndrewSW : September 6th, 2012 at 04:42 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PHP5 - Another update prepared statement not working

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap