How do I comment out SQL query

Hi,
How do I comment out SQL query in a php page…? for instance,

I tried /*… */ but it doesnt work so I think it must be wrong then?

$sql_query ="
INSERT INTO root_contacts_cfm(
	/*
	cnt_firstname,
	cnt_lastname,
	cnt_organisation,
	cnt_address,
	cnt_postcode,
	cnt_telephone,
	*/
	cnt_email1,
	cnt_email2,
	cnt_comments,
	cnt_key,
	cnt_created
)
VALUES (
	/*
	'$cnt_firstname',
	'$cnt_lastname',
	'$cnt_organisation',
	'$cnt_address',
	'$cnt_postcode',
	'$cnt_telephone',
	*/
	'$cnt_email1',
	'$cnt_email2',
	'$cnt_comments',
	'$cnt_key',
	NOW()
	)
";

many thanks,
Lau

why do you say that it doesn’t work? what happens?

is there a syntax error? what might it be?

Double-dash on each line.

My search terms: sql comment.

According to the manual, your example is spot on for multi-line comments.

sorry it works actually with this for the multiple lines comment /*… */

i tested on a wrong file :stuck_out_tongue:

thank you. it works now. thanks for the info. very helpful. :smiley:

thanks for the tips. thank you. :smiley: