Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I know this is not the answer to the question you asked but since you tagged this beginner I would just like to say, you cannot trust <strong>any</strong> data from users.</p> <p>As soon as you do you open your site to the risk of sql injections and xss attacks.</p> <p>You need to validate all input and <a href="http://php.net/htmlentities" rel="nofollow noreferrer">escape</a> all output that comes from a user. </p> <p>Using unsanitized data from the user in your sql could unintentionally break the sql statement if quotes and other sql characters are used. But more importantly it could result in sql injection with <strong>very</strong> bad things like tables being dropped and admin accounts being comprised. </p> <p>Look at <a href="http://php.net/manual/en/language.types.type-juggling.php#language.types.typecasting" rel="nofollow noreferrer">typecasting</a>, <a href="http://php.net/manual/en/book.filter.php" rel="nofollow noreferrer">validating and sanitizing</a> variables and using <a href="http://php.net/pdo" rel="nofollow noreferrer">PDO</a> with prepared statements. If <a href="http://php.net/pdo" rel="nofollow noreferrer">PDO</a> is not available to you use <a href="http://php.net/pg_escape_string" rel="nofollow noreferrer">pg_escape_string</a>.</p> <p>Not <a href="http://php.net/htmlentities" rel="nofollow noreferrer">escaping</a> the output could result in an attacker inserting code into your site (xss) which for example could allow them to steal passwords and cookies from you and your users. They could also fill your site you with hidden spam links, if google finds out first the site will be blacklisted.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload