Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>"<strong>ONE</strong>" of the reasons as to why it's not working is that you are not telling it <strong>"WHAT"</strong> to <a href="http://beginner-sql-tutorial.com/sql-insert-statement.htm" rel="nofollow noreferrer"><code>INSERT INTO</code></a></p> <p>For example and assuming your DB columns are named:</p> <blockquote> <p>id - getuser - getpass - getemail - column_for_0 - code - date</p> </blockquote> <p>You would need to do something like:</p> <pre><code>mysql_query("INSERT INTO users (id, getuser, getpass, getemail, column_for_0, code, date) VALUES('', '$getuser', '$getpass', '$getemail', '0', '$code', '$date' )"); </code></pre> <p>I almost must note that your code is <strong><a href="https://stackoverflow.com/q/60174/1415724">open to injection</a></strong> and <a href="https://stackoverflow.com/a/13944958/1415724"><code>MySQL_</code> is deprecated</a> therefore it is strongly suggested to now use <a href="http://en.wikipedia.org/wiki/MySQLi" rel="nofollow noreferrer"><code>MySQLi_</code></a> and/or <strong><a href="http://net.tutsplus.com/tutorials/php/pdo-vs-mysqli-which-should-you-use/" rel="nofollow noreferrer"><code>PDO</code></a></strong>.</p> <p>You also need to make sure that <code>session_start();</code> is inside ALL your linked or included files.</p> <p>I must also make another note that storing passwords using <code>MD5</code> is no longer considered safe.</p> <ul> <li>Consider using PHP's <a href="http://php.net/manual/en/function.password-hash.php" rel="nofollow noreferrer"><code>password_hash()</code></a> function and using <a href="http://php.net/manual/en/mysqli.quickstart.prepared-statements.php" rel="nofollow noreferrer">Prepared Statements</a> if you plan on using MySQLi.</li> </ul>
    singulars
    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.
 

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