Re: [PHP] mysql_query blocking

2009-06-28 Thread Tom Worster
On 6/27/09 7:09 PM, "Daniel Kolbo" wrote: > Tom Worster wrote: >> On 6/27/09 3:15 PM, "Daniel Kolbo" wrote: >> >>> When a MySQL table is locked a php call of mysql_query() that requires >>> that table will hang as the request blocks at the MySQL server until the >>> table is unlocked. Is there

Re: [PHP] mysql_query blocking

2009-06-28 Thread Lester Caine
Daniel Kolbo wrote: Hello, When a MySQL table is locked a php call of mysql_query() that requires that table will hang as the request blocks at the MySQL server until the table is unlocked. Is there a way to stop a mysql_query from hanging (by setting a time limit)? Daniel I can understand yo

Re: [PHP] mysql_query blocking

2009-06-27 Thread Phpster
On Jun 27, 2009, at 7:17 PM, Daniel Kolbo wrote: Phpster wrote: Bastien Sent from my iPod On Jun 27, 2009, at 4:13 PM, Daniel Kolbo wrote: Ashley Sheridan wrote: On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: Ashley Sheridan wrote: On Sat, 2009-06-27 at 15:15 -0400, Daniel

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Phpster wrote: > > > Bastien > > Sent from my iPod > > On Jun 27, 2009, at 4:13 PM, Daniel Kolbo wrote: > >> Ashley Sheridan wrote: >>> On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: Ashley Sheridan wrote: > On Sat, 2009-06-27 at 15:15 -0400, Daniel Kolbo wrote: >> Hello,

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Bastien Koert wrote: > Why issue/do a lock at all? Shouldn't need a large lock at read > > bastien > > On Saturday, June 27, 2009, Daniel Kolbo wrote: >> Ashley Sheridan wrote: >>> On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: Ashley Sheridan wrote: > On Sat, 2009-06-27 at 15:1

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Tom Worster wrote: > On 6/27/09 3:15 PM, "Daniel Kolbo" wrote: > >> When a MySQL table is locked a php call of mysql_query() that requires >> that table will hang as the request blocks at the MySQL server until the >> table is unlocked. Is there a way to stop a mysql_query from hanging >> (by se

Re: [PHP] mysql_query blocking

2009-06-27 Thread Phpster
Bastien Sent from my iPod On Jun 27, 2009, at 4:13 PM, Daniel Kolbo wrote: Ashley Sheridan wrote: On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: Ashley Sheridan wrote: On Sat, 2009-06-27 at 15:15 -0400, Daniel Kolbo wrote: Hello, When a MySQL table is locked a php call of mysql

Re: [PHP] mysql_query blocking

2009-06-27 Thread Bastien Koert
On Saturday, June 27, 2009, Bastien Koert wrote: > Why issue/do a lock at all? Shouldn't need a large lock at read > > bastien > > On Saturday, June 27, 2009, Daniel Kolbo wrote >> Ashley Sheridan wrote: >>> On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: Ashley Sheridan wrote: >>

Re: [PHP] mysql_query blocking

2009-06-27 Thread Bastien Koert
Why issue/do a lock at all? Shouldn't need a large lock at read bastien On Saturday, June 27, 2009, Daniel Kolbo wrote: > Ashley Sheridan wrote: >> On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: >>> Ashley Sheridan wrote: On Sat, 2009-06-27 at 15:15 -0400, Daniel Kolbo wrote: >

Re: [PHP] mysql_query blocking

2009-06-27 Thread Tom Worster
On 6/27/09 3:15 PM, "Daniel Kolbo" wrote: > When a MySQL table is locked a php call of mysql_query() that requires > that table will hang as the request blocks at the MySQL server until the > table is unlocked. Is there a way to stop a mysql_query from hanging > (by setting a time limit)? would

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Ashley Sheridan wrote: > On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: >> Ashley Sheridan wrote: >>> On Sat, 2009-06-27 at 15:15 -0400, Daniel Kolbo wrote: Hello, When a MySQL table is locked a php call of mysql_query() that requires that table will hang as the request

Re: [PHP] mysql_query blocking

2009-06-27 Thread Ashley Sheridan
On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: > Ashley Sheridan wrote: > > On Sat, 2009-06-27 at 15:15 -0400, Daniel Kolbo wrote: > >> Hello, > >> > >> When a MySQL table is locked a php call of mysql_query() that requires > >> that table will hang as the request blocks at the MySQL server

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Ashley Sheridan wrote: > On Sat, 2009-06-27 at 15:15 -0400, Daniel Kolbo wrote: >> Hello, >> >> When a MySQL table is locked a php call of mysql_query() that requires >> that table will hang as the request blocks at the MySQL server until the >> table is unlocked. Is there a way to stop a mysql_qu

Re: [PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Daniel Kolbo wrote: > Hello, > > When a MySQL table is locked a php call of mysql_query() that requires > that table will hang as the request blocks at the MySQL server until the > table is unlocked. Is there a way to stop a mysql_query from hanging > (by setting a time limit)? > > The php.ini

Re: [PHP] mysql_query blocking

2009-06-27 Thread Ashley Sheridan
On Sat, 2009-06-27 at 15:15 -0400, Daniel Kolbo wrote: > Hello, > > When a MySQL table is locked a php call of mysql_query() that requires > that table will hang as the request blocks at the MySQL server until the > table is unlocked. Is there a way to stop a mysql_query from hanging > (by settin

[PHP] mysql_query blocking

2009-06-27 Thread Daniel Kolbo
Hello, When a MySQL table is locked a php call of mysql_query() that requires that table will hang as the request blocks at the MySQL server until the table is unlocked. Is there a way to stop a mysql_query from hanging (by setting a time limit)? The php.ini directive max_execution_time does not

Re: [PHP] mysql_query takes long time...

2009-05-31 Thread Phpster
You can also stack the queries to run multiple rows in one insert Insert into table values (row1col1, row1col2,'row1col3'), (row2col1,row2col2,'row2col3'),...(rowNcol1,rowNcol2,'rowNcol3') Bastien Sent from my iPod On May 31, 2009, at 8:18, דניאל דנון wrote: I've a file of about 500,000

Fw: [PHP] mysql_query takes long time...

2009-05-31 Thread flint
- Original Message - From: "flint" To: "דניאל דנון" Sent: Sunday, May 31, 2009 9:21 AM Subject: Re: [PHP] mysql_query takes long time... have you actually tried running the script against your data? i'm running MySQL/PHP on an old P3/933Mhz box with onl

[PHP] mysql_query takes long time...

2009-05-31 Thread דניאל דנון
I've a file of about 500,000 lines, each line contains a string in variety of lengths, but no less then 3 characters and usually no more then 120. average of about 80, and maximum of about 250. I made a PHP script to fetch the data (using fgets), process it and insert it to a MySQL database.

[PHP] mysql_query - CREATE DATABASE

2009-02-09 Thread R B
Hello, When i create a mysql database with the next command: mysql_query("CREATE DATABASE my_db",$con) In the server is created the database, but usually the name is created with a prefix. In this case: someuser_my_db How can i detect with PHP the complete name of the new database created? Th

Re: [PHP] mysql_query and my.cnf?

2009-01-20 Thread Ashley Sheridan
On Tue, 2009-01-20 at 17:51 +0100, Jan G.B. wrote: > 2009/1/20 Waynn Lue : > > Hey guys, > > > > I've been noticing that large queries cause a connection lost to mysql > > server problem, so I'm trying to figure out what settings I need to tweak in > > my my.cnf file to get it to work. > > Have yo

Re: [PHP] mysql_query and my.cnf?

2009-01-20 Thread Jan G.B.
2009/1/20 Waynn Lue : > Hey guys, > > I've been noticing that large queries cause a connection lost to mysql > server problem, so I'm trying to figure out what settings I need to tweak in > my my.cnf file to get it to work. Have you had a look on your (mysql) Logfiles and/or are you echo'ing mysql

Re: [PHP] mysql_query and my.cnf?

2009-01-20 Thread Richard Heyes
> ... Hi, You might get more help on the MySQL list. -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 17th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql_query and my.cnf?

2009-01-20 Thread Waynn Lue
Hey guys, I've been noticing that large queries cause a connection lost to mysql server problem, so I'm trying to figure out what settings I need to tweak in my my.cnf file to get it to work. I know people change the max-allowed-packet variable, but I'm trying to figure out what the correct secti

RE: [PHP] mysql_query() vs query_database()

2008-10-01 Thread Jay Blanchard
[snip] RE: mysql_query() vs query_database() What is the differences between mysql_query and query_database? Are both compatible with PHP 5 and MySQL 5? Is one faster than the other? [/snip] query_database appears to be someone's function for generic database queries and is not a part of the PHP

[PHP] mysql_query() vs query_database()

2008-10-01 Thread Keith Spiller
Hi, RE: mysql_query() vs query_database() What is the differences between mysql_query and query_database? Are both compatible with PHP 5 and MySQL 5? Is one faster than the other? Thank you for your help. Keith

Re: [PHP] mysql_query won't work!!!

2004-04-15 Thread John Nichel
Jeff Ostapchuk wrote: ok, this same query, works EVERYWHERE ELSE, why won't it work now? it returns to me: Warning: Supplied argument is not a valid MySQL result resource $query_result = mysql_query("SELECT * FROM AotH_Users"); while ($row = mysql_fetch_array($query_result, MYSQL_NUM)){ Why don't

RE: [PHP] mysql_query won't work!!!

2004-04-15 Thread Jay Blanchard
[snip] ok, this same query, works EVERYWHERE ELSE, why won't it work now? it returns to me: Warning: Supplied argument is not a valid MySQL result resource $query_result = mysql_query("SELECT * FROM AotH_Users"); while ($row = mysql_fetch_array($query_result, MYSQL_NUM)){ [/snip] When are you g

[PHP] mysql_query won't work!!!

2004-04-15 Thread Jeff Ostapchuk
ok, this same query, works EVERYWHERE ELSE, why won't it work now? it returns to me: Warning: Supplied argument is not a valid MySQL result resource $query_result = mysql_query("SELECT * FROM AotH_Users"); while ($row = mysql_fetch_array($query_result, MYSQL_NUM)){ -- PHP General Mailing List

[PHP] [solved][PHP] mysql_query problem with multi dim arrays

2004-04-05 Thread Andy B
> $sql = "INSERT INTO x VALUES ({$_SESSION['add']['name']} "; > > oh, and unless add & name are actually constants you should always wrap > them in single quotes. (php will covert the non-exstent constant into a > string a issue an E_NOTICE + its overhead) well that got me on the right track..

Re: [PHP] mysql_query problem with multi dim arrays

2004-04-05 Thread Jochem Maas
user curly braces around your arrays in the string e.g: $sql = "INSERT INTO x VALUES ({$_SESSION['add']['name']} "; oh, and unless add & name are actually constants you should always wrap them in single quotes. (php will covert the non-exstent constant into a string a issue an E_NOTICE + its

Re: [PHP] mysql_query problem with multi dim arrays

2004-04-05 Thread Richard Harb
Tuesday, April 6, 2004, 1:21:52 AM, you wrote: > hi... > i cant cut and paste my exact mysql query because it takes the '' > stuff out doubles the $'s and the ,'s in the whole thing (dont know > why but anyways...)... > i have a query that goes something like this: > mysql_query("insert into $Gue

[PHP] mysql_query problem with multi dim arrays

2004-04-05 Thread Andy B
hi... i cant cut and paste my exact mysql query because it takes the '' stuff out doubles the $'s and the ,'s in the whole thing (dont know why but anyways...)... i have a query that goes something like this: mysql_query("insert into $GuestbookTable values(NULL, '$_SESSION[add][date]', '$_SESSIO

Re: [PHP] mysql_query not returning true on innodb

2003-09-15 Thread daniel
i am doing a straight mysql_query without an autocommit=0 should i be doing an autocommit=0 if i am doing a read ? > Hi there i have a random issue where mysql_query is not returning true > sometimes on an innodb table which will trigger a custom error, this > happens randomly if i go back to that

[PHP] mysql_query not returning true on innodb

2003-09-15 Thread daniel
Hi there i have a random issue where mysql_query is not returning true sometimes on an innodb table which will trigger a custom error, this happens randomly if i go back to that page its fine ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_query

2003-07-06 Thread Chris Knipe
> one last question for the day... > if in one cell i have two names. ex 'mary eleanor' > and i want to search by typing 'ele' with name LIKE '$name%' will not give > me mary eleanor as a result... > any ideas? *sighs* LIKE '%$name%' As I said... Read the MySQL Manual. -- PHP General M

Re: [PHP] mysql_query

2003-07-06 Thread Kevin Fradkin
Thnx! :) one last question for the day... if in one cell i have two names. ex 'mary eleanor' and i want to search by typing 'ele' with name LIKE '$name%' will not give me mary eleanor as a result... any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] mysql_query

2003-07-06 Thread Chris Knipe
- Original Message - From: "Kevin Fradkin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 06, 2003 6:40 PM Subject: Re: [PHP] mysql_query > the problem is if i put 821000 i will have as result all number > 821000 > including 83 >

Re: [PHP] mysql_query

2003-07-06 Thread Kevin Fradkin
the problem is if i put 821000 i will have as result all number > 821000 including 83 and i only need numbers begining with the numbers i entered.. i will try now the other thing!.. thnx! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] mysql_query

2003-07-06 Thread Burhan Khalid
On Sunday, July 6, 2003, 7:26:06 PM, Kevin wrote: KF> and now.. if in one cell i have for example... "John Matheus" KF> when i do the query i have to put exactly john matheus to find it... KF> is there any way to just write jo and search in every cell that contains KF> those words? try this SELE

[PHP] mysql_query

2003-07-06 Thread Kevin Fradkin
and now.. if in one cell i have for example... "John Matheus" when i do the query i have to put exactly john matheus to find it... is there any way to just write jo and search in every cell that contains those words? example... i have 1 column with 5 rows each 6 numbers inside : 821554 821674 81

RE: [PHP] mysql_query

2003-07-06 Thread Sævar Öfjörð
Hmm. Should have been like this.. -Original Message- From: Sævar Öfjörð [mailto:[EMAIL PROTECTED] Sent: 6. júlí 2003 14:04 To: [EMAIL PROTECTED] Subject: Re: [PHP] mysql_query SELECT * FROM my_table WHERE var1='$var1' AND var2='$var2' -

Re: [PHP] mysql_query

2003-07-06 Thread Sævar Öfjörð
SELECT * FROM my_table WHERE var1='$var1' AND var2='$var2' --^ you use AND -Original Message- From: Kevin Fradkin [mailto:[EMAIL PROTECTED] Sent: 6. júlí 2003 13:43 To: [EMAIL PROTECTED] Subject: [PHP] mysql_query hi... 1 q

[PHP] mysql_query

2003-07-06 Thread Kevin Fradkin
hi... 1 question... how can i show in a table the query i'm trying to make this is what i want : select * from my_table where var1='$val1' /* here comes the trouble cause i want to use 2 instead of only one... */ var2='$val2' how you have to use it for more than one? where var1='$val1' ??? var2

Re: [PHP] mysql_query maximum size

2002-11-04 Thread 1LT John W. Holmes
> Just wondering if there is a maximum size to the sql that can be passed as a > mysql_query, either from mysql itself or from the php side of things? > > I ask only cause I have a limiting clause on my select and I have no idea how > big it will grow and I would prefer to write it in such a way th

[PHP] mysql_query maximum size

2002-11-04 Thread kevin
Hi there, Just wondering if there is a maximum size to the sql that can be passed as a mysql_query, either from mysql itself or from the php side of things? I ask only cause I have a limiting clause on my select and I have no idea how big it will grow and I would prefer to write it in such a wa

[PHP] mysql_query w/ JOIN results giving unexpected results w/ PHP (not regular SQL though)

2002-09-18 Thread Thoenen, Peter Mr. EPS
Hello everybody, Having an issue where I am getting unexpected results with a simple query and at a lost to explain why. At the end is my code. The problem I believe though I have narrowed down to the following statement. 1. When I run SELECT accounts.id, accounts.action, people.last, people.

[PHP] mysql_query() & mail() - something weird is going on !

2002-09-12 Thread Chris Knipe
Lo all, I get a timeout on line 523 of my code (posted and marked below). However, I fail to see where the timeout is occurring, and even debugging (mysql_error()) doesn't report anything wrong! I'm baffled as to what exactly is causing this timeout The code is currently on Apache (Win32)

RE: [PHP] mysql_query() ERROR

2002-08-21 Thread Jay Blanchard
[snip] This is a query that I am sending to mysql. The problem is that sometimes in the variable "$message" characters like ")" will get posted and when they do it makes mysql die. I can only assume that mysql thinks that the ")" in the $message variable is meant to close the sql query, but I am h

[PHP] mysql_query() ERROR

2002-08-21 Thread Fifield, Mike
This is a query that I am sending to mysql. The problem is that sometimes in the variable "$message" characters like ")" will get posted and when they do it makes mysql die. I can only assume that mysql thinks that the ")" in the $message variable is meant to close the sql query, but I am having t

Re: [PHP] mysql_query: how to uniquely identify the query???

2002-03-05 Thread hugh danaher
To: <[EMAIL PROTECTED]> Sent: Tuesday, March 05, 2002 5:30 AM Subject: [PHP] mysql_query: how to uniquely identify the query??? > Hi, > I'm a bit a newbie at the mysql-php tandem, > but I wanted to ask a pretty basic question > > Supose you do > x=mysql_query(/someque

[PHP] mysql_query: how to uniquely identify the query???

2002-03-05 Thread Simon De Deyne
Hi, I'm a bit a newbie at the mysql-php tandem, but I wanted to ask a pretty basic question Supose you do x=mysql_query(/somequery/) // fetch a row and then later you do y=mysql_query(/somequery/) If you want to fetch the following row for the query in x, you should probably make the distincti

Re: [PHP] mysql_query() problem

2001-12-17 Thread Girish Nath
al Message - From: "Brian Rue" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 17, 2001 8:33 AM Subject: [PHP] mysql_query() problem > Hi, > > I'm getting the error > <> > > from this code: > > function validateUser($us

[PHP] mysql_query() problem

2001-12-16 Thread Brian Rue
Hi, I'm getting the error <> from this code: function validateUser($username,$password) { $conn = connectToMySQL(); mysql_select_db($db_name,$conn); $query="select * from members where username='".$username."' AND password='".$password."'"; $result = mysql_query($query,$conn); if (mysql_nu

Re: [PHP] PHP: mysql_query()

2001-08-14 Thread Alnisa Allgood
At 5:25 PM +0200 8/14/01, _lallous wrote: >I have PHPMyAdmin 2.21 >I only see "GO" button, where can I upload my SQL file? > Well my ISP uses PHPMyAdmin 2.10, which I can't imagine would be that different from 2.21. Basically, if I load, and click on the database name in the left top corner:

Re: [PHP] PHP: mysql_query()

2001-08-14 Thread _lallous
I have PHPMyAdmin 2.21 I only see "GO" button, where can I upload my SQL file? "Alnisa Allgood" <[EMAIL PROTECTED]> wrote in message news:p05100309b79edae8263f@[63.202.15.82]... > At 4:05 PM +0200 8/14/01, _lallous wrote: > >Basically I have PHPMyAdmin... > >If I am to paste the 33,000+ lines SQL

Re: [PHP] PHP: mysql_query()

2001-08-14 Thread Alnisa Allgood
At 4:05 PM +0200 8/14/01, _lallous wrote: >Basically I have PHPMyAdmin... >If I am to paste the 33,000+ lines SQL query the PHPMyAdmin would take more >than 30secs to execute it which will make everything fail! >Anyway, I solved it. Check the recent post in the same thread about SQL2PHP >script. >

Re: [PHP] PHP: mysql_query()

2001-08-14 Thread _lallous
Basically I have PHPMyAdmin... If I am to paste the 33,000+ lines SQL query the PHPMyAdmin would take more than 30secs to execute it which will make everything fail! Anyway, I solved it. Check the recent post in the same thread about SQL2PHP script. "Alnisa Allgood" <[EMAIL PROTECTED]> wrote in m

Re: [PHP] PHP: mysql_query()

2001-08-14 Thread Alnisa Allgood
At 2:21 PM +0200 8/14/01, lallous wrote: >I can't execute MySql via system() I have no rights! > Generally ISPs either give you shell rights or access to PHPMyAdmin, if they give access to a MySQL database. Otherwise, you'd never be able to add tables, or modify data. If PHPMyAdmin is installe

Re: [PHP] PHP: mysql_query()

2001-08-14 Thread lallous
om file and > execute it. > > do > system ( "mysql < sql.fie"); > or > `mysql < sql.fie`; > > dont forget to use -D and -p if User is required. > > - Original Message - > From: "lallous" <[EMAIL PROTECTED]> > To: <[EMAIL

Re: [PHP] PHP: mysql_query()

2001-08-14 Thread Ben-Nes Michael
lt;[EMAIL PROTECTED]> Sent: Tuesday, August 14, 2001 1:29 PM Subject: Re: [PHP] PHP: mysql_query() > No actually I have a .SQL file that is a complete dump of my database. > All i want to do is the execute with mysql_query() the whole .SQL which will > create databases and tables a

Re: [PHP] PHP: mysql_query()

2001-08-14 Thread lallous
rs > Ben-Nes Michael - Manager > Tel: 972-4-6991122 > http://sites.canaan.co.il > -- > > - Original Message - > From: "lallous" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, August 14, 2001 12:59 PM > Subject: [PHP] PHP: mysql

Re: [PHP] PHP: mysql_query()

2001-08-14 Thread Ben-Nes Michael
t;[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 14, 2001 12:59 PM Subject: [PHP] PHP: mysql_query() > Actually the mysql_query() seems to accept only one statement at a time. > > Any work around so i can do query suchs: > > mysql_query(" > SELECT

[PHP] PHP: mysql_query()

2001-08-14 Thread lallous
Actually the mysql_query() seems to accept only one statement at a time. Any work around so i can do query suchs: mysql_query(" SELECT 1+1; SHOW DATABASES; USE database1; SELECT * FROM table1; "); Just multiple commands seperated with ';' ? (as if using the Mysql command prompt) -- PHP Gene

Re: [PHP] mysql_query problem (FINALLY FIXED !!!!!!!)

2001-07-17 Thread Brad Wright
is ol' fool. Cheers, Brad > From: "Christopher Allen" <[EMAIL PROTECTED]> > Date: Tue, 17 Jul 2001 09:11:05 -0500 > To: "Brad Wright" <[EMAIL PROTECTED]> > Subject: Re: [PHP] mysql_query problem (more suggestions) > > not right because this

Re: [PHP] mysql_query problem (more suggestions)

2001-07-17 Thread Alvin Tan
> > From: Alvin Tan <[EMAIL PROTECTED]> > > Date: Tue, 17 Jul 2001 14:38:58 +0800 > > To: Brad Wright <[EMAIL PROTECTED]>, Jason Murray > > <[EMAIL PROTECTED]>, PHP General List > > <[EMAIL PROTECTED]> > > Subject: Re: [PHP] mysql_query pr

Re: [PHP] mysql_query problem (more suggestions)

2001-07-16 Thread Brad Wright
lvin Tan <[EMAIL PROTECTED]> > Date: Tue, 17 Jul 2001 14:38:58 +0800 > To: Brad Wright <[EMAIL PROTECTED]>, Jason Murray > <[EMAIL PROTECTED]>, PHP General List > <[EMAIL PROTECTED]> > Subject: Re: [PHP] mysql_query problem (more suggestions) > > Hi ag

Re: [PHP] mysql_query problem (more suggestions)

2001-07-16 Thread Alvin Tan
right wrote: >Jason, >I have tried what yoiu suggested. result is the same. > > > From: Jason Murray <[EMAIL PROTECTED]> > > Date: Tue, 17 Jul 2001 15:28:11 +1000 > > To: "'Brad Wright'" <[EMAIL PROTECTED]>, Alvin Tan > > <[EMAI

Re: [PHP] mysql_query problem (more suggestions)

2001-07-16 Thread Brad Wright
Jason, I have tried what yoiu suggested. result is the same. > From: Jason Murray <[EMAIL PROTECTED]> > Date: Tue, 17 Jul 2001 15:28:11 +1000 > To: "'Brad Wright'" <[EMAIL PROTECTED]>, Alvin Tan > <[EMAIL PROTECTED]>, PHP General List <[EMAIL

RE: [PHP] mysql_query problem (more suggestions)

2001-07-16 Thread Jason Murray
> Unless i have actually defined a function 'password()', calling 'echo > password('$password') will (...does, i just double checked) > causes a Fatal > Error 'Undefined Function'. > Nice try tho :) the original mail said to echo $query, which will include some text in it that says "password('i

Re: [PHP] mysql_query problem (more suggestions)

2001-07-16 Thread Brad Wright
7;echo password('$password') will (...does, i just double checked) causes a Fatal Error 'Undefined Function'. Nice try tho :) > From: Alvin Tan <[EMAIL PROTECTED]> > Date: Tue, 17 Jul 2001 13:07:45 +0800 > To: Brad Wright <[EMAIL PROTECTED]> > Subject:

Re: [PHP] mysql_query problem

2001-07-16 Thread Christopher Allen
> $testResult = mysql_query("SELECT * FROM login_table where Pass = $query = "select * from login_table where Pass=password('$password')"; then echo $query to the screen and make sure you see what needs to be there. Also try mysql_error etc.. from the manual GL --ccma -- PHP General Mail

[PHP] mysql_query problem

2001-07-16 Thread Brad Wright
Hi all', I have a mysql_query that reads: $testResult = mysql_query("SELECT * FROM login_table where Pass = password('$password')") or die ("ouch"); $num_rows = mysql_num_rows($testResult); the problem is that I keep getting a value of 0 for $num_rows when I know the table has 1 entry for PAs