jjkessler Posted December 2, 2006 Share Posted December 2, 2006 I have a small piece of code that has a problem that returns a undefined error. I believe I am missing "" somewhere and could use another set of eyes. Am I allowed to post the piece of code for a fresh perspective? Quote Link to comment https://forums.phpfreaks.com/topic/29260-help-with-undefined-error/ Share on other sites More sharing options...
onlyican Posted December 2, 2006 Share Posted December 2, 2006 just remember the code tags, and add the snippit here, please dont post the whole page Quote Link to comment https://forums.phpfreaks.com/topic/29260-help-with-undefined-error/#findComment-134132 Share on other sites More sharing options...
jjkessler Posted December 2, 2006 Author Share Posted December 2, 2006 Again, I am getting an undefined error for clusterer. I think I am missing "" somewhere$result = mysql_query("SELECT * FROM MainTable",$link);if (!$result){echo "no results ";}while($row = mysql_fetch_array($result)) { echo "var point = new GLatLng(" . $row['lon'] . "," . $row['lat'] . ");\n"; echo "var marker = createMarker(point, '" . addslashes($row['ResourceName']) . "');\n"; echo "clusterer.AddMarker(marker, '" . addslashes($row['ResourceName']) . "');\n"; } Quote Link to comment https://forums.phpfreaks.com/topic/29260-help-with-undefined-error/#findComment-134134 Share on other sites More sharing options...
onlyican Posted December 3, 2006 Share Posted December 3, 2006 Paste the error code here as well Quote Link to comment https://forums.phpfreaks.com/topic/29260-help-with-undefined-error/#findComment-134146 Share on other sites More sharing options...
AndyB Posted December 3, 2006 Share Posted December 3, 2006 I suspect that you're actually getting a [b]warning[/b] that some variable is undefined. Either define it, or reduce the error_reporting level in your script. Quote Link to comment https://forums.phpfreaks.com/topic/29260-help-with-undefined-error/#findComment-134161 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.