Please Help Me Its Urgent Having Some Problem. |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums General Discussion Chatter Box |
||
![]() |
Please Help Me Its Urgent Having Some Problem. |
||
Jun 12 2010, 12:31 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 1 Joined: 12-June 10 Member No.: 145,474 |
I have edited one of my php files and now when i try to see the page it is showing this error
Parse error: syntax error, unexpected T_DNUMBER in /www/99k.org/q/u/i/quickcash/htdocs/config.php on line 7 Please anybody can tell me about it and how to fix this my php code of this page is given below <? ob_start();session_start(); $hostname = "localhost"; //your hostname (normally localhost) $data_username = "YOUR_USERNAME"; //database username $data_password = "YOUR_PASSWORD"; //database password $data_basename = "YOUR_DATABASENAME"; //database name $conn = mysql_connect("".localhost."","".200322_admin."","".bigbuckb.""); mysql_select_db("".quickcash_99k_cpalead."") or die(mysql_error()); $bonuspoints=10; //bonus points awarded for new users $mainpointsneeded=200; //max number of points needed before user can request voucher ?> Please reply me |
|
|
Jun 12 2010, 11:30 PM
Post
#2
|
|
![]() Outrageously Uber Ninja ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 5,140 Joined: 11-May 08 From: Australia Member No.: 25,876 |
Firstly, you are using shorthand PHP tags. You should use:
CODE <?php // code here ?> And you need to put the variables in your mysql_connect function - not the string. This enables you to centrally set your variables instead of having to continuously setting them. CODE <?php ob_start();session_start(); $hostname = "localhost"; //your hostname (normally localhost) $data_username = "200322_admin"; //database username $data_password = "bigbuckb"; //database password $data_basename = "quickcash_99k_cpalead"; //database name $conn = mysql_connect($hostname, $data_username, $data_password); mysql_select_db($data_basename) or die(mysql_error()); $bonuspoints=10; //bonus points awarded for new users $mainpointsneeded=200; //max number of points needed before user can request voucher ?> |
|
|
![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 21st May 2013 - 09:52 AM |