fossle Posted October 10, 2007 Share Posted October 10, 2007 Hello, I've inherited a project I need to complete (and am brand new to all of this). Currently, the web site is designed to pull information from a mySQL database using PHP and then put it into a Smarty template. The first page is working correctly now (I did not design this page). Using PHP and mySQL the fields are appearing correctly in a Smarty template. Now, I need to add a new page (that will appear in the same window). When I link to the new page, the information from the database that was appearing on the first page is no longer appearing on the second page. How do I keep the same session and connection to the database when I change pages? Here is what I have for the second page (I know I am missing something really important): <?php session_start(); include_once('../../config.php'); include_once('player.class.php'); $t->display('videopage.tpl'); ?> Thank you, Kim Link to comment https://forums.phpfreaks.com/topic/72658-newbie-php-smarty-template-mysql-how-to-keep-connection-when-changing-page/ Share on other sites More sharing options...
MasterACE14 Posted October 12, 2007 Share Posted October 12, 2007 google 'PHP Tutorials' and learn some PHP before attempting a project such as this one. Regards ACE Link to comment https://forums.phpfreaks.com/topic/72658-newbie-php-smarty-template-mysql-how-to-keep-connection-when-changing-page/#findComment-367779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.