By learning MySQL.
But joke aside;
What you need is to create a web_build column in a table. I don't know what table is the problem, you would have to either give me that information or debug it yourself.
When you've found your table, you can also make a query:
ALTER TABLE (your table)...
Next...
This is the errors:
- PHP inside HTML markup (unless you really wan't to echo HTML, but I recommend NOT to do it)
- The content does not go into HTML tags, it goes in body tags (google for a HTML5 template)
- Use require_once to make it faster, and more stable (include will include a...
Ok so.... Never, ever in your whole life from now on use regular expression to parse HTML. It's not only slow and inefficient, but you kill a baby seal every time you do it. Use this instead
You don't need to use array_key_exists It will exist, if it in there, but check if it is a callable (function). This way you can have anonymous functions in your array.
Note: This is not the proper way of making a router, also consider using $_REQUEST instead.
$requests = array(...
If you give me $400 I can not only make a unique template and code it, but also make a fully functional website with backend. But that is only if you give me $500
Just stick with either the latter, seriously. You will find yourself struggling to remember the name of a function/void... you would think it was a Sub.
mysql_query("UPDATE users SET status = '{$status}' WHERE id = {$userid}");
Note that $userid is the ID of the user (obviously) so find the right variable.
Also, use PDO or MySQLi, both for security and for later support (Old mysql functions will be deprecated)
It's quite easy to make such a system, even secure.
- Use PDO/MySQLi - not the (soon to be deprecated) mysql functions.
- Create 2 tables;
betakeys (id, betakey)
The id is a PRIMARY KEY
The betakey column will contain the generated beta key.
users (id, [...], betakey_id, hasbeta)
The [...] are...