php - Data retrieval Issue -


i haven't found common sense way retrieve value column has space in it. example medal of honor column name , value number 0-15. yet moment write

if($medal of honor >= 1) { 

the $medal read value , not $medal of honor duh right

i tried add [] {} '' "" possible around variable no success

any great.

try fetch_assoc column names white space keep array keys. may access them $row['medal of honor'] .


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -