我试图做的是,通过gra取数据库信息并把它放入 j阵列,制造滑坡。 目前,我正在利用“jquery ajax”功能,把信息从单独的“Candre”档案中提出来。 这里是我的《加拿大刑法》:
mysql_connect( x , x , x ) or die( Not Connecting );
mysql_select_db( x ) or die ( No Database Selected );
$i = 0;
$sql = mysql_query("SELECT comicname FROM comics ORDER BY upldate ASC");
while($row = mysql_fetch_array($sql, MYSQL_ASSOC)) {
echo "comics[" .$i. "]= comics/" .$row[ comicname ]. " ;";
$i++;
}
What I want is to create the array in php from the mysql query and then be able to reference it with javascript in order to build a simple slideshow script. Please let me know if you have any questions or suggestions.