ToonMariner Posted November 21, 2006 Share Posted November 21, 2006 I have a registration/profile editing page.Now if I run a query on this page, the number of rows affected is always '-1'. Without posting code I have echoed out the query string and run it independantly and its fine - no errors.I did think some issue may have arisen from the secure socket layer but that was just clutching at straws.If anyone can think of anything or need to see the code or settings just ask I'll be very greatful for any ideas as I am fresh out! Quote Link to comment Share on other sites More sharing options...
joshi_v Posted November 21, 2006 Share Posted November 21, 2006 Normally mysql_affected_rows will return -1 rows only when the query fails.It would be better to post your code to check if you can. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted November 21, 2006 Author Share Posted November 21, 2006 *Solved*But don't know why!!!!I copied the generated query and had it hard coded into my query - which was successful. When replaceing the hard coded string with its generated variable that also worked!!!! 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.