I have a file of my own functions that I include in many places. Oneof them uses mysql_real_escape_string, however, it may be called in acontext that will or will not connect to a mysql server, and worse,may already be connected. So I must avoid connecting. However, when Irun the script without connecting I get this error: Warning: mysql_real_escape_string()[function.mysql-real-escape-string]: Access denied for user:'nobody@localhost' (Using password: NO) I was thinking about checking if there is a connection, and if notthen connecting. This seems redundant to me, however. What is thelist's opinion of this situation? Thanks in advance. Dotan Cohen http://what-is-what.comhttp://gibberish.co.ilא-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת; A: Because it messes up the order in which people normally read text.Q: Why is top-posting such a bad thing?