Jump to content

[SOLVED] Error with PHP /Mysql;- Wrong Syntax


paulman888888

Recommended Posts

Hi;

Ill get to the point.

 

This code should work but i don't no why it doesn't.

$query="INSERT INTO `requests` (`name`, `email`, `msg`, `status`)
VALUES ('$name, '$email', '$msg', `$status`)";

And in my table there is id, name, email, msg, status.

id=int

name=varchar

email=varchar

msg=blob

status=int

 

Thankyou for all help in advance

Paul

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.