Location: PHPKode > scripts > TrovaLavoro > trovalavoro/db/db.php
<?php
include("con.php");
$db2 = mysql_connect($host,$user,$pass);
mysql_select_db($db,$db2);
function m($text)
{
$text = str_replace("'","&#39;",$text);
return $text;	
}
function cutsrr($srr, $max_char){
if(strlen($srr)>$max_char){
$cut_srr=substr($srr, 0,$max_char);
$last_space=strrpos($cut_srr," ");
$cuti=substr($cut_srr, 0,$last_space);
return $cuti." ";
}else{
return $srr;
}
}
$re = mysql_query("SELECT * FROM home");
$uu = mysql_fetch_array($re);
class install{
public function __construct()
{
$filename = "install.php";
if (file_exists($filename)) {
header("Location:install.php");
}
}
}
$in = new install();
?>
Return current item: TrovaLavoro