Hi
I really need this code, it is suppose to install a data base, but it doesn't do anything, help me 😕
mysql_query ("CREATE DATABASE hosting");
mysql_query ("USE hosting");
mysql_query ("GRANT ALL ON hosting.* TO peter@localhost IDENTIFIED BY 'pasword'");
mysql_connect("localhost","peter","PASSWORD") or die ('Error');
mysql_query ("DROP TABLE IF EXISTS 'cntr_db';
CREATE TABLE 'cntr_db' (
'id' tinyint(4) NOT NULL auto_increment,
'cntr' int(11) default NULL,
'fch_cntl' tinyint(4) default NULL,
'fch_cntr1' tinyint(4) default NULL,
'fch_cntr2' tinyint(4) default NULL,
PRIMARY KEY ('id'),
KEY 'id' ('id')
)");
Please don't tell me to use the phpMyAdmin, my boss wan it done in a script, I will name my first born with the name of the person who help me 🙁
[cobalto]