var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: fetching from mysql using php
hi guys i have a small problem and that is i want to display recods from data base like what is shown in the flowing link
plz provid me an example with code
thanks in advance
Have a look at the mysql_fetch_array() function.
My preference is the mysql_fetch_assoc() so you can utilise names instead of numbers (which semantically don't mean anything).
The $row[value] bits above are the names of the columns that are in your database (or the aliases used in your SQL statement).
$data['ID'] = $row['ID'];
$data['name'] = $row['name'];
I use the associative index names as well, which mysql_fetch_array() gives you (along with the numeric indices).