RE: [PHP] Whats wrong with this query?

2003-11-10 Thread Wouter van Vliet
> -Original Message- > From: Dave Carrera [mailto:[EMAIL PROTECTED] > Sent: maandag 10 november 2003 17:45 > To: [EMAIL PROTECTED] > Subject: [PHP] Whats wrong with this query? > > $addamysqluser = mysql_query("grant > select,insert,drop,update,delete,create,index,alter on $_POST[f2] to >

Re: [PHP] Whats wrong with this query?

2003-11-10 Thread Chris Shiflett
--- Dave Carrera <[EMAIL PROTECTED]> wrote: > $addamysqluser = mysql_query("grant > select,insert,drop,update,delete,create,index,alter on $_POST[f2] to > [EMAIL PROTECTED] IDENTIFIED by $_POST[f3]"); > > What is wrong with the above php based mysql_query? I'm not sure about the query itself, but

RE: [PHP] Whats wrong with this query?

2003-11-10 Thread Chris W. Parker
Dave Carrera on Monday, November 10, 2003 8:45 AM said: > $addamysqluser = mysql_query("grant > select,insert,drop,update,delete,create,index,alter on $_POST[f2] to > [EMAIL PROTECTED] IDENTIFIED by $_POST[f3]"); > > What is wrong with the above php based mysql_quer

Re: [PHP] Whats wrong with this query?

2003-11-10 Thread Raditha Dissanayake
Hi Dave, I could be wrong cause i am answering without running your code : 1) your mysql user account probably does not have grant privileges. good thing too. It's very dangerous to just run a grant query like this because it can so easily be abused by a malicious user. (of course you might have

RE: [PHP] whats wrong with this?

2002-08-28 Thread Richard Black
A single = will assing a value, even inside an if statement A double = (ie ==) will perform a comparison between 2 values, returning true if they evaluate to the same value, false otherwise A triple = (===) will do the same as ==, but also check that the types of the 2 variables match. Check ou

RE: [PHP] whats wrong with this?

2002-08-28 Thread Liam . Gibbs
(1) for($day = 1; $day < 32; $day++){ (2) if($day = $system_day){ (3) echo "match!"; (4) } . . . Easy enough. One of those things the programmer may not spot, but a casual observer might. In line #2, you have a single =. A comparative = is a double equal (==). The line should

RE: [PHP] whats wrong with this?

2002-08-28 Thread Hankley, Chip
you need to use "==" instead of "=" "==" is used when comparing values (i.e. is this "==" to that) "=" is used to set something's value (i.e. this "=" that) -chip -Original Message- From: Chris Barnes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 28, 2002 11:12 AM To: Php-General (

Re: [PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy
thnks, i didn't write the function so i've now replaced it with something better. - Original Message - From: "Stuart Dallas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002 2:30 PM Subject: Re: [PHP] whats wrong with this functio

Re: [PHP] whats wrong with this function

2002-07-03 Thread Stuart Dallas
On Wednesday, July 3, 2002, 1:47:05 PM, "Adrian Murphy" wrote: > whats wrong with this. > it's getting stuck somewhere "Somewhere" isn't very helpful. When asking for help be sure to include as much information as possilble. Laying out your code so the structure can be seen... http://";, strtol

Re: [PHP] whats wrong with this function

2002-07-03 Thread Adrian Murphy
relax friend.i was just asking - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Adrian Murphy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002 2:08 PM Subject: Re: [PHP] whats wrong with this functi

Re: [PHP] whats wrong with this function

2002-07-03 Thread 1LT John W. Holmes
Yes, your problem is it doesn't work. HTH, ---John Holmes... PS: Think that's a worthless answer? Well...same for your question... - Original Message - From: "Adrian Murphy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002 8:47 AM Subject: [PHP] whats wrong wit

Re: [PHP] whats wrong with this function

2002-07-03 Thread Jason Wong
On Wednesday 03 July 2002 20:47, Adrian Murphy wrote: > whats wrong with this. > it's getting stuck somewhere Stick in some echo statements at strategic points in the loops to find out _where_ it is getting stuck. > function urls_clickable($string) { > for($n=0; $n < strlen($string); $n++) > {

Re: [PHP] Whats wrong with this code?

2001-07-22 Thread Tom Carter
do you mean.. $message = $IP. $PORT. $SYSTEM . $PAGE; . not , $message = $IP, $PORT, $SYSTEM, $PAGE; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread Brad Wright
The only data in the table (Login_TB) is one row: Login = a, and Pass= password('a'). > From: Rasmus Lerdorf <[EMAIL PROTECTED]> > Date: Mon, 16 Jul 2001 20:24:44 -0700 (PDT) > To: Brad Wright <[EMAIL PROTECTED]> > Cc: PHP General List <[EMAIL PROTECTED]&g

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread Brad Wright
2:53:57 +0930 > To: Brad Wright <[EMAIL PROTECTED]>, PHP General List > <[EMAIL PROTECTED]> > Subject: Re: [PHP] Whats wrong with this code? > > On Tue, 17 Jul 2001 12:37, Brad Wright wrote: >>> From: Rasmus Lerdorf <[EMAIL PROTECTED]> >>> Date: Mon, 1

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread Rasmus Lerdorf
> Rasmus, > you are dead right, it is returning 0 rows. I checked that before > submiytting the original post. Sorry, i should have mentioned it. I guess > the question is, why is it returning no rows? Uh, that is something we can't answer without having access to your actual data. -Rasmus --

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread David Robley
On Tue, 17 Jul 2001 12:37, Brad Wright wrote: > > From: Rasmus Lerdorf <[EMAIL PROTECTED]> > > Date: Mon, 16 Jul 2001 19:56:29 -0700 (PDT) > > To: Brad Wright <[EMAIL PROTECTED]> > > Cc: PHP General List <[EMAIL PROTECTED]> > > Subject: Re: [PHP]

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread Brad Wright
) > To: Brad Wright <[EMAIL PROTECTED]> > Cc: PHP General List <[EMAIL PROTECTED]> > Subject: Re: [PHP] Whats wrong with this code? > >> Hi all, Im getting mighty frustrated with this peice of code. It checks the >> first condition no probs, but the second IF state

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread Rasmus Lerdorf
> Hi all, Im getting mighty frustrated with this peice of code. It checks the > first condition no probs, but the second IF statement doesnt work. So it > will stop if it finds a du[plicate login, but cannot find duplicate > passwords. the $num_rows2 variable always gets the value '0' even when th