Creating another php file
| From: | Dusten | Date: | Tue, 06 Feb 2001 14:13:14 +0000 |
| Subject: | Creating another php file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-38390@lists.php.net to get a copy of this message | ||
I'm having trouble creating a php file. I've tried to explain it to the
peeps in IRC but am having trouble. It'll be easier to paste my code:
...
$result2 = mysql_query("INSERT INTO winLoss(login, pass)
VALUES('$login', '$pass')");
if($result2)
{
$fp = fopen ("/home2/colorado/public_html/profiles/$screen_name$ext",
"w");
fwrite($fp, "<?php
$result = mysql_query("SELECT * from winLoss WHERE
login='$login' AND pass='$pass'");
?>
<html>
<head>
<title>$screen_name</title>
</head>").........
Ive ommited the redundant things. Basicly it just creates this: SELECT *
from winLoss WHERE login='' I need that value in there. Any ideas?
Thank you
Dusten