Timestretch Logo Atom Visuals
 Home  Site News  Articles  Desktop Pictures  Erik's Artwork  Music  Software 

Site News
+ Articles
12 inch PowerBook G4 Review + Airport Extreme
Apple Vrs Dell Notebooks
Apple, Please Open up the iPod API!
Asm Programming Using Jmp/Call
Assembler Programming for Intel and PPC on OSX
Canon ZR10 Quick Review
iPod Review... (2)
OS X & Linux Features Compared
- PHP, MySQL, and Smarty Programming Intro
Spam Graph
Web Development with MySQL and PHP4 and MacOS X
Writing Secure PHP Applications
Desktop Pictures... (4)
Erik's Artwork
Music
Software... (3)

Search:
Site News:
· I'm a mac.
09/22/2008
· Asm Programming Using Jmp/Call
05/04/2008
· Assembler Programming for Intel and PPC
05/14/2007
· Url2thumb - Generate Thumbnails from URLs
09/22/2006
· Ruby, Io, Python, Java, C Benchmark
09/22/2005
· Linux on iPod review from xlr8yourmac
12/27/2004
· Writing Secure PHP Applications
03/29/2004
· RealNetworks CEO: Apple needs to open iPod
03/23/2004
 

Site News | RSS


Home > Articles >

PHP, MySQL, and Smarty Programming Intro

boulders320.jpg

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

© 1996-2008 Timestretch.com
About