note 31461 rejected from function.mysql-list-fields by alindeman
| From: | alindeman@php.net | Date: | Tue, 22 Apr 2003 22:26:31 +0000 |
| Subject: | note 31461 rejected from function.mysql-list-fields by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-46956@lists.php.net to get a copy of this message | ||
correct me if I am wrong but using mysql insert into dont you have to do something like
insert into $tablename VALUES('". $username ."','". $password
."','". $fname ."','". $lname ."')
If I can get someones cooperation I'd like to create a function that
a) inputs field names/variables into the values section of the statement
b)automatically inserts the padding
i.e.
insert into $tablename values();
the output might be something like the insert into statement above for any questions please email
jmbllm@yahoo.com
I want to do this because it is getting confusing to make sure the syntax for the insert into
statement is correct.
Thanks in advance!