• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Zmienna PHP

Status
Not open for further replies.

Jensej

Member
Joined
Feb 28, 2009
Messages
807
Reaction score
8
Czy może ktoś będzie wiedział dlaczego to wredna zmienna:
PHP:
$invitedd =  $SQL->query("SELECT `invited` FROM `accounts` WHERE `id` =".$account_logged->getCustomField('id')."; ")->fetch();
wypluwa mi Array, zamiast Tego oto wiersza-> `invited`
 
aż tak dobry nie jestem xd. średnio zrozumiałem możesz objaśnić?
 
Chodzi mu o to ze fetch robi wlasnie cos takiego, a jak chcesz wyciagnac rekord to masz zrobic tak
Code:
$invitedd =  $SQL->query("SELECT `invited` FROM `accounts` WHERE `id` =".$account_logged->getCustomField('id')."; ")->fetch(); 
$invitedd = $invitedd['invited'];
 
Status
Not open for further replies.
Back
Top