Re: [PHP-DB] Resource id #2

2002-11-27 Thread Adam Voigt
Umm, he is putting them into an array, I quote: while ($row = mysql_fetch_array($result)) { $row['Books.Title']; $row['Books.Author']; $row['Books.ISBN']; $row['BookList.dbase']; $row['BookList.dbase_user']; $row['BoxSet.BoxSet'];

Re: [PHP-DB] Resource id #2

2002-11-27 Thread Mark
But what do all those $row['fieldname'} rows do? Call me ignorant (you wouldn't be the first), but a statement that simply has a variable name doesn't DO anything. Should these have echos in front of them? --- Adam Voigt [EMAIL PROTECTED] wrote: Umm, he is putting them into an array, I quote:

Re: [PHP-DB] Resource id #2

2002-11-27 Thread Adam Voigt
They don't do anything, but my point was, he said that what he pulled from the DB needed to be put into an array, and I was pointing out, it already was. On Wed, 2002-11-27 at 12:23, Mark wrote: But what do all those $row['fieldname'} rows do? Call me ignorant (you wouldn't be the first), but a

[PHP-DB] Resource id #2

2002-11-26 Thread The Cossins Fam
Hello. I am using MySQL as a database for a departmental library. I have written a quick search script, but keep getting resource id #2 as a result to my search. I have read the online documentation for the mysql_fetch_array() function and must say, I don't see that I'm missing anything.

Re: [PHP-DB] Resource id #2

2002-11-26 Thread Adam Voigt
Add: print_r($row) In your while loop, that will show you everything that is being returned with both it's numeric and text based position. On Tue, 2002-11-26 at 13:09, The Cossins Fam wrote: Hello. I am using MySQL as a database for a departmental library. I have written a quick search

RE: [PHP-DB] Resource id #2

2002-11-26 Thread Jason Vincent
- From: The Cossins Fam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 1:10 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Resource id #2 Hello. I am using MySQL as a database for a departmental library. I have written a quick search script, but keep getting resource id #2

Re: [PHP-DB] Resource id #2

2002-11-26 Thread Jason Wong
On Wednesday 27 November 2002 02:09, The Cossins Fam wrote: Hello. I am using MySQL as a database for a departmental library. I have written a quick search script, but keep getting resource id #2 as a result to my search. I have read the online documentation for the mysql_fetch_array()

[PHP-DB] resource id#2 - ????

2002-06-12 Thread Jas
Not sure how to over come this, the result of a database query keeps giving me this: ?php /* Get Ip address, where they came from, and stamp the time */ if (getenv(HTTP_X_FORWARDED_FOR)){ $ipaddy = getenv(HTTP_X_FORWARDED_FOR); } else { $ipaddy = getenv(REMOTE_ADDR); } $referrer =

RE: [PHP-DB] resource id#2 - ????

2002-06-12 Thread Leotta, Natalie (NCI/IMS)
started with select sex...) -Natalie -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 1:42 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] resource id#2 - Not sure how to over come this, the result of a database query keeps giving me this: ?php /* Get

Re: [PHP-DB] resource id#2 - ????

2002-06-12 Thread Paul DuBois
At 11:42 -0600 6/12/02, Jas wrote: Not sure how to over come this, the result of a database query keeps giving me this: ?php /* Get Ip address, where they came from, and stamp the time */ if (getenv(HTTP_X_FORWARDED_FOR)){ $ipaddy = getenv(HTTP_X_FORWARDED_FOR); } else { $ipaddy =

RE: [PHP-DB] resource id#2 - ????

2002-06-12 Thread Leotta, Natalie (NCI/IMS)
; [EMAIL PROTECTED] Subject: Re: [PHP-DB] resource id#2 - At 11:42 -0600 6/12/02, Jas wrote: Not sure how to over come this, the result of a database query keeps giving me this: ?php /* Get Ip address, where they came from, and stamp the time */ if (getenv(HTTP_X_FORWARDED_FOR)){ $ipaddy

Re: [PHP-DB] resource id#2 - ????

2002-06-12 Thread Jas
Thanks a ton, I was really looking right past that variable. Jas Paul Dubois [EMAIL PROTECTED] wrote in message news:p05111763b92d3addd3b4@[192.168.0.33]... At 11:42 -0600 6/12/02, Jas wrote: Not sure how to over come this, the result of a database query keeps giving me this: ?php /* Get

[PHP-DB] Resource ID#2 ????

2002-05-29 Thread Jas
Ok here is my problem, I set this up so a user selects a name form a select box and that name or $user_id is then passed to this page so the user can edit the contact info etc. However it does not pull the selected $user_id and place each field into my form boxes, all I get is a Resource ID #2.

Re: [PHP-DB] Resource ID#2 ????

2002-05-29 Thread Jason Wong
On Thursday 30 May 2002 00:17, Jas wrote: Ok here is my problem, I set this up so a user selects a name form a select box and that name or $user_id is then passed to this page so the user can edit the contact info etc. However it does not pull the selected $user_id and place each field into

Re: [PHP-DB] Resource ID#2 ????

2002-05-29 Thread Jas
If you look at the previously posted code at the bottom of the form there is a echo for the sql select statement that is echoing Resource id #2 on the page. Now that error is the correct field id number in the database, I am just not sure how to itemize the data from that table, at least I

RE: [PHP-DB] Resource ID#2 ????

2002-05-29 Thread Leotta, Natalie (NCI/IMS)
://www.php.net/manual/en/function.mysql-query.php -Natalie -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 12:18 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Resource ID#2 Ok here is my problem, I set this up so a user selects a name form a select box

Re: [PHP-DB] Resource ID#2 ????

2002-05-29 Thread Jason Wong
On Thursday 30 May 2002 00:41, Jas wrote: If you look at the previously posted code at the bottom of the form there is a echo for the sql select statement that is echoing Resource id #2 on the page. Now that error is the correct field id number in the database, I am just not sure how to

Re: [PHP-DB] Resource ID#2 ????

2002-05-29 Thread Jas
-Natalie -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 12:18 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Resource ID#2 Ok here is my problem, I set this up so a user selects a name form a select box and that name or $user_id is then passed to t

Re: [PHP-DB] Resource Id #2

2002-01-23 Thread Dan Brunner
: [EMAIL PROTECTED] Sent: Wednesday, January 23, 2002 12:21 PM Subject: Re: [PHP-DB] Resource Id #2 Use something like this... ... ... ... $rows = mysql_num_rows($result); for ($y = 0; $y $rows; $y++){ $data = mysql_fetch_object($result); echo $data-Field_Name

Re: [PHP-DB] Resource Id #2

2002-01-23 Thread Dan Brunner
AHAHAHHAHA AHHAHAHAH Dan On Wednesday, January 23, 2002, at 02:19 PM, [EMAIL PROTECTED] wrote: Dan, Good, I'm glad it worked!!! I see a lot of people using mysql_fetch_array(). Which is fine...But I'm more into Object Oriented programming...and that's why I always use

[PHP-DB] Resource id #2 ?

2002-01-18 Thread James Kupernik
I run this query $countreq = mysql_query(SELECT COUNT(*) FROM catalogs WHERE PROCESSED IS NULL); then try to echo $countreq but end up getting Resource id #2 instead of the count total. What would cause this? Thanks for any advise! James -- PHP Database Mailing List (http://www.php.net/) To

[PHP-DB] resource id #2, #3, #4......

2001-11-28 Thread Kevin Ruiz
I've come across yet another problem. I have a table set up that houses four things, a person's real name, username, pass, and id. The id is used to join another table which houses that persons contacts. I've been validating the user and pass by comparing the number of rows that the sql

Re: [PHP-DB] resource id #2, #3, #4......

2001-11-28 Thread Jason Wong
On Thursday 29 November 2001 01:29, Kevin Ruiz wrote: I've come across yet another problem. [snip] $ci = select contactid from users where username='$username' and password='$password'; $cir = mysql_query($ci) or die(Couldn't execute); $query = select

[PHP-DB] Resource id #2

2001-10-28 Thread Andrew Duck
I am trying to select a message from a table in a database. the message will will be in column 'msg' and will be in same row as id='0'. I need that msg put to the screen. With the code below I get the error: Resource id #2 Can someone please explain how I can fix this.. Thankyou in advance. ?

Re: [PHP-DB] Resource id #2

2001-10-28 Thread DL Neil
I am trying to select a message from a table in a database. the message will will be in column 'msg' and will be in same row as id='0'. I need that msg put to the screen. With the code below I get the error: Resource id #2 Can someone please explain how I can fix this.. Thankyou in advance. ?