Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Where to download the PHP MYSQL Class?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Next_Gate
Smarty Rookie


Joined: 23 Apr 2003
Posts: 5

PostPosted: Wed Apr 23, 2003 3:41 am    Post subject: Where to download the PHP MYSQL Class? Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Apr 23, 2003 2:24 pm    Post subject: Reply with quote

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 Smile

http://www.phpinsider.com/php/code/SafeSQL/

Monte
Back to top
View user's profile Send private message Visit poster's website
Next_Gate
Smarty Rookie


Joined: 23 Apr 2003
Posts: 5

PostPosted: Wed Apr 23, 2003 2:41 pm    Post subject: Reply with quote

Thanks man.. ill take a look at that!
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP