I solved the first part of problem and i was able to show the first row from mysql database
PHP Code:
<?php
$i=0;
$sql =
$db->
sql_query("SELECT
*
FROM
Blah_blah
where active='1'");
while ($row =
$db->
sql_fetchrow($sql))
{
$title = $row['title'];
$text="pausecontent2[$i]='$title'";
}
?>
<script type="text/javascript">
var pausecontent2=new Array()
<?php echo $text;$i++ ?>
</script>
the only problem is that the loop didn't worked fine
and the script only showed first query and repeat it like this :
blah-blah
undefined
blah-blah
undefined
is there anything wrong with the above codes ?
thanx
Bookmarks