PHP.EE FOORUM   
Nimi:   Pass:   Mäleta mind! 
   Teemad | php.ee esilehele | registreeri | Märgi kõik teemad loetuks | #php.ee Skype vestlus | RSS
UUS TEEMA  OTSI  Lehekülgi: 1
mysql_query imelik värk
Postitaja: Leet1337 2011-06-09 19:43:28
[ERROR]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE omanik = 'Nimi'' at line 1[ERROR]

$otsin=mysql_query("SELECT * FROM linnad ORDER BY id WHERE omanik = '".$user['clan']."'") or die(mysql_error());
$radar=mysql_fetch_array($otsin);

whats wrong with that code :(?

Leheküljed: 1

©2002-2013 Martin Rebane & PHP.ee kaasautorid
  0.0782089233398