|
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 |
angela_li Smarty n00b
Joined: 03 Aug 2004 Posts: 2
|
Posted: Wed Aug 04, 2004 1:44 am Post subject: MySQL in smarty |
|
|
Hi everyone,
I'm new to smarty and trying to use MySQL.
After I looked at some of your example code, I try to make mysql function calls,
but keep getting:
Fatal error: Call to undefined function: mysql_connect() in /var/www/html/smarty/examples/db.php on line 6
Do I need particular libraries or include files inorder to use mysql functions?
Also, I don't see the function in the smarty manual, are these funcitons directly from
PHP?
confused,
Angela |
|
Back to top |
|
AZTEK Smarty Pro
Joined: 16 Apr 2003 Posts: 235 Location: Purdue University
|
Posted: Wed Aug 04, 2004 2:26 am Post subject: |
|
|
mysql_connect is a function from PHP the manual page is at http://www.php.net/mysql_connect the reason it is undefined is you either did not build PHP using --with-mysql or you need to include the mysql module. _________________ "Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane |
|
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
|