tbint Posted June 14, 2012 Share Posted June 14, 2012 Hello I was wondering if someone new a simple 2 page MySQL database script. Just the basic function. The index file (no styling), the include once config file, and a .sql to import with PHPMyAdmin of the page table. So I could see how it works. Then I could create a third page and import it to the table. Kind of on the job learning. I really would like to build a page script from the grown up. Thanks. Link to comment https://forums.phpfreaks.com/topic/264202-learning-php-with-mysql/ Share on other sites More sharing options...
Pikachu2000 Posted June 14, 2012 Share Posted June 14, 2012 I have no idea what your question actually is . . . Link to comment https://forums.phpfreaks.com/topic/264202-learning-php-with-mysql/#findComment-1353992 Share on other sites More sharing options...
tbint Posted June 14, 2012 Author Share Posted June 14, 2012 I can use $pages = array to change pages in a divide out of a folder. <?php include $pages[$pageID]['page']; ?> <?php $pages = array ( index => array('name' => 'overview' , 'title' => 'Overview' , 'page' => 'pages/overview.php'), about => array('name' => 'about' , 'title' => 'About Us' , 'page' => 'pages/about.php'), My apology I am self taught. I would like to see how it is done calling the page out of a database. (index.php?about) I think if I see just a simple request of one table field displayed in the html body I could go from there. Link to comment https://forums.phpfreaks.com/topic/264202-learning-php-with-mysql/#findComment-1353999 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.