Re: Unable to send variables to MySQL table
| From: | Dan McCullough | Date: | Wed, 09 Nov 2005 20:14:37 +0000 |
| Subject: | Re: Unable to send variables to MySQL table | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-225462@lists.php.net to get a copy of this message | ||
What is the structure of that table?
On 11/9/05, Stewart Priest <smiley@stewartpriest.com> wrote:
> <snip>
> print $add_to_db;
> </snip>
>
> Thanks for all your replies! I didn't expect to get one so quick, so thanks!
>
> After I did the above, I pasted the output into MySQL. Guess what? It didn't
> work!
>
> I was only sending values for $item1_desc and $item1_cost. Because I was not
> sending values for the other columns, I was getting an error message saying
> the data was truncated for the empty variables.
>
> Now I need to figure out how to send empty values... would NULL do the job?
>
> Thanks again!
> Stewart
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>