Sponsor
-
Recent Posts
Categories
Meta
Tag Archives: databse
Advanced PHP Tutorial: Databse Abstraction Layer
This tutorial will teach you about database abstraction for use in PHP. Instead of programming directly to MySQL, Oracle, or PostgreSQL (or whatever database…
more value in the Smarty template databse
i have php file named testfun.php <?php $conn=mysql_connect(“localhost”,”root”,”") or die(“unabke to connect”); $db=mysql_select_db(“smartyform”,$conn) or die(“databse error”); require ‘Smarty/libs/Smarty.class.php’; $smarty = new Smarty; $sel=mysql_query(“select * from form”); while($row=mysql_fetch_array($sel)) { $id=$row[0]; $name=$row[1]; } $smarty->assign(‘id’,$id); $smarty->assign(‘name’,$name); $smarty->display(‘testfunction.tpl’); ?> I have tpl file named … Continue reading