Jump to content

Script Work In Local Server And On Site Not Work


masrawy

Recommended Posts

this is index.php<?include_once "conn.php";include_once "main.php";$q1 = "select * from job_story order by rand()";$r1 = mysql_query($q1) or die(mysql_error());if(mysql_num_rows($r1) > '0'){ $a1 = mysql_fetch_array($r1); $st = $a1[story];}?><html dir="rtl"> <table border="0" cellpadding="0" cellspacing="0" width="590" height="160"> <tr valign="top"> <td width="50%" style="padding:15px;"> <p><img src="images/title_jobseekers.gif" width="104" height="22" alt="Jobseekers" border="0"></p> <p><span class="headingcat"><b><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/jobseekers/JobSearch.php">بحث عن وظيفة</a></b></span> <br> عرض جميع الوظائف مجانا <br> <br> <span class="headingcat"><b><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/jobseekers/jobseeker_registration.php">اشترك الان مجانا</a></b></span> <br> التسجيل للاشتراك فى جميع الخدمات <br> <br> <span class="headingcat"><b><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/jobseekers/build_resume.php">ارسال سيرتك الذاتية</a></b></span> <br> اوصف شخصيتك.. وظيفتك الخ ..... </p> </td> <td width="50%" style="padding:15px;"> <p><img src="images/title_employers.gif" width="100" height="23" alt="Employers" border="0"> </p> <p><span class="headingcat"><b><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/employers/EmployerSearch.php">البحث عن موظفين</a></b></span> <br> تصفح كل المتقدمين مجانا <br> <br> <span class="headingcat"><b><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/employers/employer_registration.php">اشترك هنا</a></b></span> <br> التسجيل للاشتراك فى جميع الخدمات <br> <br> <span class="headingcat"><b><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/employers/employer_registration.php">عرض وظيفة</a></b></span> <br> الخطوة الاولى لايجاد الموظفين </p> </td> </tr> </table><table border="0" cellpadding="0" cellspacing="0" width="590"><tr><td colspan="2" style="padding-left:15px;"><img src="images/title_successstory.gif" width="133" height="21" alt="Success Story" border="0" vspace="5"></td></tr><tr valign="top"><td width="220" style="padding-left:15px;"><img src="images/pic.jpg" width="207" height="175" border="0"></td><td width="370"> <?if($a1 != '0'){?> <script language="JavaScript1.2">var it=0function initialize(){mytext=typing.innerTextvar myheight=typing.offsetHeighttyping.innerText=''document.all.typing.style.height=myheightdocument.all.typing.style.visibility="visible"typeit()}function typeit(){typing.insertAdjacentText("beforeEnd",mytext.charAt(it))if (it<mytext.length-1){it++setTimeout("typeit()",100)}elsereturn}if (document.all)document.body.onload=initialize</script> <small><span id="typing" style="visibility:hidden" align="left"> <?=$st?> </span></small> <br> <?}?> <div align="center"><b><a class=TN href=add_story.php> قصة نجاحك هنا...</a></b> </div></td></tr></table><!-- Center --><? include_once('footer.php'); ?>

Link to comment
Share on other sites

this is main.php<?include_once "conn.php";$day = date(d);$month = date(m);$year = date(Y); $qdel1 = "select * from job_post";$rdel1 = mysql_query($qdel1) or die(mysql_error());if(mysql_num_rows($rdel1) > '0'){ while($adel1 = mysql_fetch_array($rdel1)) { $my_date = mktime(0,0,0,$adel1[EXmonth], $adel1[EXday], $adel1[EXyear]); if($my_date <= time()) { $MyIDs[] = $adel1[job_id]; } } if(!empty($MyIDs)) { $NewID = implode("', '", $MyIDs); mysql_query("delete from job_post where job_id in ('$NewID') ") or die(mysql_error()); }}?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>التوظيف العربى</title><meta dcb license S3YBSI9IQ><meta name="description" content=""><meta name="keywords" content=""><meta http-equiv="Content-Type" content="text/html; charset=windows-1256"><meta name="language" content="EN"><meta name="robots" content="index,follow"><meta name="revisit-after" content="15 days"><meta name="document-classification" content="Internet"><meta name="document-type" content="Public"><meta name="document-rating" content="Safe for Kids"><meta name="document-distribution" content="Global"><link href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/style.css" rel="stylesheet" type="text/css"><script LANGUAGE="JavaScript">function other_win(url) { window.open(url, "MyWin", "toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=yes,width=600,height=400,left = 100,top = 50");}function image_over(image_name){var a = document.all(image_name);a.src = "http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/" + image_name + "_a.gif"}function image_out(image_name){var a = document.all(image_name);a.src = "http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/" + image_name + ".gif"}function cdel(w) { if(confirm('Are you sure you want to delete this '+w+'?')) { return true; } else { return false; }}</script><html dir="rtl"></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><table border="0" cellpadding="0" cellspacing="0" width="770" align="center"> <tr><td background="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/headerbg.jpg" colspan="2" height="126" style="padding-top:45px;"><table border="0" cellpadding="0" cellspacing="0" width="770"><tr valign="top"> <td width="300"> <table width="100%" border="0"> <tr> <td width="50"> </td> <td width="64"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/logo.gif" width="64" height="48" border="0"></td> <td><font face="Arial, Helvetica, sans-serif" size="3" color="#000000"><b><font size="2" color="#FFFFFF">Job Finder</font><font color="#FFFFFF"><br> <font size="2">your_url.com/</font></font></b></font> </td> </tr> </table> </td> <td width="470" style="padding-right:3px" align=center> <? include_once "banners.php";?> </td></tr></table></td></tr><tr><td width="100"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/pic01.jpg" width="100" height="24" border="0"></td><td width="670" background="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/menu_bg.gif" align="center"><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/menu_home_a.gif" alt="Home" width="33" height="15" border="0" vspace="4" hspace="20"></a><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/menu_line.gif" width="3" height="24" border="0"><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/jobseekers/build_resume.php"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/menu_postresume.gif" alt="Post Resume" name="menu_postresume" id="menu_postresume" width="75" height="15" border="0" onMouseOver="image_over('menu_postresume')" onMouseOut="image_out('menu_postresume')" vspace="4" hspace="20"></a><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/menu_line.gif" width="3" height="24" border="0"><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/employers/PostJob.php"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/menu_postjob.gif" alt="Post Job" name="menu_postjob" id="menu_postjob" width="51" height="15" border="0" onMouseOver="image_over('menu_postjob')" onMouseOut="image_out('menu_postjob')" vspace="4" hspace="20"></a><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/menu_line.gif" width="3" height="24" border="0"><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/about.php"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/menu_aboutus.gif" alt="About Us" name="menu_aboutus" id="menu_aboutus" width="59" height="15" border="0" onMouseOver="image_over('menu_aboutus')" onMouseOut="image_out('menu_aboutus')" vspace="4" hspace="20"></a><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/menu_line.gif" width="3" height="24" border="0"><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/contactus.php"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/menu_contacts.gif" alt="Contacts" name="menu_contacts" id="menu_contacts" width="61" height="15" border="0" onMouseOver="image_over('menu_contacts')" onMouseOut="image_out('menu_contacts')" vspace="4" hspace="20"></a><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/menu_line.gif" width="3" height="24" border="0"><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/privacy.php"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/menu_privacy.gif" alt="Privacy Terms" name="menu_privacy" id="menu_privacy" width="85" height="15" border="0" onMouseOver="image_over('menu_privacy')" onMouseOut="image_out('menu_privacy')" vspace="4" hspace="20"></a></td></tr></table><table border="0" cellpadding="0" cellspacing="0" width="770" align="center"><tr valign="top"><td width="180" bgcolor="#8BD0DF"><br><!-- Jobseekers --><table border="0" cellpadding="0" cellspacing="0" width="167" align="center" background="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/box_bg.gif"><tr><td colspan="2"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/box_jobseekers.gif" width="167" height="21" alt="Jobseekers" border="0"></td></tr><tr><td colspan="2"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/clear.gif" width="1" height="5" border="0"></td></tr><?if(empty($_SESSION[uname])){?><tr> <td width="27" align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td width="140"><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/jobseekers/jobseeker_registration.php"> تسجيل باحث عن وظيفة</a></td></tr><?}?><tr> <td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/jobseekers/build_resume.php">ارسال سيرتك الذاتية</a></td></tr><tr> <td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/jobseekers/ER1.php">تحرير السيرة الذاتية</a></td></tr><tr> <td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/jobseekers/preview.php">عرض السيرة الذاتية</a></td></tr><tr> <td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/jobseekers/JobSearch.php">بحث عن وظائف</a></td></tr><?if(!empty($_SESSION[uname])){?><tr> <td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/jobseekers/logout.php">تسجيل خروج</a></td></tr><?}?><tr><td colspan="2" background="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/box_b.gif" height="30"><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/jobseekers/build_resume.php"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/button_postaresume.gif" width="107" height="18" alt="Post a Resume" border="0" hspace="13"></a></td></tr></table><br><!-- Employers --><table border="0" cellpadding="0" cellspacing="0" width="167" align="center" background="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/box_bg.gif"><tr><td colspan="2"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/box_employers.gif" width="167" height="21" alt="Employers" border="0"></td></tr><tr><td colspan="2"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/clear.gif" width="1" height="5" border="0"></td></tr><?if(!empty($_SESSION[ename])){?> <tr> <td width="27" align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td width="140"><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/employers/EditInfo.php">معلومات صاحب العمل</a></td> </tr><?}else{?> <tr> <td width="27" align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td width="140"><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/employers/employer_registration.php"> تسجيل صاحب عمل</a></td> </tr><?}?><tr> <td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/employers/PostJob.php">عرض وظيفة</a></td></tr><tr> <td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/employers/managejobs.php">ادارة وظيفة</a></td></tr><tr> <td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/employers/pay1.php">تحديث الخطة</a></td></tr><tr> <td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/employers/EmployerSearch.php">بحث</a></td></tr><?if(!empty($_SESSION[ename])){?> <tr> <td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/employers/logout.php">تسجيل خروج</a></td> </tr><?}?><tr><td colspan="2" background="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/box_b.gif" height="30"><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/employers/PostJob.php"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/button_postajob.gif" width="107" height="18" alt="Post a Job" border="0" hspace="13"></a></td></tr></table><br><!-- Resources --><table border="0" cellpadding="0" cellspacing="0" width="167" align="center" background="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/box_bg.gif"><tr><td colspan="2"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/box_resources.gif" width="167" height="21" alt="Resources" border="0"></td></tr><tr><td colspan="2"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/clear.gif" width="1" height="5" border="0"></td></tr><tr><td width="27" align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td><td width="140"><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/faq.php">تساؤلات</a></td></tr><tr><td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td><td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/stories.php">قصة نجاح</a></td></tr><tr><td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td><td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/about.php">نبذة عنا</a></td></tr><tr><td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td><td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/contactus.php">اتصل بنا</a></td></tr><tr> <td align="right"><img src="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/bullet.gif" width="9" height="9" border="0" hspace="5"></td> <td><a href="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/privacy.php">سياسة السرية</a></td></tr><?=show_counters($aset[counters]);?><tr><td colspan="2" background="http://<?=$_SERVER[HTTP_HOST]?><?=$dir?>/images/box_b2.gif" height="20"> </td></tr></table><br><br></td><td width="590"><!-- Center -->

Link to comment
Share on other sites

It appears as if this statement isn't working:

<? include_once "banners.php";?>

Make sure that banners.php is available.And also, you should start your PHP blocks with <?php

Link to comment
Share on other sites

<?include_once "http://$_SERVER[HTTP_HOST]$dir/conn.php";$sbs = "select * from job_banners_m";$rsbs = mysql_query($sbs) or die(mysql_error());$abs = mysql_fetch_array($rsbs);$bs = $abs[0];if ($bs == 1){ $q1 = "select * from job_banners_t order by rand() limit 0,1"; $r1 = mysql_query($q1) or die (mysql_error()); $asb = mysql_fetch_array($r1); echo "<a href=\"$asb[burl]\" target=_blank alt=\"$asb[alt]\"><img src=\"http://$_SERVER[HTTP_HOST]$dir/banners/$asb[fn]\" border=0></a>"; }elseif($bs == 2){ $bc = "select * from job_link_source order by rand() limit 0,1"; $rbc = mysql_query($bc) or die(mysql_error()); if (mysql_num_rows($rbc) > 0) { $asl = mysql_fetch_array($rbc); $link_code = $asl[link_code]; echo $link_code; }}?>

Link to comment
Share on other sites

I can't see any specific errors, though your code could really be cleaned up a little. There's not much I can do to help. It seems to me as if you have a setting somewhere that's preventing the errors from being displayed.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...