Jump to content

Learning PHP with MySQL


tbint

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.