Login
Search
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 1
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2008, 08:17 AM
Wonkie Wonkie is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Default

I need MySql Help?


heres the issue

Could Not Execute SQL Query ERROR:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key, fname, lname, password, email) values('b0c72ca2804fcfe3ac43dd7bd48e5' at line 1

code:

$sql = "insert into temp_mems (key, fname, lname, password, email)
values('$code', '$fname', '$lname', '$password', '$email' )";

$rs=mysql_query($sql, $con)or die ('Could Not Execute SQL Query ERROR:' . mysql_error() );

any help?


$code=md5(uniqid(rand(), true));
is the code var and the table is fine its a problem with inserting the code its set to varchar 65 length not null and rest are defaults
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is SQL, mySQL, Oracle 10g vs PostgreSQL 8 vs MySQL 5? yahooquestionsforyou PostgreSQL 8 06-19-2008 07:33 PM

Your Ad Here

All times are GMT. The time now is 03:23 PM.