thedigicraft / Atom.CMS

Atom.CMS
56 stars 52 forks source link

atomcms-12-29-2016 #224

Open Bronx-Cowboy opened 7 years ago

Bronx-Cowboy commented 7 years ago

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

creptor commented 7 years ago

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.

Please use https://gist.github.com/ for code.