mysql - Timestamp in sql prepared statement -


i trying sort 'greater time' in mysql , using prepared statements.

the query works when put directly database not when in prepared statement. getting no errors whatsoever.

$timesincefirstmark="2015-04-20"; $markremain = $mysqli->prepare("select (100-count(id)) markers date_create > ?"); $markremain->bind_param('s', $timesincefirstmark); $markremain->execute(); $markremain->store_result(); $markremain->bind_result($markremaincount); echo $markremaincount; 


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -