jcombs_31 Posted June 23, 2008 Share Posted June 23, 2008 I just set up a dev machine at a job I'm currently working at and I've run into a strange problem that I haven't seen before. Instead of just escaping characters, mysqli_real_escape_string is deleting an entire string. I can't understand why this is happening. Any clue as to what would cause this? I'm using php 5.2.6 and Mysql 5 Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted June 23, 2008 Share Posted June 23, 2008 It is likely that the function call is returning a null or false because it is failing (undefined, no connection to database...) Is error_reporting set to E_ALL and display_errors set to On for development and debugging purposes? Quote Link to comment Share on other sites More sharing options...
jcombs_31 Posted June 23, 2008 Author Share Posted June 23, 2008 Errors were turned off, thanks for the quick response. The problem was my construct method had an error so the referral to the database link wasn't passing any data. Quote Link to comment 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.