|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Next_Gate Smarty Rookie
Joined: 23 Apr 2003 Posts: 5
|
Posted: Wed Apr 23, 2003 3:41 am Post subject: Where to download the PHP MYSQL Class? |
|
|
I would like to know where can i find the Mysql.class.php used in the documentation examples.
I really need that file for practicing with the examples shown in the smarty's documentation!!
Thanks in advance!..
PD. Here you have a piece of code found in the docs!
Code: | load_nav.php
-------------
<?php
// load in variables from a mysql db and assign them to the template
require_once("MySQL.class.php");
$sql = new MySQL;
$sql->query("select * from site_nav_sections order by name",SQL_ALL);
$this->assign('sections',$sql->record);
?> |
|
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Apr 23, 2003 2:24 pm Post subject: |
|
|
Hmm, I guess it was meant to be an example, I should switch them all over to PEAR DB or something. The class does actually exist, but it is a home-grown solution with no documentation. On a related note, I wrap all my SQL queries within SafeSQL. I couldn't find an SQL class that automated escapement, dynamic clause dropping, imploding arrays, etc. I got so tired of doing this repetitive (and error prone) task by hand that I wrote a class for it. It became so indespensible that I released it for the greater good of safe queries
http://www.phpinsider.com/php/code/SafeSQL/
Monte |
|
Back to top |
|
Next_Gate Smarty Rookie
Joined: 23 Apr 2003 Posts: 5
|
Posted: Wed Apr 23, 2003 2:41 pm Post subject: |
|
|
Thanks man.. ill take a look at that! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|