Brother Hassan Posted July 20, 2011 Posted July 20, 2011 I don't know much about Mysql but have you tried Googling it Half the problems are available on Google
Tjoene Posted July 20, 2011 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"]); }
PenTester Posted July 20, 2011 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.
Krydos Posted July 20, 2011 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. >.<
Brother Hassan Posted July 21, 2011 Posted July 21, 2011 Don't publish your database table name. Nice Tip Does it allow others to damage your site or something ?
Tjoene Posted July 21, 2011 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);
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now