I am trying to create a table to help out a friend with timesheeting, however I am getting a PHP error and seem to be going round in circles
<td >".$Thursday_Job_1_Lunch." mins</td>
<td>" if (empty($Darren_Thursday_Job_1)) && ($Darren_Thursday_Job_1_Same == 'OFF')
echo "No Darren;"
}
elseif { $Darren_Thursday_Job_1_Same =='ON' echo "Darren did the same"; }
else { echo .$Darren_Thursday_Job_1;}
"</td>
It's passed from HTML, Darren_Thursday_Job_1_Same is a checkbox to say that Darren has done the same, else its meant to echo whats in the input box and if Darren is "Off" and the text input is empty it is meant to say nothing.
Parse error: syntax error, unexpected T_IF in /home/a2687257/public_html/test3.php on line 227
is the error that it is throwing at me.
thanks for the replies,
Here is a more fuller portion of the code:
$message = "
Hi Rhonda,<br/><br/>
Here is my time sheet for this week<br/><br/>
<style>
table, td, tr {
align:centre;
}
</style>
<table>
<tr>
<th >Day</th>
<th >Date</th>
<th >Location</th>
<th >Start Time</th>
<th >End Time</th>
<th >Total Time</th>
<th >Lunch</th>
<th >Darrens</th>
</tr>
<tr bgcolor='#d7f2ff'>
<td rowspan='3'>Thursday</td>
<td rowspan='3'>".$Thursday_Date."</td>
<td >".$Thursday_Job_1."</td>
<td >".$Thursday_Start_Time_Job_1_Hours.".".$Thursday_Start_Time_Job_1_Minutes."</td>
<td >".$Thursday_Finish_Time_Job_1_Hours.".".$Thursday_Finish_Time_Job_1_Minutes."</td>
<td >".$Thursday_Job_1_Total_Hours."hours ".$Thursday_Job_1_Total_Minutes." mins</td>
<td >".$Thursday_Job_1_Lunch." mins</td>
<td>" if (empty($Darren_Thursday_Job_1)) && ($Darren_Thursday_Job_1_Same == 'OFF')
echo "No Darren;"
}
elseif { $Darren_Thursday_Job_1_Same =='ON' echo "Darren did the same"; }
else { echo .$Darren_Thursday_Job_1;}
"</td>
</tr>
<tr bgcolor='#d7f2ff'>;
<td >".$Thursday_Job_2."</td>
<td >".$Thursday_Start_Time_Job_2_Hours.".".$Thursday_Start_Time_Job_2_Minutes."</td>
<td >".$Thursday_Finish_Time_Job_2_Hours.".".$Thursday_Finish_Time_Job_2_Minutes."</td>
</tr>
<tr bgcolor='#d7f2ff'>
<td >".$Thursday_Job_3."</td>
<td >".$Thursday_Start_Time_Job_3_Hours.".".$Thursday_Start_Time_Job_3_Minutes."</td>
<td >".$Thursday_Finish_Time_Job_3_Hours.".".$Thursday_Finish_Time_Job_3_Minutes."</td>
</tr>
I do have <?php
at the top too and the bottom