|
include("config/vars.inc") ?>
mysql_connect($dbHost,$username,$password);
@mysql_select_db($database_art) or die( "Unable to select database");
$query = "SELECT * FROM `oc_0611`";
$result = mysql_query($query);
$num = mysql_numrows($result);
mysql_close();
$i=0;
while ($i < $num) {
$artTitle = mysql_result($result, $i, "title");
$artContent = mysql_result($result, $i, "content");
$artPicName = mysql_result($result, $i, "pic_name");
?>
echo "$artTitle";?>
/oc/ echo "$artPicName";?>.jpg" class="img" style="margin:5px; padding:0px;"/>
echo "$artContent"; ?>
|
$i++;
}
?>
back to news
|
|
|
|
|
|
|
|