Ave,

Simple problem.. 
Following is a statement I�m inserting in my PHP Script... But it doesn�t
work because I�m not able to figure out how to put the variables with the
trim() function in the SQL insert statement:

$sql = INSERT INTO tblname (USERID,FULLNAME,SSN,STARTDATE) VALUES
(trim($row[USERID]),trim($row[FULLNAME]),trim($row[SSNO]),trim($row[STARTDAT
E]));

I can of course predefine a unique variables for each of the $row[]
variables with the trim() function and then use those variables in my INSERT
statement... But I�m sure there is a way this statement can work, I�m just
not able to figure it out and would love if anyway made a suggestion.

Thanks,

Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
251 River Street
Troy, NY 12180

Tel: (518) 266-0909 x154
Fax: (518) 266-0909
Email: [EMAIL PROTECTED]
http://www.informed-sources.com

Reply via email to