我现在正在制作一个PHP网页,并希望在右边有一个“新闻”DIV.一旦页面加载,它就会自动滚动垂直文本.但是,下面的代码不能在PHP页面中工作.
PHP Code Start ************************--->
PHP
error_reporting(E_ALL ^ E_DEPRECATED);
//********************* DB Configuration Code *********************
ob_start();
define('DB_SERVER','localhost');
define('DB_USERNAME','xxxx');
define('DB_PASSWORD','');
define('DB_DATABASE','MyDb');
$connection = MysqL_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD) or die(MysqL_error());
$database = MysqL_select_db(DB_DATABASE) or die(MysqL_error());
//************** Selection of Data *********************
$select=MysqL_query("SELECT * FROM newsFeedtest order by created asc");
$i=1;
//************* Display Data *********************
while($userrow=MysqL_fetch_array($select))
{
$id=$userrow['id'];
$usernews=$userrow['news'];
$created=$userrow['created'];
//******** Div Displays Data *******
echo '
原文链接:https://www.f2er.com/html/425523.html