The script below pulls info out of a file, but now I switched a mysql database, so I need the script below to be converted to pull the information out of a mysql database, can you please convert it to do that.
$file = fopen('http://www.stardefenders.f2s.com/test.dat','r');
$i = 0;
do {
$i++;
$userinfo[$i]["username"] = trim(fgets($file,4096));
$userinfo[$i]["password"] = trim(fgets($file,4096));
$userinfo[$i]["realname"] = trim(fgets($file,4096));
$userinfo[$i]["rankingnumber"] = trim(fgets($file,4096));
$userinfo[$i]["rank"] = trim(fgets($file,4096));
$userinfo[$i]["bnetrecordwins"] = trim(fgets($file,4096));
$userinfo[$i]["bnetrecordlosses"] = trim(fgets($file,4096));
$userinfo[$i]["bnetrecorddisconnects"] = trim(fgets($file,4096));
$userinfo[$i]["icq"] = trim(fgets($file,4096));
$userinfo[$i]["aolim"] = trim(fgets($file,4096));
$userinfo[$i]["emailaddr"] = trim(fgets($file,4096));
$userinfo[$i]["joinTimeStamp"] = trim(fgets($file,4096));
$userinfo[$i]["loginTimeStamp"] = trim(fgets($file,4096));
$userinfo[$i]["space"] = trim(fgets($file,4096));
} while (!feof($file));
fclose($file);
Thankyou!
-Jason