Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP/SQL problem.

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35812
    SycoLV
    Member

    Hello Guys! I have a lil problem with my php code. It works, but it doesn’t output the value from database but shows ‘Resource id #’: http://img35.imageshack.us/img35/5532/needhelpl.jpg
    mayby someone can see the problem.


    $result = mysql_query("SELECT count(ID) FROM single_axle");
    $numRows = mysql_result($result, 0);

    $i = 1;
    while ($i <= $numRows) {
    $nav_model = mysql_query("SELECT model_name FROM single_axle WHERE $i = ID");
    echo "{$nav_model}";
    $i++;
    }
    #93301
    SycoLV
    Member

    Found the problem.. iI didnt have mysql_fetch*

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.