Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

67 users online



Tutorial/Guide: Error and basic debugging

Tutorial/Guide: Error and basic debugging

Currently viewing this thread: 1 (0 members and 1 guests)


Thread closed

Page 2 out of 2
Jeb

Jeb

Status: Offline!

Ok, here we go once again:

You have an error in your SQL syntax near 'VALUES ('', 'wes', md5('theman')' at line 1

The problem there is there is no md5() command in MySQL. Your SQL syntax needs to read like this instead:

PHP:

<?php

INSERT INTO blah_table VALUES 
('''wes''".md5('theman')."';

?>

What I did there is I md5()'d the text BEFORE I placed it in the MySQL query. That works.

___________________

Adam Goossens -- PHP is my mother tounge.

Linux: ( kernel.org | winehq ) -- f33l the p0w3r.

Nobody replying to your questions? Getting flamed? Getting told to RTFM? Ask your questions the right way.

epyon

epyon

16, staying Asian.
Status: Offline!

this thread is not for asking questions.
make a new thread with your question.

___________________

http://whatpulse.bounceme.net/sig/epyon.png

Page 2 out of 2
Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0167 seconds.