Jump to content

Caps

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Caps's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Is it allowed to have more than one SQL statements (SELECT and DELETE) in one mysql_query() method? Or must you have two mysql_query methods to it? If the user posts something you want to set into your database, will they could finished the insert statement and execute a drop and delete statement in the same mysql_query method? Like: site.php?id = .... $id = "'; DELETE FROM users WHERE id = 1" //user changed variable mysql_query("SELECT navn FROM users WHERE id = '$id'") The above code does not work, but I hope you got the idea of it. Is it possible in any way?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.