squiblo Posted August 27, 2010 Share Posted August 27, 2010 Im doing something wrong, something simple but I dont know what.... this line is just not working setInterval("read_chat(" + chatname + "," + number + ")", 500); Thanks Link to comment https://forums.phpfreaks.com/topic/211850-simple-setinterval-problem/ Share on other sites More sharing options...
Alex Posted August 27, 2010 Share Posted August 27, 2010 Strings need quotes around them. This should work (assuming chatname is a string and number is numeric): setInterval("read_chat('" + chatname + "'," + number + ")", 500); [/code] Link to comment https://forums.phpfreaks.com/topic/211850-simple-setinterval-problem/#findComment-1104255 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.