Hi,
With setDbLoop(), you don't have to do a loop yourself, it's handled within vlibTemplate, so you would just do the PHP like this:
include_once '../../vlibTemplate.php';
$tmpl=new vlibTemplate'templates/list3.html';
$tmpl-newLoop'pg_desc'; //define loop
$conn = db_connect;
$pages_sql = select * from pages order by code;
$pages_result = mysql_query$pages_sql, $conn;
$tmpl-setDbLoop'pg_desc',$pages_result, 'MYSQL';
This should now work.
Kind regards,
Kelvin