0
I made the following selection
$selficha = mysqli_query($conexao,"SELECT * FROM ficha WHERE nome='$user->username'");
$ficha = mysqli_fetch_row($selficha);
When I want to get a table result ficha
nothing appears.
I give print $ficha["deus"]
and the result is blank.
Table structure ficha
CREATE TABLE `ficha` (
`nome` varchar(25) NOT NULL DEFAULT '',
`força1` smallint(7) NOT NULL DEFAULT '0',
`força2` smallint(7) NOT NULL DEFAULT '0',
`const` smallint(7) NOT NULL DEFAULT '0',
`agil` smallint(7) NOT NULL DEFAULT '0',
`Crenca` smallint(7) NOT NULL DEFAULT '0',
`Dedi` smallint(7) NOT NULL DEFAULT '0',
`hp` smallint(20) NOT NULL DEFAULT '0',
`hpa` smallint(20) NOT NULL DEFAULT '0',
`cosmo` smallint(20) NOT NULL DEFAULT '0',
`cosmoa` smallint(20) NOT NULL DEFAULT '0',
`golpe1` varchar(25) NOT NULL DEFAULT '',
`golpe2` varchar(25) DEFAULT NULL,
`golpe3` varchar(25) DEFAULT NULL,
`golpe4` varchar(25) DEFAULT NULL,
`regiao` varchar(20) NOT NULL DEFAULT '',
`grupo` varchar(20) NOT NULL DEFAULT '',
`convite` varchar(20) NOT NULL DEFAULT '',
`deus` varchar(10) NOT NULL DEFAULT '',
`cea` int(7) NOT NULL DEFAULT '0',
`v` int(10) NOT NULL DEFAULT '0',
`d` int(10) NOT NULL DEFAULT '0'
)
The return of
mysqli_fetch_row
is a array of numerical indices, not a array associative.– Woss