| Autor | Zpráva | ||
|---|---|---|---|
| Adrián Prelovský Profil |
#1 · Zasláno: 28. 5. 2015, 21:41:46
Zdravím,
mám problém, mám tohle: <?php
$q55=mysql_query("SELECT %st_city . s_name AS onoma1, %st_city . s_name AS onoma2 FROM %st_city, %st_region WHERE %st_region.pk_i_id = %st_city.fk_i_region_id AND %st_region.s_name = 'pk_c_code' ORDER BY %st_city.s_name ASC");
echo mysql_error();
while($nt55=mysql_fetch_array($q55)){
echo "addOption(document.forma.sCity,'$nt55[onoma1]', '$nt55[onoma2]');";
}
?>ale vypíše mi chybu : 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 '%st_city . s_name AS onoma1, %st_city . s_name AS onoma2 FROM %st_city, %st_regi' at line 1 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\Complex-Web-Server-2\www\portal\oc-content\themes\strelto\inc.search.php on line 51 Řádek 54: while($nt55=mysql_fetch_array($q55)){Už nevím co stím, už nevím, kde by mohla být chyba. Předem děkují za každou pomoc :) |
||
| Radek9 Profil |
Adrián Prelovský:
Ty tabulky se opravdu jmenují %st_city a %st_region? Jestli ano, tak je nejspíš musíš obalit do zpětných apostrofů (např. `%st_city`).
|
||
|
Časová prodleva: 10 let
|
|||
0