![]() |
|
|||||||
| Register | FAQ | Members List | Downloads | Calendar | Today's Posts | Search | Webmaster Resources | Webmaster Blogs |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
OK, time to create a script that will add our posts to the database.
For now, we'll call it administration.php And this is the source: PHP Code:
In the first part we include the config.php file again. And then we tell the script that if the form has been submitted it should get the title and the text that was submitted and we insert it into the database. If it's OK we output a success message and if something went wrong we print out an error message. The rest is simple HTML (with a dynamic title according to the config.php file) and a form that submits the title and the text of the post. At the end we close the connection to the database. That's it! Note that your "Admin CP" isn't protected at all at this stage so anyone who knows the URL to it can add data. But we aren't concerned about this at this stage. We'll mess with security later. |
|
||||
|
Well, now that the phase 1 of designing our own blog is finished here's the live demo:
This is the blog itself: http://forums.ukwebmasterworld.com/b...l/01/index.php And this is the Admin CP (it has been disabled to prevent spam but you can at least see what it looks like): http://forums.ukwebmasterworld.com/b...nistration.php I know it's nothing fancy but why kill ourselves designing something that isn't finished? ![]() Next lesson will include some CSS (so your retinas don't burn from looking at this site) and we'll be adding some new functions. Expect it in a couple of days (maybe even tomorrow). Oh, almost forgot. Here's the link so you can download the source code we've created so far: Download! |
|
|||||
|
Hi Melkior,
Don't want to put pressure on you, far from that, but I was wondering if you intend to continue this tutorial. I found it simple and clear (just what I need ) until now and I surely hope you will continue with it.Thanks for the job so far :armada34:
__________________
Take a look at Eric's Books Site to know what I read
or at Eric's Boeken Site for the Dutch talking.Add your book-related site to my Books Directory... |
|
||||
|
I'm glad you like it Eric!
Yes, I'll continue with this tutorial, tomorrow. I had some issues that detained me in continuing this tutorial. Now that I'm free again I will continue and speed up the pace a little bit. Thanks for your patience! |
|
|||||
|
Great, I'm looking forward reading you
![]()
__________________
Take a look at Eric's Books Site to know what I read
or at Eric's Boeken Site for the Dutch talking.Add your book-related site to my Books Directory... |
|
||||
|
Melkior,
Cannot wait for you next post. Thank you for your valuable contributions. If we would not have nice chaps like you we really would be lost in the dark;-) lala ![]() |
|
||||
|
Can you tell me your secret how you manage to do all this? It is amazing how much you contribute to the UKWebmasterWorld and and and. Wish I would have the same skills... Well done!!!!!!
lala ![]() |
![]() |
| Bookmarks |
| Webmaster Resources |
|
• UK WW SEO Tools • Find UK Hosts |
| The Forum Rules |
|
• Forum Rules - MUST READ |
| Site Of the Month |
![]() Nominate site of the month |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating and running a discussion forum | temi | Webmaster Tips and Tricks | 39 | 06-19-2008 07:20 AM |
| Tips for creating better website | temi | Webmaster Tips and Tricks | 11 | 03-21-2008 01:25 AM |
| Creating a custom page in vBulletin | melkior_inactive | Forum Software | 3 | 01-18-2008 10:14 AM |
| PR4 Real Estate - blog posts for sale - one year old blog | stock_post | Other Advertisements (Ads spaces such as banner, blogs and articles) | 1 | 08-23-2007 08:44 AM |
| Creating Banners | gkd_uk | General Webmaster Talk | 1 | 05-26-2007 11:36 AM |
| UK Webmaster World Forums - Internet marketing, web development, domain names, SEO contest and discussuons. |
| Subscribe to our feeds |