[PHP-WIN] Re: [PHP-DB] Re: [PHP] $_POST in MySQL query issue...

2003-10-16 Thread Peter Beckman
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

[PHP-WIN] Re: [PHP-DB] $_POST in MySQL query issue...

2003-10-16 Thread Peter Beckman
On Thu, 16 Oct 2003, Adam Reiswig wrote: > $sql="insert into $table set Name = '$_POST["elementName"]'"; > > Unfortunately this and every other combination I can think of, > combinations of quotes that is, does not work. I believe the source of > the problem is the quotes within quotes within quo

[PHP-WIN] Re: $_POST in MySQL query issue...

2003-10-16 Thread Lang Sharpe
> $sql="insert into $table set Name = '$_POST["elementName"]'"; The problem with this is that you need to use curly braces around the variable being substituted in the string. Also use single quotes around the array index. $sql="insert into $table set Name = '{$_POST['elementName']}'"; See the

[PHP-WIN] Re: $_POST in MySQL query issue...

2003-10-16 Thread DvDmanDT
$sql="insert into $table set Name = '".$_POST["elementName"]."'"; or even better: $sql="insert into ".$table." set Name = '".$_POST["elementName"]."'"; But the method both Jake and Bao suggested will also work (temporary var)... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "Adam

[PHP-WIN] Re: [PHP] $_POST in MySQL query issue...

2003-10-16 Thread BAO RuiXian
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

php-windows Digest 17 Oct 2003 00:35:41 -0000 Issue 1959

2003-10-16 Thread php-windows-digest-help
php-windows Digest 17 Oct 2003 00:35:41 - Issue 1959 Topics (messages 21790 through 21796): Re: Require Session example 21790 by: Sachin Problem in eregi 21791 by: karthikeyan 21792 by: Svensson, B.A.T. (HKG) Error calling php_info 21793 by: Yosvel Reyes

[PHP-WIN] $_POST in MySQL query issue...

2003-10-16 Thread Adam Reiswig
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 create is basically as follow

Re: [PHP-WIN] Error calling php_info

2003-10-16 Thread Frank M. Kromann
Hi, The correct function name is phpinfo(); without the underscore. - Frank > Hi All: > > Enviroment: php 4.xx Apache 2.0 Internet Explorer 6.0 Windows OS > > I'm Just a php beginner and I'm testing some code like > > php_info(); > ?> > > and this code just not work for me i got the follow

[PHP-WIN] Error calling php_info

2003-10-16 Thread Yosvel Reyes
Hi All: Sorry if this message has been send more than once... I have some problems with my account. Enviroment: php 4.xx Apache 2.0 Internet Explorer 6.0 Windows OS I'm Just a php beginner and I'm testing some code like and this code just not work for me i got the following error Fatal erro

[PHP-WIN] Error calling php_info

2003-10-16 Thread Yosvel Reyes
Hi All: Enviroment: php 4.xx Apache 2.0 Internet Explorer 6.0 Windows OS I'm Just a php beginner and I'm testing some code like and this code just not work for me i got the following error Fatal error: Call to undefined function: php_info() in D:\Program Files\Apache Group\Apache2\htdocs\Ete

Re: [PHP-WIN] Problem in eregi

2003-10-16 Thread Svensson, B.A.T. (HKG)
"[0-9A-Z]*" On Thu, 2003-10-16 at 15:03, karthikeyan wrote: > Hi Guys, > > I have some problems in eregi function. > > Quiclky i need this.. can somebody provide me soln? > 1. need to get numbers alone as well as alphabets in a input box. But > cannot jus have alpbhabets alone > > Thanks > >

[PHP-WIN] Problem in eregi

2003-10-16 Thread karthikeyan
Hi Guys, I have some problems in eregi function. Quiclky i need this.. can somebody provide me soln? 1. need to get numbers alone as well as alphabets in a input box. But cannot jus have alpbhabets alone Thanks Regards Karthikeyan.S

[PHP-WIN] Re: Require Session example

2003-10-16 Thread Sachin
Hie.. Write a script as follows in the file where you want to unregister variables visit following link, might be useful to you http://www.digiways.com/articles/php/sessauth/ -- Thanks and Regards Sachin Ramdasi Solversa Technologies Pvt. Ltd. Pune - India http://www.solversa.com Office: (+91)

php-windows Digest 16 Oct 2003 11:54:31 -0000 Issue 1958

2003-10-16 Thread php-windows-digest-help
php-windows Digest 16 Oct 2003 11:54:31 - Issue 1958 Topics (messages 21783 through 21789): Require Session example 21783 by: Rinku Shivnani 21784 by: karthikeyan 21785 by: Mac Intyre, Steven 21786 by: Socheat 21787 by: Rinku Shivnani 21788 by:

[PHP-WIN] Re: Require Session example

2003-10-16 Thread Sachin
Hi Rinku This is is example to use for session : Now you can acess this session variable in another php file as follows : Thanks and Regards Sachin Ramdasi Solversa Techno

RE: [PHP-WIN] Require Session example

2003-10-16 Thread Rinku Shivnani
If possible send me some php form example pls. Regards, Rinku -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Require Session example

2003-10-16 Thread Rinku Shivnani
Dear all pls give me full detail pls. Regards, Rinku -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Require Session example

2003-10-16 Thread Socheat
by the way , on the following example , you don't use session_register ? when they use session_register ? and could you tell on how to use Kill session -Original Message- From: karthikeyan [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 1:29 AM To: Rinku Shivnani; [EMAIL PRO

Re: [PHP-WIN] Require Session example

2003-10-16 Thread Mac Intyre, Steven
what do you mean session example ? http://www.phpfreaks.com/tutorials/41/0.php Thats how i learnt sessions. Steven On 16 Oct 2003 at 13:51, Rinku Shivnani wrote: > Dear all, > > I need session example. Can any of you send me some session > example in php pls. I wd be thankful to you. > >

Re: [PHP-WIN] Require Session example

2003-10-16 Thread karthikeyan
//start the session - in all the pages session_start(); //store it like that $_SESSION["name"]= "Rinku"; //use it anywher like this echo $_SESSION["name"]; - Original Message - From: "Rinku Shivnani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 16, 2003 1:51 PM

[PHP-WIN] Require Session example

2003-10-16 Thread Rinku Shivnani
Dear all, I need session example. Can any of you send me some session example in php pls. I wd be thankful to you. Regards, Rinku -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php