require_once "config/config.php";
require_once "privilieges/common_fn.php";
$one=1;
$two=2;
$three=3;
$four=4;
// Get Maximum Count of the Table
/*$max_cnt = maxcount_coutner1('pk_id','package_details');
$part_1 = floor($max_cnt/4);
$part_2 = $part_1 + $part_1;
$part_3 = $part_2 + $part_1;
$part_4 = $part_3;
$rand1 = rand(1,$part_1);
$rand2 = rand($part_1,$part_2);
$rand3 = rand($part_2,$part_3);
$rand4 = rand($part_3,$part_4);
*/
?>
Mehar Computer Web Packages - Website Packages, Affordable Web Design, Web Development, Website Pricing, Compare Website Packages, Web Design Cost
function maincategory_explode_dir($input1)
{
$string= $input1;
$len = strlen($string);
for($i=0;$i<$len;$i++)
{
if($string[$i]==" ")
{
$string[$i]="-";
}
}
//echo $string;
return $string;
}
function rand_color() {
return sprintf('#%06X', mt_rand(0, 0xFFFFFF));
}
$sql = "select * from package_details where pk_status = 1 ORDER BY RAND() limit 0,4";
$rs = mysql_query($sql);
while($row=mysql_fetch_array($rs))
{
$colors1 = rand_color();
$colors2 = rand_color();
?>