View Single Post
ישן 30-10-07, 09:43   # 7
sababa_y
חבר חדש
דירוג מסחר: (0)
 
מיני פרופיל
תאריך הצטרפות: Oct 2006
הודעות: 36

sababa_y לא מחובר  

סוף סוף הצלחתי להתקין איזה מערכת נחמדה

ahm
היא בדיוק גם מתאימה, התקנתי אותה והכל הלך בסדר הטבלאות הותקנו במסד נתונים ההגדרות נכנסו לקובץ של הגדרות (config.php) והמערכת קיבלה גישה ל-whm (WHM Remote Access Key). רואים את החבילות מה-WHM בפנהל ניהול של המערכת וכל נראה תקין.
אבל כאשר מנסים לפתוח חשבון חדש באיחסון אז בסוף ההרשמה זה רושם את השגיעה הבאה...
ציטוט:
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 4 in /home/websabab/public_html/hosting/freecomplete.php on line 17

Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 4 in /home/websabab/public_html/hosting/freecomplete.php on line 18

Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 4 in /home/websabab/public_html/hosting/freecomplete.php on line 19

Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 4 in /home/websabab/public_html/hosting/freecomplete.php on line 20

Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 4 in /home/websabab/public_html/hosting/freecomplete.php on line 21

Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 6 in /home/websabab/public_html/hosting/freecomplete.php on line 25
והנתונים לא ניכנסים למסד נתונים...

אני יודע שזה שגיאת sql אבל למה יש שגיעה מה יכול להיות לא בסדר?
זה הקובץ שרשום שיש בו את השגיעה - freecomplete.php:
קוד:
<?

$status = $_POST['st'];
$custom = $_POST['custom'];

	if (strcmp($status,"Completed")==0) {

		require '../includes/accounting.php.inc';
		require '../includes/config.php.inc';

		$get_datafields = mysql_query("SELECT * FROM tblOrders WHERE id='$custom'");
		$get_sitedata = mysql_query("SELECT * FROM tblConfig");

		$sitename = mysql_result($get_sitedata,0,"sitename");
		$sitemail = mysql_result($get_sitedata,0,"email");

		$acctdomain = mysql_result($get_datafields,0,"domain");
		$acctplan = mysql_result($get_datafields,0,"pack");
		$acctuser = mysql_result($get_datafields,0,"username");
		$acctpass = mysql_result($get_datafields,0,"password");
		$custid = mysql_result($get_datafields,0,"custid");

		$get_userdata = mysql_query("SELECT * FROM tblCustomers WHERE id='$custid'");

		$to = mysql_result($get_userdata,0,"email");

		$from = $sitename."<".$sitemail.">";

      		$headers = "From: $from\r\n" .
         		"MIME-Version: 1.0\r\n" .
         		"Content-Type: multipart/mixed;\r\n" .
         		" boundary=\"{$mime_boundary}\"";

		$subject = "Your New Hosting Account";
		$body = "Hi!\n\nThese are the instructions for your new hosting account.\n\nFTP Details:\n\nFTP Url: ftp.".$acctdomain."\nUsername: ".$acctuser."\nPassword: ".$acctpass."\n\nTo configure all other services on your account, such as emails:\n\nURL: http://www.".$acctdomain."/cpanel\n\nEnter the same username and password as your FTP details above.\n\nThank you for choosing ".$sitename." as your hosting provider.";
		mail($to,$subject,$body,$headers);

		$createacct = createacct ($host,$user,$accesshash,0,$acctdomain,$acctuser,$acctpass,$acctplan);

	}


include 'includes/header.php';

?>

<center>

<h3>COMPLETE!</h3>

Your payment was processed successfully!!<br><br>

You will shortly be receiving an email with confirmation of your account details.<br><br>

Please follow the instructions in the email closely.

<?include 'includes/footer.php';?>
בתודה מראש ישראל
  Reply With Quote