PDA

View Full Version : Print Database results in CMS Widget


dezkit
03-07-2011, 02:58 AM
How would I do this?

tonyvh2
03-09-2011, 12:09 PM
what you want is put your script in your root

scriptwithresultsfromyourdatabase.php

add a widget, set type "Php direct execution",

then


ob_start();
include("/path_to_your_root/scriptwithresultsfromyourdatabase.php");
$output .= ob_get_contents();
ob_end_clean();


and fill in a custom template name,

then make the template,

and put {vb:raw output} where you want to show the results of your script