Autor | Zpráva | ||
---|---|---|---|
Mikeses Profil |
#1 · Zasláno: 31. 10. 2009, 10:44:15
nechapem tento warning Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\inc\profil.inc on line 4
kde <?php if (isset($_COOKIE["prihlasen"])) { $profil1=mysql_query("select * from redirect where id=$id"); while ($profil=MySQL_Fetch_Array($profil1)) { ?> |
||
Enyeus Profil |
#2 · Zasláno: 31. 10. 2009, 10:46:31 · Upravil/a: Enyeus
Napiš id='$id'
Ten warning znamená, že máš chybu v SQL dotazu. |
||
Mikeses Profil |
#3 · Zasláno: 31. 10. 2009, 10:46:49 · Upravil/a: Mikeses
zkouišel sem a nejde
nenapise nic ani warning ani obsah |
||
Enyeus Profil |
#4 · Zasláno: 31. 10. 2009, 10:51:37 · Upravil/a: Enyeus
Třeba tam nemáš ten řádek s id.
Zkus si vypsat echo mysql_num_rows($profil1); |
||
Mikeses Profil |
#5 · Zasláno: 31. 10. 2009, 10:54:10
Enyeus:
> Třeba tam nemáš ten řádek s id. > Zkus si vypsat 1 > echo mysql_num_rows($profil1); 0 |
||
Enyeus Profil |
#6 · Zasláno: 31. 10. 2009, 11:10:57
Tak tam prostě ten řádek s dotyčným id neexistuje.
|
||
Mikeses Profil |
#7 · Zasláno: 31. 10. 2009, 11:23:53
existuje... ma to brat id z url adresy ae proste nebere
|
||
RockFire Profil |
#8 · Zasláno: 31. 10. 2009, 11:44:56
Zkus to napsat správně
$profil1=mysql_query("select * from redirect where id='".$id."'"); |
||
Johnik Profil |
#9 · Zasláno: 31. 10. 2009, 11:51:53
Mikeses:
„existuje... ma to brat id z url adresy ae proste nebere“ Tak jestli z adresy, tak: $profil1=mysql_query("select * from redirect where id='".$_GET['id']."'"); |
||
Mikeses Profil |
#10 · Zasláno: 31. 10. 2009, 11:57:27
funguje thx
|
||
Časová prodleva: 14 let
|
0