|
PHP, MySQL, and Smarty Programming Intro

PHP Intro Table of Contents
Introduction
Contains basics on domain names and URLs.
Unix
A quick overview of common and convenient unix commands.
MySQL
Web programming often means database programming. This chapter contains an introduction to SQL and the MySQL database.
PHP 1: PHP Intro
Start with Hello World, move into HTML forms, and finally MySQL.
Smarty HTML Templates
Use Smarty, a php library, to seperate HTML from PHP
PHP 2: Combine PHP/Smarty/MySQL
View an example that combines templates, database abstraction, and php table creation scripts.
Apache
Learn how to enable php in your Apache config file.
Resources Contains links to run all php examples and the php source code for this intro.
Comments
|
PHP2 articel: small note
|
07/20/04
|
Arjan arjanlooman -at- hotmail.com This tutorial has really opened my eyes to oop/smarty programming,
Small footnote: after adding a new name, the option is there to update and delete the added name.
Both do not function because they don't have an ID to work with.
Simple (me) sollution is to put the following line between the Add and Viewone Function in the Classfuntion: savename->action().
$post_vars['name_id'] = $this->insert_id();
It passes the new inserted ID to the list correctly. I don't know if it is a nice sollution, but it works fine. Please comment for better sollution.
|
|
|
savename.php
|
07/25/04
|
Erik Wrenholt erik -at- timestretch.com Arjan,
Thanks for the bug report. I actually put your fix in the ViewOne function. If the name_id isn't present, I grab it's insert_id from the database.
(The bug is now fixed on the page.)
Thanks!
|
|
Leave a Comment
Show Comment Form
|
|
|