Re: Insert Error 1136
| From: | Ignacio Vazquez-Abrams | Date: | Thu, 30 Nov 2000 16:45:27 +0000 |
| Subject: | Re: Insert Error 1136 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28073@lists.php.net to get a copy of this message | ||
On Thu, 30 Nov 2000, David Smith wrote:
> I am new to PHP trying to create an insert only I am getting the followin
> error:
>
> 1136: Column count doesn't match value count at row 1
>
> Code:
>
> [snip]
> $query = "insert into members_db values ('$Username', '$Password',
> '$Email', '$FullName', '$Address', '$City',
> '$State', '$Zip', '$Phone')";
> $result = mysql_db_query ("combat", $query);
> [snip]
>
Real simple: the number of values you're trying to insert doesn't match the
number of fields in the table.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>