php - Bootstrap typeahead and forms - Object of class mysqli could not be converted to string -


i have having issues twitter's bootstrap type ahead. far going smoothly, when drop value user selected in typeahead form , post update function script below error

catchable fatal error: object of class mysqli not converted string in

the below php , mysql code

$race_name = print_r($_post['race'],true); echo gettype($race_name); echo $race_name; $race_query= mysqli_query($dbc."     select city, date, name, state     race_info     name '$race_name'")or die ('could not find race: '.mysqli_error()); 

as can see have tried force variable string. when echo gettype confirms string, still receiving error.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -