This is my PHP code:
$timestamp2 = strtotime('13:30 04/12/2013');
But, I want to put the these variables in this code:
$mi = mysql_real_escape_string($_POST['mi']);
$ho = mysql_real_escape_string($_POST['ho']);
$da = mysql_real_escape_string($_POST['da']);
$mo = mysql_real_escape_string($_POST['mo']);
$ye = mysql_real_escape_string($_POST['ye']);
So for example:
$timestamp2 = strtotime('$mi:$ho $mo/$da/$ye');
I tried already multiple possibilities with quotes and etc.. But it didn't have any succes. Can someone help me with this?
Thanks!
strtotimeon all the variables, put them in an array and run them through aforeach