Jump to content

Recommended Posts

Posted

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"]);

}

Posted

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.

 

 

Posted

It is hard to tell without seeing the entire thing, but missing a closing } can cause a lot of problems. Syntax errors, rawr. >.<

Posted

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);

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...