Page 1 of 1

Problem with this php code:

Posted: Sun Mar 02, 2003 7:39 pm
by nigma
<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>

Posted: Sun Mar 02, 2003 9:52 pm
by Kriek
What errors if any is it giving you?
Btw you posted this in the wrong section =)

Posted: Sun Mar 02, 2003 10:06 pm
by nigma
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.

Posted: Sun Mar 02, 2003 10:18 pm
by Kriek
No problem -- good luck with the rest of your project.