I did construct the database connection file which is called "config.php". But, I got some mistake that has to be solved to continue with working.
This is the code itself:
If I am not mistaken there is the mistake with the entry: "$confg['db_paswd']="userpw", for instance.
"Parse error: syntax error, unexpected T_VARIABLE in /home/alex1985/public_html/mulhim/library_project/test_dir/test1/config.php on line 4"
Couple of things, first of all, while you are developing the scripts, remove the "at" signs from the front of the mysql commands. Having the "at" signs in front reduces the Error Messages, which might be useful to you while debugging. They can be put back later, when the site is "live".Secondly, I believe the DB-name requires the Cpanel user name as a Prefix. Assuming you are using your Xisto account...$confg['db_dbase']="alex1985_books" //Your database name and Cpanel name prefixAnd there seem to be ";" missing... as statement terminators... on all the assignment statements
yeah its saying line 4 because you never terminated the command on line 3 so it thinks its just one whole command. start using ';'
Thanks. I should pay more attention when do coding. Such simple mistakes!!!