Re newbie question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
To: <php-db@xxxxxxxxxxxxx>
Sent: Wednesday, May 31, 2000 2:36 PM
Subject:  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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux