Re: [PHP] Help with msql_fetch_array() FIXED ! Now cookie problems:(

2002-07-25 Thread Scott
On Thu, 25 Jul 2002, Matthew Bielecki wrote: > session.save_path = "C:/Program Files/Apache > Group/Apache/web/php/dir/files/temp" Considering using something like: c:/temp, sure beats typing and remembering that path :) How are you setting the cookie in the code? -- PHP General Mailing

Re: [PHP] Help with msql_fetch_array() FIXED ! Now cookie problems :(

2002-07-25 Thread Matthew Bielecki
ECTED]> Subject: Re: [PHP] Help with msql_fetch_array() I can almost guarantee that it's not the second line that is "failing", the problem here is that $result is not containing naything, and that is normally due to the fact that you are not connecting to the db, or

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread Kevin Stone
- From: "Matthew Bielecki" <[EMAIL PROTECTED]> To: "PHPCoder" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, July 24, 2002 2:07 PM Subject: Re: [PHP] Help with msql_fetch_array() > Well I t

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread Matthew Bielecki
D]> cc: php-general <[EMAIL PROTECTED]> Subject:Re: [PHP] Help with msql_fetch_array() I can almost guarantee that it's not the second line that is "failing", the problem here is that $result is not containing naything, and that is normally due to

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread Jason Wong
On Thursday 25 July 2002 00:34, Matthew Bielecki wrote: > I have a couple of scripts that fail with the error of: > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result > resource in... > > I'm new to both SQL and PHP and I'm wondering if I have some setting > turned off or

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread Martin Clifford
It is on whatever installation my host is running :o) I know it's 4.x, though I should really make them upgrade. >>> "Phillip S. Baker" <[EMAIL PROTECTED]> 07/24/02 02:34PM >>> At 11:26 AM 7/24/2002 Wednesday, Martin Clifford wrote: >Shouldn't it be: > >$result = mysql_query($sql, $link_id); A

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread Phillip S. Baker
At 11:26 AM 7/24/2002 Wednesday, Martin Clifford wrote: >Shouldn't it be: > >$result = mysql_query($sql, $link_id); Actually mysql_query should default to the last database connection opened if no link identifier has been specified. So the link identifier to not absolutely required. Phillip -

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread Martin Clifford
number of rows with mysql_num_rows($result). If the returned value is >zero then you know it hasn't returned anything. > >-Kevin > >- Original Message - >From: "PHPCoder" <[EMAIL PROTECTED]> >To: "Matthew Bielecki" <[EMAIL PROTECTED]

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread PHPCoder
urned anything. > >-Kevin > >- Original Message - >From: "PHPCoder" <[EMAIL PROTECTED]> >To: "Matthew Bielecki" <[EMAIL PROTECTED]> >Cc: "php-general" <[EMAIL PROTECTED]> >Sent: Wednesday, July 24, 2002 11:50 AM >Subjec

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread Kevin Stone
ed anything. -Kevin - Original Message - From: "PHPCoder" <[EMAIL PROTECTED]> To: "Matthew Bielecki" <[EMAIL PROTECTED]> Cc: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, July 24, 2002 11:50 AM Subject: Re: [PHP] Help with msql_fetch_arra

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread Kevin Stone
Try using mysql_query(); instead of mysql_db_query(); The SQL query is the first parameter in this function. The second parameter is a pointer connecting to the mysql server. The pointer is generated by mysql_connect() and you'll also need to select the database with mysql_select_db(). But it'

Re: [PHP] Help with msql_fetch_array()

2002-07-24 Thread PHPCoder
I can almost guarantee that it's not the second line that is "failing", the problem here is that $result is not containing naything, and that is normally due to the fact that you are not connecting to the db, or the table "tablename" is not there. I use the following format as my "standard" My