Don't know what you are using to parse, but try matching for when the character equals the constant NULL. You should also be able to do something like:
=============== =======
if (NextChar)
move to next character;
else
delimiter has been reached;
=============== =======
When NextChar becomes the ascii value of NULL, the if statement will fail, and you know that you have reached your delimiter....
User Profile
Collapse
-
OMG, I just noticed a spelling error =P (as did Sugartonic)
Sorry to waste your time.
I now have:
=============== =============== =====
$NUMROWS = mysql_query("se lect count(*) from questions");
$COUNTER = mysql_fetch_arr ay($NUMROWS);
echo "COUNTER = $COUNTER[0]";
=============== =============== =====
and correctly get:
=============== =============== =====
...Last edited by terralos; Apr 26 '06, 06:14 AM.Leave a comment:
-
PHP: Number of rows in DB table?
Little frustrated over what seems like should be easy...
Starting with this:
=============== =============== =============
$NUMROWS = mysql_query("se lect count(*) from questions");
echo "NUMROWS = $NUMROWS <br>";
echo get_resource_ty pe($NUMROWS), "<br>";
$COUNTER = mysql_fetch_arr ay($NUMROWS);
if ($COUNTER)
echo "COUNTER =...
No activity results to display
Show More
Leave a comment: