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