I can't take data out of database

+1 vincent van Duijnhoven · July 16, 2014
I am trying to connect to a database.
the connect part went without any problems but when i try to take data out of the database it doesn't work.

this is the code

<?php
    require 'connect.inc.php';

    $query = "SELECT * FROM `users` ";

    if ($query_run = mysql_query($query)){
        echo 'Query succes';
    }else{
        echo mysql_error();
    }
?>

Post a Reply

Replies

- page 2
Oldest  Newest  Rating
0 William Frost · July 18, 2014
@YuKusawa Ayoub  You can call me frost :)
  • 1
  • 2

PHP

106,970 followers
About

Server-side, HTML embedded scripting language used to create dynamic Web pages.

Links
Moderators