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