ThisIzDisplayName Posted July 20, 2011 Share Posted July 20, 2011 Quote Link to comment Share on other sites More sharing options...
Brother Hassan Posted July 20, 2011 Share Posted July 20, 2011 I don't know much about Mysql but have you tried Googling it Half the problems are available on Google Quote Link to comment Share on other sites More sharing options...
Tjoene Posted July 20, 2011 Share Posted July 20, 2011 I don't know much of PHP, but this is what I see that could be wrong: if (isset($result)) { echo "good"; } else { die(echo 'Invalid select query: ' . mysql_error()); } ---------------------------------------------------------------------- while ($Rowcount == mysql_fetch_assoc($result)) { print_r(array_keys($row)); print_r($Rowcount["Danumber"]); } Quote Link to comment Share on other sites More sharing options...
PenTester Posted July 20, 2011 Share Posted July 20, 2011 Is your problem solved? if not, then post the full PHP code here. I will try to find the error. Note: Don't publish your database table name. if you are going to post code, replace the confidential data with some other name. You have specified bob2 as table name. if it is real table name of your site, then you should not post those table names. Quote Link to comment Share on other sites More sharing options...
Krydos Posted July 20, 2011 Share Posted July 20, 2011 It is hard to tell without seeing the entire thing, but missing a closing } can cause a lot of problems. Syntax errors, rawr. >.< Quote Link to comment Share on other sites More sharing options...
Brother Hassan Posted July 21, 2011 Share Posted July 21, 2011 Don't publish your database table name. Nice Tip Does it allow others to damage your site or something ? Quote Link to comment Share on other sites More sharing options...
Tjoene Posted July 21, 2011 Share Posted July 21, 2011 Yes you can. If you know the the names of the database or tables you can use SQL Injection and wipe the whole database or table. You could prevent this using this php command e.g.: $string = mysql_escape_string($string); Quote Link to comment Share on other sites More sharing options...
ThisIzDisplayName Posted July 25, 2011 Author Share Posted July 25, 2011 Quote Link to comment Share on other sites More sharing options...
mikenyc Posted July 26, 2011 Share Posted July 26, 2011 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.