03-11-2009, 04:06 PM
|
#4 (permalink)
|
|
The Addict
Join Date: Aug 2008
Posts: 336
Thanks: 8
|
Quote:
Originally Posted by dp2
I have two queries going on one is not working no errors
Is there a simple method to read a complete row from 1 ID field
|
you can read 1 row based on a value like this:
PHP Code:
$result = mysql_query("SELECT * FROM regdir WHERE BusinessID=".$id);
in the query above the * would retrieve all the fields in that row. And the &id would have to be a variable holding the id of the row you want to retrieve.
P.D. you might want to restructure your code so it could be more legible, because I can't tell but maybe there is something wrong with the way the form is display, because I don't think you need 2 queries for this.
Just an advice.
Last edited by tony : 03-11-2009 at 04:08 PM.
Reason: write advice
|
|
|
|