Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
**Xampp Problem**
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Destruct" data-source="post: 140322" data-attributes="member: 12843"><p>Hello everybody. I need help now. I am currently working on a hotel, and I switch from uber to revcms. I get this error, "<strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">Parse error</span></span></span></strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">: parse error, expecting `T_VARIABLE' in </span></span></span><strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">C:\xampp\htdocs\includes\class.db.mysql.php</span></span></span></strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000"> on line </span></span></span><strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">26. I have teamviewer. So if you can help me please pm me.</span></span></span></strong></p><p> </p><p> </p><p> </p><p><?php</p><p>/*=======================================================================</p><p>| UberCMS - Advanced </p><p> </p><p>Website and Content Management System for uberEmu</p><p>| </p><p> </p><p>#######################################################################</p><p>| Copyright (c) 2010, Roy </p><p> </p><p>'Meth0d'</p><p>| <a href="http://www.meth0d.org" target="_blank">http://www.meth0d.org</a></p><p>| </p><p> </p><p>#######################################################################</p><p>| This program is free software: </p><p> </p><p>you can redistribute it and/or modify</p><p>| it under the terms of the GNU General Public License as published by</p><p>| the Free </p><p> </p><p>Software Foundation, either version 3 of the License, or</p><p>| (at your option) any later version.</p><p>| </p><p> </p><p>#######################################################################</p><p>| This program is distributed in </p><p> </p><p>the hope that it will be useful,</p><p>| but WITHOUT ANY WARRANTY; without even the implied warranty of</p><p>| </p><p> </p><p>MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</p><p>| GNU General Public License for more </p><p> </p><p>details.</p><p>\======================================================================*/</p><p> </p><p>class MySQL</p><p>{</p><p> </p><p> </p><p>private $connected = false;</p><p>private $hostname = "localhost";</p><p>private $username = "root";</p><p>private </p><p> </p><p>$password = "bottomline";</p><p>private $database = "Uber";</p><p>private $192.168.1.6;</p><p> </p><p>public </p><p> </p><p>function MySQL($host, $user, $pass, $db)</p><p>{</p><p>$this->connected = false;</p><p> </p><p> </p><p>$this->hostname = $localhost;</p><p>$this->username = $root;</p><p>$this->password = $bottomline;</p><p> </p><p> </p><p>$this->database = $Uber;</p><p>}</p><p> </p><p>public function IsConnected()</p><p>{</p><p>if </p><p> </p><p>($this->connected)</p><p>{</p><p>return true;</p><p>}</p><p> </p><p> </p><p> </p><p>return false;</p><p>}</p><p> </p><p>public function Connect()</p><p>{</p><p>$this->link =192.168.1.6 </p><p> </p><p>@mysql_connect($this->localhost, $this->root, $this->bottomline) or $this->error(mysql_error());</p><p> </p><p> </p><p>@mysql_select_db($this->Uber, $this->192.168.1.6) or $this->error(mysql_error());</p><p> </p><p> </p><p> </p><p>$this->connected = true;</p><p>}</p><p> </p><p>public function Disconnect()</p><p>{</p><p> </p><p> </p><p>if($this->connected)</p><p>{</p><p>@mysql_close(192.168.1.6) or </p><p> </p><p>$this->error("could not close conn");</p><p>$this->connected = false;</p><p>}</p><p>}</p><p> </p><p>public function DoQuery($query)</p><p>{</p><p>$resultset = @mysql_query($query, </p><p> </p><p>$this->192.168.1.6) or $this->error(mysql_error());</p><p>return $resultset;</p><p>}</p><p> </p><p>public </p><p> </p><p>function Evaluate($resultset)</p><p>{</p><p>return @mysql_result($resultset, 0);</p><p>}</p><p> </p><p> </p><p> </p><p>public function Error($errorString)</p><p>{</p><p>global $core;</p><p> </p><p> </p><p> </p><p>$core->systemError('Database Error', $errorString);</p><p>}</p><p> </p><p>public function __destruct()</p><p>{</p><p> </p><p> </p><p>$this->disconnect();</p><p>}</p><p>}</p><p> </p><p>?></p></blockquote><p></p>
[QUOTE="Destruct, post: 140322, member: 12843"] Hello everybody. I need help now. I am currently working on a hotel, and I switch from uber to revcms. I get this error, "[B][SIZE=4][FONT=Times New Roman][COLOR=#000000]Parse error[/COLOR][/FONT][/SIZE][/B][SIZE=4][FONT=Times New Roman][COLOR=#000000]: parse error, expecting `T_VARIABLE' in [/COLOR][/FONT][/SIZE][B][SIZE=4][FONT=Times New Roman][COLOR=#000000]C:\xampp\htdocs\includes\class.db.mysql.php[/COLOR][/FONT][/SIZE][/B][SIZE=4][FONT=Times New Roman][COLOR=#000000] on line [/COLOR][/FONT][/SIZE][B][SIZE=4][FONT=Times New Roman][COLOR=#000000]26. I have teamviewer. So if you can help me please pm me.[/COLOR][/FONT][/SIZE][/B] <?php /*======================================================================= | UberCMS - Advanced Website and Content Management System for uberEmu | ####################################################################### | Copyright (c) 2010, Roy 'Meth0d' | [url]http://www.meth0d.org[/url] | ####################################################################### | This program is free software: you can redistribute it and/or modify | it under the terms of the GNU General Public License as published by | the Free Software Foundation, either version 3 of the License, or | (at your option) any later version. | ####################################################################### | This program is distributed in the hope that it will be useful, | but WITHOUT ANY WARRANTY; without even the implied warranty of | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | GNU General Public License for more details. \======================================================================*/ class MySQL { private $connected = false; private $hostname = "localhost"; private $username = "root"; private $password = "bottomline"; private $database = "Uber"; private $192.168.1.6; public function MySQL($host, $user, $pass, $db) { $this->connected = false; $this->hostname = $localhost; $this->username = $root; $this->password = $bottomline; $this->database = $Uber; } public function IsConnected() { if ($this->connected) { return true; } return false; } public function Connect() { $this->link =192.168.1.6 @mysql_connect($this->localhost, $this->root, $this->bottomline) or $this->error(mysql_error()); @mysql_select_db($this->Uber, $this->192.168.1.6) or $this->error(mysql_error()); $this->connected = true; } public function Disconnect() { if($this->connected) { @mysql_close(192.168.1.6) or $this->error("could not close conn"); $this->connected = false; } } public function DoQuery($query) { $resultset = @mysql_query($query, $this->192.168.1.6) or $this->error(mysql_error()); return $resultset; } public function Evaluate($resultset) { return @mysql_result($resultset, 0); } public function Error($errorString) { global $core; $core->systemError('Database Error', $errorString); } public function __destruct() { $this->disconnect(); } } ?> [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
**Xampp Problem**
Top