|
Posted by McKirahan on 03/10/07 03:53
"robert maas, see http://tinyurl.com/uh3t" <rem642b@yahoo.com> wrote in
message news:rem-2007mar09-001@yahoo.com...
> Background: A few days ago I was browsing <www.free-webhosts.com>,
> specifically <http://www.thefreesite.com/Free_Web_Space/>, where it
> lists <http://www.5gbfree.com/> which allows 3GB of Web space plus
> 10 MySql databases! I tried to get an account there, but I can't
> see the letters in the box (CAPTCHA) because my access is text
> only. (Details of my situation:
> <http://www.rawbw.com/~rem/NewPub/mySituation.html>)
> But earlier today I briefly got full net access at a local computer
> lab that was just about to close for the day, so I was able to
> complete my registration. I now have my own 5gbfree.com site. I was
> able to create a database called test1, a user called self, and set
> up priviledge for that user to use that database, except I have no
> idea how to check if it really worked, because my test script
> doesn't work:
>
> <?
> $user="calrobert_self"; $password="...";
> $res = mysql_connect(localhost,$user,$password);
> echo "res = $res<br>";
> $database="test1";
> @mysql_select_db($database) or die( "Unable to select database
$database");
> mysql_close();
> ?>
[snip]
Check "mysql_connect()" -- http://us2.php.net/function.mysql-connect
Perhaps "localhost" should be the something in the 5gbfree.com domain...
Navigation:
[Reply to this message]
|