Niedziała, sprawdzałemviraptor pisze:$results['u.id'];
A jak to będzie wyglądać gdy pobieram wszystko z danej tabeli?(chodzi mi o zapytanie).viraptor pisze:Jak nie chcesz kropek, to SELECT u.id as uid, itd. -> dostajesz $results['uid'];
Niedziała, sprawdzałemviraptor pisze:$results['u.id'];
A jak to będzie wyglądać gdy pobieram wszystko z danej tabeli?(chodzi mi o zapytanie).viraptor pisze:Jak nie chcesz kropek, to SELECT u.id as uid, itd. -> dostajesz $results['uid'];
Próbowąłem tak funckcą print_r, to mi wyświetliło coś takiego:viraptor pisze:Wypisz sobie po prostu $results po takim zapytaniu, to będziesz wiedział jak się które pole nazywa...
Kod: Zaznacz cały
Array ( [0] => 3 [id] => 1 [1] => Cześć [name] => test [2] => 1 [forum] => 1 [3] => 3 [reply] => 3 [4] => 3 [autor] => 3 [5] => 20:28:03, 15-07-2005 [createdate] => 20:28:03, 15-07-2005 [6] => 3 [7] => 0 [user_level] => 0 [8] => Xardas [username] => Xardas [9] => c4ca4238a0b923820dcc509a6f75849b [pass] => c4ca4238a0b923820dcc509a6f75849b [10] => [email protected] [email] => [email protected] [11] => Wieża Xardasa [u_from] => Wieża Xardasa [12] => 20:26:50, 15-07-2005 [register_date] => 20:26:50, 15-07-2005 [13] => 2 [posts] => 7 [14] => 1 [15] => test [16] => To jest testowe forum, możesz w nim robić co chcesz :D [description] => To jest testowe forum, możesz w nim robić co chcesz :D [17] => 7 [18] => 3 [topics] => 3 ) Kod: Zaznacz cały
Array ( [id] => 1 [name] => test [forum] => 1 [reply] => 3 [autor] => 3 [createdate] => 20:28:03, 15-07-2005 [user_level] => 0 [username] => Xardas [pass] => c4ca4238a0b923820dcc509a6f75849b [email] => [email protected] [u_from] => Wieża Xardasa [register_date] => 20:26:50, 15-07-2005 [posts] => 7 [description] => To jest testowe forum, możesz w nim robić co chcesz :D [topics] => 3 )