{"action":"created","issue":{"url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11405","labels_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11405/labels{/name}","comments_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11405/comments","events_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11405/events","html_url":"https://github.com/phpmyadmin/phpmyadmin/issues/11405","id":101401712,"number":11405,"title":"please help to create .php file in phpmyadmin","user":{"login":"parfenovn","id":13832337,"avatar_url":"https://avatars.githubusercontent.com/u/13832337?v=3","gravatar_id":"","url":"https://api.github.com/users/parfenovn","html_url":"https://github.com/parfenovn","followers_url":"https://api.github.com/users/parfenovn/followers","following_url":"https://api.github.com/users/parfenovn/following{/other_user}","gists_url":"https://api.github.com/users/parfenovn/gists{/gist_id}","starred_url":"https://api.github.com/users/parfenovn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parfenovn/subscriptions","organizations_url":"https://api.github.com/users/parfenovn/orgs","repos_url":"https://api.github.com/users/parfenovn/repos","events_url":"https://api.github.com/users/parfenovn/events{/privacy}","received_events_url":"https://api.github.com/users/parfenovn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-17T11:33:13Z","updated_at":"2015-08-17T11:58:01Z","closed_at":null,"body":"please help to create .php file in phpmyadmin"},"comment":{"url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/comments/131794497","html_url":"https://github.com/phpmyadmin/phpmyadmin/issues/11405#issuecomment-131794497","issue_url":"https://api.github.com/repos/phpmyadmin/phpmyadmin/issues/11405","id":131794497,"user":{"login":"parfenovn","id":13832337,"avatar_url":"https://avatars.githubusercontent.com/u/13832337?v=3","gravatar_id":"","url":"https://api.github.com/users/parfenovn","html_url":"https://github.com/parfenovn","followers_url":"https://api.github.com/users/parfenovn/followers","following_url":"https://api.github.com/users/parfenovn/following{/other_user}","gists_url":"https://api.github.com/users/parfenovn/gists{/gist_id}","starred_url":"https://api.github.com/users/parfenovn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parfenovn/subscriptions","organizations_url":"https://api.github.com/users/parfenovn/orgs","repos_url":"https://api.github.com/users/parfenovn/repos","events_url":"https://api.github.com/users/parfenovn/events{/privacy}","received_events_url":"https://api.github.com/users/parfenovn/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T11:58:01Z","updated_at":"2015-08-17T11:58:01Z","body":"hm it in another language((\r\nfirst it saying to create index.php and reg.php\r\n\r\nindex.php code \r\n\r\n\r\n\r\n<html>\r\n<head>\r\n<meta http-equiv = \"Content-Type\" content = \"text / html; charset = windows-1251\">\r\n<title> Login </ title>\r\n</ head>\r\n\r\n<body>\r\n<div align = \"center\">\r\n<form action = \"\" method = \"post\" enctype = \"multipart / form-data\">\r\nUsername: <br /> <input name = \"login\" type = \"text\" size = \"20\"> <br />\r\nPassword: <br /> <input name = \"password\" type = \"password\" size = \"20\"> <br />\r\n<input name = \"submit\" type = \"submit\" value = \"Login\"> <br />\r\n</ form>\r\n</ div>\r\n</ body>\r\n</ html>\r\n\r\nreg.php code\r\n\r\n\r\n\r\n\r\n<html>\r\n<head>\r\n<meta http-equiv = \"Content-Type\" content = \"text / html; charset = windows-1251\">\r\n<title> Register </ title>\r\n</ head>\r\n\r\n<body>\r\n<div align = \"center\">\r\n<form action = \"\" method = \"post\" enctype = \"multipart / form-data\">\r\nUsername: <br /> <input name = \"login\" type = \"text\" size = \"20\"> <br />\r\nPassword: <br /> <input name = \"password\" type = \"password\" size = \"20\"> <br />\r\nOnce again your password: <br /> <input name = \"password2\" type = \"password\" size = \"20\"> <br />\r\nE-mail: <br /> <input name = \"email\" type = \"text\" size = \"20\"> <br /> <br />\r\n<input name = \"submit\" type = \"submit\" value = \"Sign up\"> <br />\r\n</ form>\r\n</ div>\r\n</ body>\r\n</ html>\r\n\r\n\r\n\r\n\r\nnext it saying\r\n\r\nNow, create a table in MySQL, and connect to the database.\r\nGo to your phpmyadmin server and create a new database called \"auth_reg\", after you done with this, create a SQL query to the database by inserting the following code:\r\n\r\nCREATE TABLE users (\r\nid INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,\r\nlogin VARCHAR( 255 ) NOT NULL ,\r\npassword VARCHAR( 255 ) NOT NULL ,\r\nemail VARCHAR( 255 ) NOT NULL \r\n) ENGINE = MYISAM ;\r\n\r\nThis code is responsible for new users of your site. It will gradually grow and grow. So, the table is created, but you need to connect to the database, make it very simple. In phpmyadmin create a file db_connect.php, inside which prescribes the following php code:\r\nTo connect to the file created earlier index.php and reg.php prescribed in the beginning of both files as follows:\r\n\r\n<? php\r\n$ config = array (); // Indicate that the variable is an array $ config\r\n$ config ['server'] = \"localhost\"; // server MySQL. This is usually localhost\r\n$ config ['login'] = \"root\"; // MySQL user\r\n$ config ['passw'] = \"\"; // password for the MySQL user\r\n$ config ['name_db'] = \"auth_reg\"; // the name of our database\r\n\r\n$ connect = mysql_connect ($ config ['server'], $ config ['login'], $ config ['passw']) or die (\"Error!\"); // Connect to MySQL, or, in case of error, stop code execution\r\nmysql_select_db ($ config ['name_db'], $ connect) or die (\"Error!\"); // Select the database or, in the case of error stop code execution"}}