PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
lose joomla template when mysql_connect call (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: lose joomla template when mysql_connect call


#5305
IngridWood (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
lose joomla template when mysql_connect call 1 Year ago Karma: 0  
I can connect to database and pull info just fine.
Problem: lose rest of joomla template

Could you tell me if I’m missing something obvious? Any help is greatly appreciated!
  • Site: greencitiescoalition.net, Joomla 1.7

  • Installed DirectPHP, turned off WYSIWIG editor


Objective: dynamically pull subscribed members from table and draw page with 3 tables
Have: http://www.greencitiescoalition.net/index.php?option=com_content&view=article&id=115;
I can connect to database and pull info just fine.
Problem: lose rest of joomla template

When I connect to db, I lose the template.
PHP-DB-connect-test(2): http://www.greencitiescoalition.net/index.php?option=com_content&view=article&id=118;
Code:
Code:
<?php

function wrapPHP(){

$con = mysql_connect("localhost","greencit_j15","lsPN0iy-(l6d");
 // in here I draw 3 tables 
mysql_close($con);
}

wrapPHP();
?>
Thanks much! Ingrid
 
  The administrator has disabled public write access.

#5306
IngridWood (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:lose joomla template when mysql_connect call 1 Year ago Karma: 0  
Never mind, I got it figured out.
It helps to close the connection after calling the function.

-Ingrid
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Links - Classes - Social Business - BPM - Web - General
Copyright © 2006-2013. kksou.com. All Rights Reserved