hi guys,
this was working for me for the last couple of days until this morning when I must have changed something by accident. I thought I changed back everything but it's still not working.
This is the error I'm getting
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:\wamp\www\xxxxx\reg.php on line 169
Here is the snippet of code where the problem supposedly is:
$time = "SELECT date FROM orderdetails WHERE compName = '$companyName'";
$sql5 = mysql_query($time);
if (!mysql_query($time, $conn))
{
die('Error: ' . mysql_error());
}
while($row = mysql_fetch_array($sql5, MYSQL_ASSOC))
{
**$time_record = $row['date'];**
}
$orderno = "SELECT orderNo FROM orderdetails WHERE compName = '$companyName'";
$sql4 = mysql_query($orderno);
if (!mysql_query($orderno, $conn))
{
die('Error: ' . mysql_error());
}
while($row = mysql_fetch_array($sql4, MYSQL_ASSOC))
{
$orderno_record = $row['orderNo'];
}
The starred line is 169 but I can't see any issues with it at all. Nor can I see any issues around it.
Can a fresh pair of eyes help? Please :)