Sinisterly
concretostranslucidos.com - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Hacking (https://sinister.li/Forum-Hacking)
+--- Forum: Website & Server Hacking (https://sinister.li/Forum-Website-Server-Hacking)
+--- Thread: concretostranslucidos.com (/Thread-concretostranslucidos-com)



concretostranslucidos.com - Antics - 02-26-2013

http://www.concretostranslucidos.com

function conect()
{
$host = "66.116.150.171";
$user = "distrib_concreto";
$password = "ConCre12";


$connection = mysql_connect($host, $user, $password);
mysql_select_db($base, $connection);
mysql_query("SET NAMES 'iso-8859-1'");
return $connection;
}

function get_array($query) //Returns an array with the results of a query in the form
//$array[key][row] being key the name of the column
{
$connection = conect();
$result = mysql_query($query, $connection) or die(mysql_error());

$number_cols = mysql_num_fields($result);

for($i=0; $i < $number_cols; ++$i)
{
$cols[$i] = mysql_field_name($result, $i);
}

$c1 = 0;
$c2 = 0;
while($row=mysql_fetch_row($result))
{
foreach($row as $field)
{
$array[$cols[$c2]][$c1] = (is_null($field) ? '&nbsp;' : $field);
$c2++;
}
$c2 = 0;
$c1++;
}

return $array;
}


RE: concretostranslucidos.com - amus3d - 02-27-2013

I like the part where the details don't work.


RE: concretostranslucidos.com - Antics - 02-27-2013

(02-27-2013, 10:52 PM)amus3d Wrote: I like the part where the details don't work.

How are you trying to connect?
I happen to think you have been greatly rude before even knowing what you're doing.
[Image: ud9AJPF.png]
Check into things a bit better next time.