| ★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/000107.html | Nouvelle recherche | Portail wanayoo |
|
|
DevShed Discussion Forums
![]() PHP
![]() MySQL Query Insanity
|
| next newest topic | next oldest topic |
| Author | Topic: MySQL Query Insanity |
|
newmediaarts Member |
The following source code manages to reliably return the wrong information. Instead of returning the proper number it returns the number 3 for the value of $PID. Just so you know the value of objective_a is unique in each mysql row. PID is generated by MySQL as soon as the row is created. <? @mysql_select_db("$dbname") or die("Unable to select database");
include("thanks.html"); If anyone has suggestions as to a better way to return the PID of the file created in the first mysql query I would be open to any ideas. Thanks. ------------------ [This message has been edited by newmediaarts (edited 08-07-99).] |
|
ros87 Junior Member |
I'm no php3 wizard but as far as I now $result is only a identifier and must be used with mysql_result to actually retrieve data from the query. In onther words .. use $PID = mysql_result($result,0,"PID"); -Roger [This message has been edited by ros87 (edited 08-08-99).] |
|
newmediaarts Member |
Thank you very much. That worked great. ------------------ |
All times are MST (US) | next newest topic | next oldest topic |
![]() |
|
Copyright © 1997-2000 ngenuity. All rights reserved.
Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.