<?php
//after connecting etc..
$username = $_SESSION['username'];
$string = "SELECT msg FROM $table WHERE username='$username'";
$result = mysql_fetch_array(mysql_query($string)) or die(mysql_error());
echo $result[msg];
?>
这就是数据库的用途..
I wanted to install the database base.
I wanted to install the database server.
I wanted to install the Ubuntu.
当我检索它们时,它们显示为..
I wanted to install the database base.I wanted to install the database server.I wanted to install the Ubuntu.
它是一个TEXT字段..有没有办法让它们与新行一起出现?完全一样吗?
非常感谢!