Posted on: 09/30/02 11:29am
By: Anonymous (Anonymous)
Hello,
I have a simple PHP script..displays info from MySQL DB. Well what I want to do is to integrate it to GeekLog so it has all of the blocks in it, header, footer..pretty much like static pages..
Please help..thanks
PHP Script Integration...
Posted on: 09/30/02 11:47am
By: Dirk
That's simple:
require_once('lib-common.php');
$display = COM_siteHeader('menu');
$display .= COM_startBlock("Some title");
$display .= YourFunctionHere();
$display .= COM_endBlock();
$display .= COM_siteFooter();
echo $display
bye, Dirk
PHP Script Integration...
Posted on: 09/30/02 11:50am
By: Anonymous (Anonymous)
thank you
PHP Script Integration...
Posted on: 10/01/02 06:53am
By: Anonymous (Anonymous)
it does diaply header and left blocks but footer anf right blocks dont work
..any solution?
here is my script:
<?
require ('../lib-common.php');
$display = COM_siteHeader();
$display .= COM_startBlock();
include("music_functions.php"
;
switch($view)
{
case songs:
get_songs();
break;
case albums:
get_albums();
break;
case bands:
get_bands();
break;
default:
$abc="A";
get_bands($abc);
break;
}
$display .= COM_endBlock();
$display .= COM_siteFooter();
?>