Jump to content
php.lv forumi

Neizvada datus no db


djmartins

Recommended Posts

tu pirms postēt, pats apskaties ko tev PHP ziņo...

 

$result = mysql_query("SELECT * FROM news WHERE newsid={$res[0]}",$connect);

 

$connect nomaini uz $db

 

tu vispār ar copy/paste nodarbojies?

Edited by Delfins
Link to comment
Share on other sites

$host == "localhost"; 
$port == "3301";  
$user == "kartupelis2005";  
$pass == "sesku_bralis";  
$database == "news";

 

== un = nav viens un tas pats.

 

edit:

un vēl kas tev ir $res[0] iekš selecta - neredzu ka tāds $res būtu definets kkur- tā iet ka kopy/paste no 10 scriptiem!

Edited by v3rb0
Link to comment
Share on other sites

×
×
  • Create New...