• Hi
    I am having trouble getting a snippet to fetch data from a mysql database, is there any reason why it would not work.

    code is as follows….

    if ($dbc = mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME)) { // Make the connnection.
    echo “CONNECTED”; }

    $selection = mysqli_query($dbc,”SELECT * FROM popups”);

    if (mysqli_num_rows($selection)>0) { echo “working”; }
    …. end of code

    “CONNECTED” is displayed but “working” isn’t displayed.

    Thanks in advance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘mySQL Data’ is closed to new replies.