dave1234 Posted July 1, 2010 Share Posted July 1, 2010 echo "document.write('<a href=\"" . $url. "/index.php?com=detail&eID=" . $row[0] . "\" class=\"link\">" . $count++ .") ". strip_tags(cOut($row[1])) . "</a><br />');"; $row[0] = id $row[1] = name output should be link: 1) name 2) name ... Link to comment https://forums.phpfreaks.com/topic/206396-what-is-the-error-here/ Share on other sites More sharing options...
Zane Posted July 1, 2010 Share Posted July 1, 2010 what's it not doing, I don't see any errors Link to comment https://forums.phpfreaks.com/topic/206396-what-is-the-error-here/#findComment-1079706 Share on other sites More sharing options...
dave1234 Posted July 1, 2010 Author Share Posted July 1, 2010 no output and no error. i think there is one ")" missing. Link to comment https://forums.phpfreaks.com/topic/206396-what-is-the-error-here/#findComment-1079709 Share on other sites More sharing options...
gwolgamott Posted July 1, 2010 Share Posted July 1, 2010 Or an extra one. . $count++ .") ". is that ) closing your document.write for too early? EDIT: I see why it's there now, for your "1)" but I think it is breaking things by closing the document.write too early. Link to comment https://forums.phpfreaks.com/topic/206396-what-is-the-error-here/#findComment-1079711 Share on other sites More sharing options...
Zane Posted July 1, 2010 Share Posted July 1, 2010 try commenting out that first parentheses ount++ .") ". ount++ ."\) ". Link to comment https://forums.phpfreaks.com/topic/206396-what-is-the-error-here/#findComment-1079712 Share on other sites More sharing options...
dave1234 Posted July 1, 2010 Author Share Posted July 1, 2010 thank you for your reply. I tried $count++ . "\)". still closing document write there. Link to comment https://forums.phpfreaks.com/topic/206396-what-is-the-error-here/#findComment-1079777 Share on other sites More sharing options...
gwolgamott Posted July 1, 2010 Share Posted July 1, 2010 Try this $temp_bob = "<a href=\"" . $url. "/index.php?com=detail&eID=" . $row[0] . "\" class=\"link\">" . $count++ .") ". strip_tags(cOut($row[1])) . "</a><br />"; echo "document.write($temp_bob)"; EDIT: Nevermind that will not work... I'm not sure what the work around for this is... hmmm Link to comment https://forums.phpfreaks.com/topic/206396-what-is-the-error-here/#findComment-1079809 Share on other sites More sharing options...
gwolgamott Posted July 1, 2010 Share Posted July 1, 2010 I don't know why Zanus fix didn't work... had to check the escape for javascript. That "\)" should have fixed it... hmmm. Link to comment https://forums.phpfreaks.com/topic/206396-what-is-the-error-here/#findComment-1079816 Share on other sites More sharing options...
Zane Posted July 1, 2010 Share Posted July 1, 2010 no output and no error. i think there is one ")" missing. Perhaps you have error_reporting set to the lowest.. or display errors is off is why My best guess.. a shot in the dark is that you're missing a semicolon on the statement above this one that you're showing us. Link to comment https://forums.phpfreaks.com/topic/206396-what-is-the-error-here/#findComment-1079868 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.