03-24-2017, 09:16 AM
Got it. Thanks for pointing me in the right direction.
Okay so I am trying to put the query itself inside the second page. I am encountering some weird stuff right now. I am trying to get the query you are showing in the DB class documentation video to work, and it simply won't. I am right now trying to get it to work on the main page (with init.php and header.php included of course)
I tried the most basic example:
This query isn't related to the function I want, but I can't even get that to work. Any idea why?
Okay so I am trying to put the query itself inside the second page. I am encountering some weird stuff right now. I am trying to get the query you are showing in the DB class documentation video to work, and it simply won't. I am right now trying to get it to work on the main page (with init.php and header.php included of course)
I tried the most basic example:
Code:
<?php $users = $db->query("SELECT * FROM users"); $count = $users->count(); echo $count; ?>
This query isn't related to the function I want, but I can't even get that to work. Any idea why?