Jump to content

[Resolved/Thank You!!!]: parse error, unexpected T_VARIABLE


ridiculous

Recommended Posts

[color=blue]I've been trying to find out the cause of this error and don't have a clue. Its probably quite simple for someone more experience to seek and destroy.[/color]




------------------------------------------------------
<code>

function get_job_details_table($title,$location,$date)

{
$conn = db_connect();

$jobdetails = mysql_query("SELECT title, description, required
FROM jobs WHERE
title='$title' and
location='$location' and
date='$date'")


[color=green]$numofrows = mysql_num_rows($jobdetails);    ///////<-----the error references this line. [/color]
echo "<div id='detailsdiv'>";
echo "<table width='493 px' height= '400 px' align = 'center' border='1' cellpadding='3' cellspacing='3'>";


for($i = 0; $i < $numofrows; $i++) {
 
    $row = mysql_fetch_array($jobdetails); //get a row from our result set
    if($i % 2) { //this means if there is a remainder


echo "<tr bgcolor='#ddd8dc'>";
   
} else {

echo "<tr bgcolor='#feaae9'>";
    }
   
 
   
echo <<HTML
<td align=left>{$row['title']}</td>
<td align=left>{$row['description']}</td>
<td align=center>{$row['required']}</td>
  HTML;

    echo "</tr>";
}



echo "</TABLE>";
echo "</div>";
}

</code>
-------------------------------------------------------------

Any help on this would be killer. Also, if its simple...I sure would like to know how went about solving the problem.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.