ridiculous Posted October 13, 2006 Share Posted October 13, 2006 [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 https://forums.phpfreaks.com/topic/23821-resolvedthank-you-parse-error-unexpected-t_variable/ Share on other sites More sharing options...
Jeremysr Posted October 13, 2006 Share Posted October 13, 2006 I think you need a semi-colon right at the end of the line above the one you said the error was on. The date='$date' line. Link to comment https://forums.phpfreaks.com/topic/23821-resolvedthank-you-parse-error-unexpected-t_variable/#findComment-108186 Share on other sites More sharing options...
ridiculous Posted October 13, 2006 Author Share Posted October 13, 2006 Lord Ahmightay. Bless you son, bless you. Link to comment https://forums.phpfreaks.com/topic/23821-resolvedthank-you-parse-error-unexpected-t_variable/#findComment-108187 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.