||A reader requests that the formatting and layout of this book be improved.
Good formatting makes a book easier to read and more interesting for readers. See Editing Wikitext for ideas, and WB:FB for examples of good books.
Please continue to edit this book and improve formatting, even after this message has been removed. See the discussion page for current progress.
This tutorial is written by User:Wykis and may be used in any educational and non-commercial way. Please add comments in Talk:Programming:PHP:smarty:tutorials:simple and if you modify this tutorial, please add your name below:
- User:Wykis, Full tutorial
- index.tpl as necessary ( notice the $db in index.php, change it to your settings!
- Now, using y
- Now, go to your
== directory Web
site through your Web Browser ( you might need to upload it to your web server or set one up on your computer ) ;)
]] If you have any problems, go to ask on IRC [] or contact me. I haven't tested this script yet so you might find some small mistakes.
- For the later versions of Mysql use the following code
CREATE TABLE `test_content` ( `content_id` INT(11) NOT NULL AUTO_INCREMENT, `content_title` VARCHAR(255) NOT NULL, `content_date` DATETIME NOT NULL, == `content_content` TEXT == NOT NULL, `content_position` INT(11) NOT NULL, PRIMARY KEY (`content_id`) ) TYPE = myisam;