Jump to content

[SOLVED] Insert Error


timmah1

Recommended Posts

I'm getting an error with this code, and I cannot for the life of me, find it.

$sql = "INSERT INTO clients(clientID, client, clientName, date, addr, city, state, zip, company, ext, cell, fax, email, level, tax, latedays, amount, terms, days, desc, active) VALUES(
				'$clientID',
				'$client',
				'$clientName',
				'$date',
				'$addr',
				'$city',
				'$state', 
				'$zip',
				'$company',
				'$ext',
				'$cell',
				'$fax',
				'$email',
				'$level',
				'$tax',
				'$latedays',
				'$amount',
				'$terms',
				'$days',
				'$desc',
				'$active');";
				mysql_query($sql)
				or die("Sorry, there was a problem adding client ".mysql_error());

 

The error I'm getting is this

Sorry, there was a problem adding client 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 'desc, status) VALUES( '0CZS', '', '', '', '', ' at line 1

 

Can anybody spot the error?

 

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/131788-solved-insert-error/
Share on other sites

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.