fork download
  1. <?php
  2.  
  3. foreach ($matches as $cont){
  4. $x= $cont;
  5. $str_sql_query = "SELECT id FROM dbCountries WHERE name LIKE '%$x%' OR alias LIKE '%$x%' ";
  6.  
  7. $result = mysql_query($str_sql_query, $link))
  8.  
  9. while ($line = mysql_fetch_array($result, MYSQL_BOTH)) {
  10. echo "$line[0]\n";
  11.  
  12.  
  13. }
  14. }
Runtime error #stdin #stdout #stderr 0.02s 23608KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected ')' in /home/z4cCOl/prog.php on line 7