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! Link to comment https://forums.phpfreaks.com/topic/27953-what-be-wrong-here/ 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. Link to comment https://forums.phpfreaks.com/topic/27953-what-be-wrong-here/#findComment-127882 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!!!! Link to comment https://forums.phpfreaks.com/topic/27953-what-be-wrong-here/#findComment-127911 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.