Hi,
Write now I have code to read in a set of data from a surrey. Could I
find out how many rows of data the query has, without adding to a
counter each time I read a row?
Also is there a way to start reading the database from a specific row,
instead of always starting at the begging?
This is what my code looks like
$sql="SELECT * FROM zen_products where 1";
if (!$results=mysq l_query($sql,$d blink))
die("<brcould not query database");
// can we figure out the size
// go to a spefic loction without looping?
while( $row=mysql_fetc h_array($result s))
{
extract($row);
echo "=id";
echo $products_id;
}
// close databse connection
mysql_close($db link);
Write now I have code to read in a set of data from a surrey. Could I
find out how many rows of data the query has, without adding to a
counter each time I read a row?
Also is there a way to start reading the database from a specific row,
instead of always starting at the begging?
This is what my code looks like
$sql="SELECT * FROM zen_products where 1";
if (!$results=mysq l_query($sql,$d blink))
die("<brcould not query database");
// can we figure out the size
// go to a spefic loction without looping?
while( $row=mysql_fetc h_array($result s))
{
extract($row);
echo "=id";
echo $products_id;
}
// close databse connection
mysql_close($db link);
Comment