![]() |
Auto account PHP web - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: Auto account PHP web (/Thread-Auto-account-PHP-web) Pages: 1 2 |
RE: Auto account PHP web - admin_teclis - 01-09-2013 12:07 AM hi Charm, i was trying to configure this script on my shard... Buti found this line : DB.QUERY "SELECT * FROM accounts WHERE status='0'" in your script php for the register misses the set line "status" Bug? moreover... I have to add this code [Function f_sphere_MySQL_connect] DB.CONNECT IF ( <DB.CONNECTED> ) SERV.LOG "Connection with MySQL... [ OK ]" ELSE DB.CONNECT DB.EXECUTE "CREATE DATABASE IF NOT EXISTS `sphere`" DB.EXECUTE "USE `sphere`" serv.MySqlDatabase=sphere serv.f_sphere_MySQL_connect //SERV.LOG "Connection with MySQL... [ FAILED ]" ENDIF and also miss checks on empty fields. Email already included RE: Auto account PHP web - htid4life - 01-09-2013 01:59 AM hey guys would this work for mysql hosted on a webserver or have it got to be on local computer? RE: Auto account PHP web - Ultima One - 01-09-2013 11:53 AM Its for a web server. For 'status' when you create the database, set the DEFAULT value to be 0. We never need to touch status from the website. As for creating the table, you should not be creating tables through Sphere. Create the table via a sql script on phpMyAdmin or another mysql client. Script below: Code: /*!40101 SET NAMES utf8 */; RE: Auto account PHP web - TopCat - 11-03-2015 12:07 AM (01-07-2013 01:04 PM)Ultima One Wrote: Then, create signup.php: No Post method for form regForm? =| |