PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
In the code below, I get a null value. If I echo $month_start and $upcoming_events_end, I get 2011-01-01 and 2011-01-31, so it appears that the correct data is being passed. Any idea what might be wrong here?
$query = "SELECT * FROM wp_calendar WHERE event_category = '4' AND something BETWEEN '$month_start' AND '$upcoming_events_end'";
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.