Re newbie question
| From: | Balwant Singh | Date: | Sat, 16 Apr 2005 05:18:21 +0000 |
| Subject: | Re newbie question | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-39203@lists.php.net to get a copy of this message | ||
i am doing the following for inserting values in MYSQL DB through PHP.
$a = "hello";
$b = 1;
$query = "INSERT INTO tablename (a, b) VALUES ('$a', '$b')";
try this
with best wishes
balwant
----- Original Message -----
From: Kenn Murrah <warden@bakergrfx.com>
To: <php-db@lists.php.net>
Sent: Wednesday, May 31, 2000 2:36 PM
Subject: [PHP-DB] newbie question:
> I'm trying to accomplish a simple task, that of
> inputting text and numbers from an HTML form,
> then writing to mySQL via PHP.
>
> Oddly enough, when I attempt this with numerals,
> all is well. When I attempt it with a text string, it
> fails.
>
> Pardon the beginner question, but can anyone tell
> me what I'm likely doing wrong?
>
> Thanks in advance,
>
> Kenn