Oceanic
Php / C++ / MySQL
Ooops my fault, i update it
Ty for help
Ty for help
It is secure. Oceanic come on msn maby I got some nice features for you
I still get the error "Table 'forgottenserver.xcms_news' doesn't exist" , I would apreciate if someone could tell me how to fix it. Thx.
<?php
include "../config.php";
error_reporting($error_reporting);
mysql_connect($connection[1], $connection[2], $connection[3]) or die("Could not connect, please check your settings");
mysql_select_db($connection[4]) or die("Database dont exist");
$player_data = mysql_query("SELECT * FROM players") or die(mysql_error());
while($data = mysql_fetch_array( $player_data )){
$a[] = $data['name'];
}
$q= mysql_escape_string($_GET["search_name"]);
if (strlen($q) > 0)
{
$hint="";
for($i=0; $i<count($a); $i++)
{
if (strtolower($q)==strtolower(substr($a[$i],0,strlen($q))))
{
if ($hint=="")
{
$hint=$a[$i];
}
else
{
$hint=$hint." ".$a[$i];
}
}
}
}
$response=$hint;
echo $response;
?>
$player_data = mysql_query("SELECT * FROM players") or die(mysql_error());
$player_data = mysql_query("SELECT name FROM players") or die(mysql_error());
<?php
$time = time()+microtime();
$q= mysql_escape_string($_GET["search_name"]);
if (strlen($q) > 2)
{
include "../config.php";
error_reporting($error_reporting);
mysql_connect($connection[1], $connection[2], $connection[3]) or die("Could not connect, please check your settings");
mysql_select_db($connection[4]) or die("Database dont exist");
$player_data = mysql_query("SELECT name FROM `players` WHERE `name` like '%".$q."%' ORDER BY `name`;") or die(mysql_error());
while($data = mysql_fetch_array( $player_data ))
$response .= ", ".$data['name'];
$response = substr($response, 2, strlen($response));
}
else
$response="<b>Enter 3 or more characters</b>";
echo time()+microtime()-$time."<br />".$response;
?>
---------------------------------------------------------RESULT-9500 characters in database said:Suggestions: 0.0102031230927
Acroma Angel, Angel, Angel De Blood, Angel For Heaven, Angel Of Death, Angel Of Distans, Angel Of Dream, Angel Of Heaven, Angel Of Hell, Angel Of Sorcerers, Angel On Warots, Angelika Druidka, Angelo, Angelus, Angelusbeliard, Archangel, Archangel Of The Chaotic, Black Angel, Black Angels, Darkness Angel, Death Angel, Distans Archangel, Dratini Angel, Fruti Angel, Lady Angel, Lady Angela, Mr Angel, Nie Moge Wejsc Na Archangela, Shanangel, Sir Angel, The Black Angel
<?php
$time = time()+microtime();
$q= mysql_escape_string($_GET["search_name"]);
if (strlen($q) > 2)
{
include "../config.php";
error_reporting($error_reporting);
mysql_connect($connection[1], $connection[2], $connection[3]) or die("Could not connect, please check your settings");
mysql_select_db($connection[4]) or die("Database dont exist");
$player_data = mysql_query("SELECT name,level FROM `players` WHERE `name` like '%".$q."%' ORDER BY `level` DESC;") or die(mysql_error());
while($data = mysql_fetch_array( $player_data ))
$response .= ", ".$data['name']."[".$data['level']."]";
$response = substr($response, 2, strlen($response));
}
else
$response="<b>Enter 3 or more characters</b>";
echo time()+microtime()-$time."<br />".$response;
?>
RESULT-9500 characters in database said:Suggestions: 0.0266110897064
Archangel[185], Lady Angel[104], Angel Of Distans[76], Angel Of Heaven[71], Angelo[63], Distans Archangel[39], Angel Of Dream[38], Angel Of Hell[36], The Black Angel[34], Angel De Blood[25], Lady Angela[24], Angel Of Sorcerers[23], Angelusbeliard[23], Black Angel[18], Angelika Druidka[17], Angel Of Death[16], Shanangel[15], Black Angels[11], Angel For Heaven[10], Angel On Warots[9], Acroma Angel[8], Dratini Angel[8], Mr Angel[5], Fruti Angel[1], Death Angel[1], Angel[1], Archangel Of The Chaotic[1], Sir Angel[1], Nie Moge Wejsc Na Archangela[1], Angelus[1], Darkness Angel[1]
Glad to hear thatlol, im gonna start using this and help you find some error. I believe this could be the best acc yet
POT = Sux
I just think it sucks, is my oppinion. I think its better to do it this way