Posts: 44
Location: Tbilisi, Georgia
|
Hello all
I need your help in PHP/MySQL...
I have 1 table in MySQL with 1 row. Values:
id = 1
text = Simple Test Text. <?php echo "php echo test"; ?> blah blah blah...
I try to echo this text with <?php ?> echo in simple page. can you tell me how to do this? :roll:
Code:
$query = "SELECT id, text FROM table1 WHERE id = 1 ";
mysql_query($query) or die("Error!");
while ($row = mysql_fetch_array($result)) {
$text = $row['text'];
echo "$text";
}
Any idea? 
__________________
Nothing Is Impossible!
|