Guest_imported
New member
- Jan 1, 1970
- 0
Hi.
I have made a php script with an MySQL database.
Whar I want to do is to count the number of enteries i the databas Cars.
Whats wrong wit this code ?
$db = @mysql_connect("143.141.2.122","root","math"
or die ("Can't open ..."
;
$databasen = mysql_select_db("Cars"
;
$fraga = "SELECT COUNT(*) AS Color FROM Modell";
$resultat = mysql_query($fraga);
echo $resultat;
I only get thi error code 'Resource id #2'
I have made a php script with an MySQL database.
Whar I want to do is to count the number of enteries i the databas Cars.
Whats wrong wit this code ?
$db = @mysql_connect("143.141.2.122","root","math"
or die ("Can't open ..."
$databasen = mysql_select_db("Cars"
$fraga = "SELECT COUNT(*) AS Color FROM Modell";
$resultat = mysql_query($fraga);
echo $resultat;
I only get thi error code 'Resource id #2'