I modified a code but it is not really enough the fallowing code just lists the "say" field so the out come is like this
sddjska
dsadsadsa
dsadsad
on the web page and here is the code
Code: Select all
<html>
<head>
<title> Log Say </title>
<head>
<body>
<?php
// Connect to the database server
$dbcnx = @mysql_connect("localhost", "boyem", "pass", "boyem_com");
if (!$dbcnx) {
echo( "<p>Unable to connect to the " .
"database server at this time.</p>" );
exit();
}
if (! @mysql_select_db("boyem_com") ) {
echo( "<p>Unable to locate Log Say " .
"database at this time.</p>" );
exit();
}
?>
<p> Log Say: </p>
<blockquote>
<?php
//
$result = @mysql_query("SELECT say FROM say");
if (!$result) {
echo("<p>Error performing query: " . mysql_error() . "</p>");
exit();
}
//
while ( $row = mysql_fetch_array($result) ) {
echo("<p>" . $rowї"say"] . "</p>");
}
?>
</blockquote>
</body>
</html>well as you can see it just lists the says but I want it to be shown like this
player_name: Say
Player_name: say
player_name: say
well of course player_name changes according to what is in the rows.
how can i do that...I am really new to PHP
thanks a lot in advance