"; } else { include("$opendatabase"); $query = "INSERT INTO `tbt_countries` ( `cid` , `country` , `flag` ) VALUES (NULL , '$countryname', '$filename')"; $result = mysql_query($query) or die("Couldn't execute query (add country): ".mysql_error()); echo "Added $countryname to the country list
"; } } include("$opendatabase"); $query = "SELECT * FROM tbt_countries ORDER BY `cid` ASC"; $result = mysql_query($query) or die("Couldn't execute query (add country): ".mysql_error()); $num = mysql_num_rows($result); echo "
cid | country | flag | delete |
$cid | $country | delete |