|
mysql_connect($dbHost,$username,$password);
@mysql_select_db($database_art) or die( "Unable to select database");
$query = "SELECT title, content FROM `art_0313` WHERE category ='calendar'";
$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");
?>
echo"$artTitle ";
?>
echo "$artContent"; ?>
$i++;}?>
|
|
|
|