User Profile

Collapse

Profile Sidebar

Collapse
terralos
terralos
Last Activity: Apr 27 '06, 06:25 PM
Joined: Apr 26 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • terralos
    replied to Pattern matching for ASC 0 character
    in PHP
    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....
    See more | Go to post

    Leave a comment:


  • terralos
    replied to PHP: Number of rows in DB table?
    in PHP
    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:
    =============== =============== =====
    ...
    See more | Go to post
    Last edited by terralos; Apr 26 '06, 06:14 AM.

    Leave a comment:


  • terralos
    started a topic PHP: Number of rows in DB table?
    in PHP

    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 =...
    See more | Go to post
No activity results to display
Show More
Working...