On Fri, 17 Oct 2003, BAO RuiXian wrote:
> I see you can achieve this by two ways:
>
> 1. Take out all the inside quotes (single or double) like the following:
>
> $sql="insert into $table set Name = $_POST[elementName]";
This is bad. Using no quotes MAY work, but it is considered a
Adam Reiswig wrote:
> Greetings to all. I am trying for the life of me to place a
$_POST[]
> variable in my MySQL query. I am running the latest stable
> versions of
> PHP, MySQL and Apache 2 on my Win2kPro machine. My
> register_globals are
> set to off in my php.ini. My code I am attempting c
Adam Reiswig wrote:
$table="elements";
$sql="insert into $table set Name = '$elementName'";
This works with register_globals set to on. But, I want to be able to
turn that off. My code then, I am guessing, be something as follows:
$table="elements";
$sql="insert into $table set Name = '$_POS
3 matches
Mail list logo