Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: WyPuk klausimai

Parašė WyPuk· 2009 Spa. 11 17:10:03
#14

Iškilo problema rašo kaip instaliuoju http://www.uzdarbis.lt/index.php...9&st=0 štai čia hostingo TVS, man meta

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/WyPuk/domains/m4u.djm.lt/public_html/tvs/config.php on line 28
Negaliu prisijungti prie mysql.




O tas config.php, tačiau Config.php faile aš neįrašau DirectAdmin duomenų, ar gali būti nuo to?
<?
/////MySQL connection///////////

mysql_connect("localhost","įrašau", "įrašau") or die
(mysql_error());
mysql_select_db("įrašau") or die(mysql_error());

/////Contact email//////////////

$admin_email = "email@email.lt";

/////DirectAdmin duomenys////////

$directadmin_user = "username";
$directadmin_pass = "password";
$directadmin_host = "example.lt";
$directadmin_ip = "xx.xx.xx.xx.x";


/////Domen information///////////

$domen = $_SERVER['HTTP_HOST'];
$domen = str_replace("www.", "", $domen);

//////Get's information//////////

$getas = $_SERVER['QUERY_STRING'];
$mas=explode(";", $getas);
$sub = $mas[0];
$opt = $mas[1];
$bid = $mas[2];

/////Get user cookie and aps///////

$get_user_code = $HTTP_COOKIE_VARS["host_user"];
$aps_user_log = mysql_num_rows(mysql_query("select * from host_user where src='$get_user_code'"));

////Object include/////////////////

$arr = glob("object/*.php");
for($i=0; $i<count($arr); $i++) { include"$arr[$i]";}

/////End Of The Configurations///////////
?>



Redagavo WyPuk· 2009 Spa. 11 17:10:11