<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<?
$csname = $_GET["memName"];
require("util.php");
$sql = new MySQL_Class;
$sql->Create("mc0");
$sql->Query("Select * from users where (csName = '$csname');
$fname = $sql->data[0];
$lname = $sql->data[1];
$csname = $sql->data[2];
$gun = $sql->data[3];
$rank = $sql->data[4];
$os = $sql->data[5];
echo("<table cellspacing=2 cellpadding=2 border=1 bordercolor=black>");
echo '<tr><td>First Name: $fname</td></tr>';
echo '<tr><td>Last Name: $lname</td></tr>';
echo '<tr><td>CS Name: $csname</td></tr>';
echo '<tr><td>Favorite Gun: $gun</td></tr>';
echo '<tr><td>current Rank: $rank</td></tr>';
echo '<tr><td>Current OS: $os</td></tr>';
echo '</table>';
?>
</body>
</html>
Problem with this php code:
Moderator: General Moderators
Sorry bout posting this wrong spot. This post is like a few days old and I have found out what was wrong. Nothing was wrong with the syntax inside the html file, it was the syntax inside the stylesheet that was making things not work. Just had to find out a little bit more about CSS to catch my mistake.
Thanks for the help.
Thanks for the help.