Forums

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

Home Forums Back End mysqli_fetch_all issues

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

    Hello everyone,

    This is, for some reason (programmers block!), escaping me. Unfortunately a site that I am creating for a client is hosted on a PHP version 5.2.17 and the host does not provide PHP 5 >= 5.3. I am wanting to select all values in a specific column in a MySQL database to get a total, but I also want to store each one in a variable to work with later. Ive attempted a few loops but I am failing miserably. Can any one give me some insight on how I would go about this or a good function that is supported in the above listed version.

    As always I appreciate and insight.

    #51647
    ramit
    Member

    $query=SELECT * FROM tablename WHERE (conditions);
    $runquery=mysql_query($query);

    while($fetchquery=mysql_fetch_array($runquery))
    {
    $variable=$fetchquery;
    //you can also use sessions if you want to store data for the next pages.
    }



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