Re: Creating another php file

From: Date: Thu, 08 Feb 2001 09:29:01 +0000
Subject: Re: Creating another php file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38707@lists.php.net to get a copy of this message
> $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? This seems pretty weird... What are you really trying to do? Big Picture. What value do you need in that file, and why can't you just fwrite($fp, "xxx") to get it there? -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#38707) next »