unfourtunately thats just bought up the same error on that line 😛 , it has to be something im doing wrong i just cant see what, if you cant tell im not a very big programmer.
heres the whole code as it stands
<?php
$db = mysql_connect("localhost", "user", "passsword");
mysql_select_db("database",$db);
$date1 = $POST['date1'];
$date2 = $POST['date2'];
$date1 = explode("/",$date1);
year = 2
$date2 = explode("/",$date2);
$date1= "$date1[2]-$date1[1]-$date1[0]";
$date2= "$date2[2]-$date2[1]-$date2[0]";
$sql = "SELECT * FROM calls WHERE date => '$date1' AND <='$date2'";
$pull_dates = mysql_query($sql);
$error = mysql_error($pull_dates);
while($r = mysql_fetch_array($pull_dates)){
$call_call = $r['called'];
$call_comp= $r['company_called'];
$call_leng= $r['length_of_call'];
$call_desc= $r['description_of_call'];
$call_main= $r['person_who_called'];
echo $call_call;
echo $call_comp;
echo $call_leng;
echo $call_desc;
echo $call_main;
}
echo "$error"
?>