RenegadeLeader
10-16-2003, 06:36 AM
:mad: :mad: :mad: :mad: :mad: :mad:
Omg, i cant get this stupif script to work! Im trying to select a simple row, and print it, and it doesnt work! WHY! heres the table:
TipID TipDesc
1 Tip
So how would i select!! Heres the script i use:
(Yes, its saved as a .php file)
<html>
<head>
</head>
<body bgcolor="#000000">
<font color="#CC0000">
<?PHP
$db = mysql_connect("localhost", "user", "pass") or die("Couldnt Connect!!");
print "Success!";
mysql_select_db("misc", $db) or die("couldnt connect to DB!!");
print "success-db";
'SELECT *
FROM t1p WHERE TipID = 1';
mysql_close($db);
?>
</font>
</body>
</html>
Omg, i cant get this stupif script to work! Im trying to select a simple row, and print it, and it doesnt work! WHY! heres the table:
TipID TipDesc
1 Tip
So how would i select!! Heres the script i use:
(Yes, its saved as a .php file)
<html>
<head>
</head>
<body bgcolor="#000000">
<font color="#CC0000">
<?PHP
$db = mysql_connect("localhost", "user", "pass") or die("Couldnt Connect!!");
print "Success!";
mysql_select_db("misc", $db) or die("couldnt connect to DB!!");
print "success-db";
'SELECT *
FROM t1p WHERE TipID = 1';
mysql_close($db);
?>
</font>
</body>
</html>