Re: [PHP-DB] mysql_query

2011-06-06 Thread Niel Archer
> Hello all, > > Not sure what I am doing wrong. > > I have a simple form that populate the variables in a mysql query. I > know the selected values are making it to the form porcessing script > because I can echo them on the processing script as indicated below. > > You Selected Cell_Sect = 1_1

[PHP-DB] mysql_query

2011-06-06 Thread Chris Stinemetz
Hello all, Not sure what I am doing wrong. I have a simple form that populate the variables in a mysql query. I know the selected values are making it to the form porcessing script because I can echo them on the processing script as indicated below. You Selected Cell_Sect = 1_1 You Selected Date

Re: [PHP-DB] mysql_query returning empty result after DELETE

2009-09-14 Thread Chris
Stan wrote: OK. If I change the test to "if(mysql_num_rows($thisRow) < 1)" it does what I want. I guess if I want to understand why False was returned originally (just after I created the database) I need to start over. According to the docs mysql_query only returns false if there's an error.

Re: [PHP-DB] mysql_query returning empty result after DELETE

2009-09-14 Thread Stan
OK. If I change the test to "if(mysql_num_rows($thisRow) < 1)" it does what I want. I guess if I want to understand why False was returned originally (just after I created the database) I need to start over. Do I have 4 possible conditions here: 1) the mysql_query() function fails and I get a PH

Re: [PHP-DB] mysql_query returning empty result after DELETE

2009-09-14 Thread Stan
Yes. I deleted all records. Prior to the DELETE, if I did a SELECT with specific criteria (WHERE p.pictureFile = "some valid content"), and those criteria were not met, mysql_query() returned False ... and, conversely, if those criteria were met, mysql_query() returned "a resource" against which I

Re: [PHP-DB] mysql_query returning empty result after DELETE

2009-09-13 Thread Chris
Stan wrote: I did a "DELETE FROM picture" where "picture" is a table in my database. Because this deletes all your records - so doing a select afterwards will find nothing. Afterward, this piece of code does not generate an error -- try {

[PHP-DB] mysql_query returning empty result after DELETE

2009-09-13 Thread Stan
I did a "DELETE FROM picture" where "picture" is a table in my database. Afterward, this piece of code does not generate an error -- try { $query = "SELECT * FROM picture p " . "WHERE p.pictureFile='" . $pictureFile

Re: [PHP-DB] mysql_query

2009-08-10 Thread Phpster
On Aug 10, 2009, at 4:15 AM, "Ron Piggott" wrote: I have the syntax mysql_query("INSERT INTO );"); If this is successful I want to do update a column in one of my tables $query = "UPDATE ... "; mysql_query($query); How do I test if the INSERT INTO mysql_query, in order to trigger

[PHP-DB] mysql_query

2009-08-10 Thread Ron Piggott
I have the syntax mysql_query("INSERT INTO );"); If this is successful I want to do update a column in one of my tables $query = "UPDATE ... "; mysql_query($query); How do I test if the INSERT INTO mysql_query, in order to trigger the UPDATE? Ron

Re: [PHP-DB] mysql_query

2004-10-12 Thread Philip Thompson
On Oct 12, 2004, at 7:15 AM, [EMAIL PROTECTED] wrote: hello, I have a begining question. I've got simple html form and php script, but insert doesn' t work. What is wrong in my insert mysql_query? mysql_query( "insert into obiskovalci (ime, priimek, ulica, hstevilka, pstevilka, posta) values('$im

RE: [PHP-DB] mysql_query

2004-10-12 Thread Murray @ PlanetThoughtful
if your installation of PHP is running with 'register globals' on. Much warmth, Murray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, 12 October 2004 10:15 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] mysql_query

FW: [PHP-DB] mysql_query

2004-10-12 Thread Darryl
PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] mysql_query 1. place your query string into a variable for easy dumping... i.e. $query = "insert into obiskovalci (ime, priimek, ulica, hstevilka, pstevilka, posta) values('$ime', '$priimek', &

Re: [PHP-DB] mysql_query

2004-10-12 Thread bbonkosk
) -B - Original Message - From: [EMAIL PROTECTED] Date: Tuesday, October 12, 2004 8:15 am Subject: [PHP-DB] mysql_query > hello, > > I have a begining question. > I've got simple html form and php script, but insert doesn' t > work. What is > wrong

[PHP-DB] mysql_query

2004-10-12 Thread ballo1
hello, I have a begining question. I've got simple html form and php script, but insert doesn' t work. What is wrong in my insert mysql_query? mysql_query( "insert into obiskovalci (ime, priimek, ulica, hstevilka, pstevilka, posta) values('$ime', '$priimek', '$ulica', '$hstevilka', '$pstevilka

RE: [PHP-DB] mysql_query troubles

2001-07-17 Thread Karl Phillipson
esult($testResult); ?> -Original Message- From: Brad Wright [mailto:[EMAIL PROTECTED]] Sent: 17 July 2001 06:31 To: [EMAIL PROTECTED] Subject: [PHP-DB] mysql_query troubles Hi all', I have a mysql_query that reads: $testResult = mysql_query("SELECT * FROM login

[PHP-DB] mysql_query troubles

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

RE: [PHP-DB] mysql_query returns nothing?

2001-07-05 Thread Mark Roedel
> -Original Message- > From: Stefan Siefert [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 04, 2001 9:07 AM > To: PHP Mailingliste > Subject: [PHP-DB] mysql_query returns nothing? > > > Hm, since we are using PHP 4.0.6 we do get sometimes no > returnvalue

[PHP-DB] mysql_query returns nothing?

2001-07-04 Thread Stefan Siefert
Hm, since we are using PHP 4.0.6 we do get sometimes no returnvalue...(function mysql_query) I think, this is always then, when we are executing update oder delete syntax hm, does anyone know anything about it? Stefan Siefert -- PHP Database Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP-DB] mysql_query failure

2001-02-16 Thread Russ Michell
>$con = mysql_connect($DB_SERVER, $DB_USER, $DB_PASS) >or die ("Cant connect"); >mysql_select_db($DB_NAME); Try: $con = mysql_connect($DB_SERVER, $DB_USER, $DB_PASS) or die ("Cant connect"); mysql_select_db($DB_NAME, $con); Also try and make your php functions like so: mysql_x() instead of:

[PHP-DB] mysql_query failure

2001-02-15 Thread Alexandre Sagala
I am getting this weird error with my mysql database. I have 100 pages with code to access my database. All my queries work except one. Here is an example $con = mysql_connect($DB_SERVER, $DB_USER, $DB_PASS) or die ("Cant connect"); mysql_select_db($DB_NAME); $rst = mysql_query("SELECT * FROM D