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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.