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

----- Original Message -----
From: Kenn Murrah <[EMAIL PROTECTED]>
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

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to