Ghamdan Posted November 11, 2012 Share Posted November 11, 2012 I am trying to access a variable inside a while loop to echo a message. php passes me an error message saying " undefined var on ..... and ....." How can I implement that when I am using a while loop? Thank you. Link to comment Share on other sites More sharing options...
Edward Posted November 11, 2012 Share Posted November 11, 2012 Can you show us what code you have so far? And where is the variable declared in this script or another script, has this variable been included. You could run a standard php function to check if the variable is defined for use. Link to comment Share on other sites More sharing options...
Ghamdan Posted November 11, 2012 Author Share Posted November 11, 2012 Thank you Edward, I have resolve the problem. Link to comment Share on other sites More sharing options...
Larry Posted November 12, 2012 Share Posted November 12, 2012 Ghamdan, read the forum rules before you post again. You need to post the code you're using, post the full error message, and then you should post the solution once it's working. You are doing none of those things, although you've been told before. If you don't start doing better, I'll have to block you from these forums. Link to comment Share on other sites More sharing options...
Recommended Posts