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
[Help] Xampp Issue
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: 138924" data-attributes="member: 12843"><p><strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">I don't see whats wrong. I fixed everything.</span></span></span></strong></p><p> </p><p><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_STRING' or `T_VARIABLE' or `'{'' or `'$'' in</span></span></span><strong><span style="font-size: 15px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">C:\xampp\htdocs\inc\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">49</span></span></span></strong></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000"><?php</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">/*=======================================================================</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| UberCMS - Advanced Website and Content Management System for uberEmu</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| #######################################################################</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| Copyright (c) 2010, Roy 'Meth0d'</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| <a href="http://www.meth0d.org" target="_blank">http://www.meth0d.org</a></span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| #######################################################################</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| This program is free software: you can redistribute it and/or modify</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| it under the terms of the GNU General Public License as published by</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| the Free Software Foundation, either version 3 of the License, or</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| (at your option) any later version.</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| #######################################################################</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| This program is distributed in the hope that it will be useful,</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| but WITHOUT ANY WARRANTY; without even the implied warranty of</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">| GNU General Public License for more details.</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">\======================================================================*/</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">class MySQL</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">{</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">private $connected = false;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">private $hostname = "localhost";</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">private $username = "root";</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">private $password = "bottomline";</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">private $database = "uber";</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">private $link = "192.168.1.6;</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">public function MySQL($host, $user, $pass, $db)</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">{</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">$this->connected = false;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">$this->hostname = $localhost;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">$this->username = $root;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">$this->password = $bottomline;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">$this->database = $uber;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">}</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">public function IsConnected()</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">{</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">if ($this->connected)</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">{</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">return true;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">}</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">return false;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">}</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">public function Connect()</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">{</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">$this->192.168.1.6)=mysql_connect($this->localhost, $this->root, $this->bottomline) or $this->error(mysql_error());</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">mysql_select_db($this->uber, $this->192.168.1.6) or $this->error(mysql_error());</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">$this->connected = true;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">}</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">public function Disconnect()</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">{</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">if($this->connected)</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">{</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">@mysql_close($this->192.168.1.6) or $this->error("could not close conn");</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">$this->connected = false;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">}</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">}</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">public function DoQuery($query)</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">{</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">$resultset = @mysql_query($query, $this->192.168.1.6) or $this->error(mysql_error());</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">return $resultset;</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">}</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">public function Evaluate($resultset)</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">{</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">return @mysql_result($resultset, 0);</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">}</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">public function Error($errorString)</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">{</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">global $core;</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">$core->systemError('Database Error', $errorString);</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">}</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">public function __destruct()</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">{</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">$this->disconnect();</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">}</span></span></span></p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">}</span></span></span></p><p> </p><p><span style="font-size: 12px"><span style="font-family: 'Times New Roman'"><span style="color: #000000">?></span></span></span></p></blockquote><p></p>
[QUOTE="Destruct, post: 138924, member: 12843"] [B][SIZE=4][FONT=Times New Roman][COLOR=#000000]I don't see whats wrong. I fixed everything.[/COLOR][/FONT][/SIZE][/B] [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_STRING' or `T_VARIABLE' or `'{'' or `'$'' in[/COLOR][/FONT][/SIZE][B][SIZE=4][FONT=Times New Roman][COLOR=#000000]C:\xampp\htdocs\inc\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]49[/COLOR][/FONT][/SIZE][/B] [SIZE=3][FONT=Times New Roman][COLOR=#000000]<?php[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]/*=======================================================================[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| UberCMS - Advanced Website and Content Management System for uberEmu[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| #######################################################################[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| Copyright (c) 2010, Roy 'Meth0d'[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| [URL]http://www.meth0d.org[/URL][/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| #######################################################################[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| This program is free software: you can redistribute it and/or modify[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| it under the terms of the GNU General Public License as published by[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| the Free Software Foundation, either version 3 of the License, or[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| (at your option) any later version.[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| #######################################################################[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| This program is distributed in the hope that it will be useful,[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| but WITHOUT ANY WARRANTY; without even the implied warranty of[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]| GNU General Public License for more details.[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]\======================================================================*/[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]class MySQL[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]{[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]private $connected = false;[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]private $hostname = "localhost";[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]private $username = "root";[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]private $password = "bottomline";[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]private $database = "uber";[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]private $link = "192.168.1.6;[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]public function MySQL($host, $user, $pass, $db)[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]{[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]$this->connected = false;[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]$this->hostname = $localhost;[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]$this->username = $root;[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]$this->password = $bottomline;[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]$this->database = $uber;[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]}[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]public function IsConnected()[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]{[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]if ($this->connected)[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]{[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]return true;[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]}[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]return false;[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]}[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]public function Connect()[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]{[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]$this->192.168.1.6)=mysql_connect($this->localhost, $this->root, $this->bottomline) or $this->error(mysql_error());[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]mysql_select_db($this->uber, $this->192.168.1.6) or $this->error(mysql_error());[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]$this->connected = true;[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]}[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]public function Disconnect()[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]{[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]if($this->connected)[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]{[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]@mysql_close($this->192.168.1.6) or $this->error("could not close conn");[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]$this->connected = false;[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]}[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]}[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]public function DoQuery($query)[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]{[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]$resultset = @mysql_query($query, $this->192.168.1.6) or $this->error(mysql_error());[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]return $resultset;[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]}[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]public function Evaluate($resultset)[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]{[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]return @mysql_result($resultset, 0);[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]}[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]public function Error($errorString)[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]{[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]global $core;[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]$core->systemError('Database Error', $errorString);[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]}[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]public function __destruct()[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]{[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]$this->disconnect();[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]}[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]}[/COLOR][/FONT][/SIZE] [SIZE=3][FONT=Times New Roman][COLOR=#000000]?>[/COLOR][/FONT][/SIZE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[Help] Xampp Issue
Top