<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>test07</title>
</head>
<body>
<?php
$connect=mysql_connect("localhost","root","*******");
$mysql=mysql_select_db("php02",$connect);
$query="select say from adText where n=1";
$sql = mysql_query($query);
$rows1 = mysql_fetch_assoc($sql);
echo $rows1['say'];
$query="select say from adText where n=2";
$sql = mysql_query($query);
$rows2 = mysql_fetch_assoc($sql);
echo $rows2['say'];
?>
</body>
</html>
The code above produces two values “myText1” for row1 and “myText2” for row2 at http://dot.kr/x-test/08.php .
I like to put a line break between myText1 and myText2.
The following at http://dot.kr/x-test/08-01.php is one of my trials . but it seems not to work.
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>test07</title>
</head>
<body>
<?php
$connect=mysql_connect("localhost","root","*******");
$mysql=mysql_select_db("php02",$connect);
$query="select say from adText where n=1";
$sql = mysql_query($query);
$rows1 = mysql_fetch_assoc($sql);
echo $rows1['say'];
[COLOR="Red"]"<br>";[/COLOR]
$query="select say from adText where n=2";
$sql = mysql_query($query);
$rows2 = mysql_fetch_assoc($sql);
echo $rows2['say'];
?>
</body>
</html>