darryncooke
Technical User
I have a select function in php.
Using
did not work (however it works as a select statement in MySQL). Neither does what i have now. I need the timestamp to equal the month that is being passed in the url.
any help is appreciated.
thank you,
Darryn Cooke
| The New Orange County Graphic designer and Marketing and Advertising Consultant
| Marketing and Advertising blog
Code:
$month_recordEventsmonth = "April";
if (isset($_GET['month'])) {
$month_recordEventsmonth = $_GET['month'];
}
mysql_select_db($database_theGREENbar, $theGREENbar);
$query_recordEventsmonth = sprintf("SELECT * FROM wp_cgm_cal_entries WHERE FROM_UNIXTIME(start_date_time) = %s", GetSQLValueString($month_recordEventsmonth, "text"));
$recordEventsmonth = mysql_query($query_recordEventsmonth, $theGREENbar) or die(mysql_error());
$row_recordEventsmonth = mysql_fetch_assoc($recordEventsmonth);
$totalRows_recordEventsmonth = mysql_num_rows($recordEventsmonth);
Using
Code:
FROM_UNIXTIME(start_date_time, "%M")
any help is appreciated.
thank you,
Darryn Cooke
| The New Orange County Graphic designer and Marketing and Advertising Consultant
| Marketing and Advertising blog