if(isset($_GET[ 'id' ])) {
$q = "SELECT * FROM pages WHERE id = $_GET[id]";
$r = mysqli_query($dbc, $q);
$opened = mysqli_fetch_assoc($r);
}
Developing a dynamic website 2014 vid #45
I've tried to find this problem but, to no avail.
please help
I'm not sure what is your problem, please try to be more specific.
You can post pictures, code, errors or describe the behavior it has and the one it should have.
admin/config/setup.php
Page Setup: //it locks up admin/index.php is a blank page
$page = data_page($dbc, $pageid); if(isset($_GET[ 'id' ])) { $opened = data_page($dbc, $_GET[ 'id' ]); }
Page Setup: //works correctly****
if(isset($_GET[ 'id' ])) { $q = "SELECT * FROM pages WHERE id = $_GET[id]"; $r = mysqli_query($dbc, $q); $opened = mysqli_fetch_assoc($r); } Developing a dynamic website 2014 vid #45 I've tried to find this problem but, to no avail. please help