הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

השב
 
כלים לאשכול תצורת הצגה
ישן 11-04-09, 22:59   # 1
mlnn
משתמש - היכל התהילה
 
mlnn's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: בחדר של חני
גיל: 35
הודעות: 4,417

mlnn לא מחובר  

מן הסתם הבעיה בבדיקה \ לולאה, מה קשור הקוד שהבאת כאן?
__________________
.

בחורות ערומות
  Reply With Quote
ישן 12-04-09, 01:24   # 2
Jonathan Zeierman
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Jun 2007
הודעות: 1,003

Jonathan Zeierman לא מחובר  

טעות שלי, מצטער על האשכול.
לא מיקמתי את הקוד במקום הנכון.
(זה מה שקורה שעובדים כשעייפים:P)
__________________
יונתן.
אימייל: jonathan@zeierman.net

Last edited by Jonathan Zeierman; 12-04-09 at 01:28..
  Reply With Quote
ישן 12-04-09, 01:26   # 3
AlmogBaku
חבר וותיק
 
AlmogBaku's Avatar
 
מיני פרופיל
תאריך הצטרפות: Nov 2007
מיקום: מודיעין
הודעות: 1,022

AlmogBaku לא מחובר  

???
כי הוא שולח כל אותו היום?
  Reply With Quote
ישן 12-04-09, 01:40   # 4
Jonathan Zeierman
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Jun 2007
הודעות: 1,003

Jonathan Zeierman לא מחובר  

ציטוט:
נכתב במקור על ידי Baku צפה בהודעה
???
כי הוא שולח כל אותו היום?
אוקיי הבעיה לא הסתדרה, כל פעם שאני נכנס לדף הוא שולח עוד הפעם.
הנה הקוד:
PHP קוד:
while ($row mysql_fetch_assoc($result))    {
if (
date("d/m/Y") == $row[finish_date])    {
echo <<<HTML
<html dir="rtl">
<head>
<meta http-equiv="Content-Language" content="he">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<link href="include/default.css" rel="stylesheet" type="text/css">
</head>
<body>
<span dir="rtl">
<TR bgcolor="red">
<TD></span><center><form method=post><span dir="rtl"><input type='hidden' name='delete' value="
{$row['id']}">
</span><span dir="rtl"><input type="image" src='images/delete.gif' style='vertical-align:middle' alt="מחק לקוח"/></span></form></center>
<span dir="rtl"></TD>
<TD></span><center><form action="" method="post"><span dir="rtl"><input type='hidden' name='edit' value="
{$row['id']}">
</span><span dir="rtl"><input type='image' src='images/buttons/account.gif' style='vertical-align:middle' alt="ערוך לקוח"/></span></form></center>
<span dir="rtl"></TD>
<TD></span><center><form action="" method="post"><span dir="rtl"><input type='hidden' name='mail' value="
{$row['id']}">
</span><span dir="rtl"><input type='image' src='images/buttons/inbox_response.gif' style='vertical-align:middle' alt="שלח תזכורת"/></span></form></center>
<span dir="rtl"></TD>
<td></span><center><span dir="rtl">
{$row['payment']}</span></center>
<span dir="rtl"></TD>
<td></span><center><span dir="rtl">
{$row['finish_date']}</span></center>
<span dir="rtl"></TD>
<td></span><center><span dir="rtl">
{$row['products']}</span></center>
<span dir="rtl"></TD>
<td></span><center><span dir="rtl">
{$row['email']}</span></center>
<span dir="rtl"></TD>
<TD></span><center><span dir="rtl">
{$row['phone']}</span></center>
<span dir="rtl"></TD>
<TD></span><center><span dir="rtl">
{$row['city']}</span></center>
<span dir="rtl"></TD>
<TD></span><center><span dir="rtl">
{$row['lname']}</span></center>
<span dir="rtl"></TD>
<TD></span><center><span dir="rtl">
{$row['name']}</span></center>
<span dir="rtl"></TD>
<TD></span><center><span dir="rtl">
{$row['status']}</span></center>
<span dir="rtl"></TD>
<TD></span><center><span dir="rtl">
{$row['id']}</span></center><span dir="rtl"></TD>
</TR>
</span>
</body>
</html>
HTML;
$to $row['email'];
$client_name $row['name'];
$client_lname $row['lname'];
$client_package $row['products'];
$client_date $row['finish_date'];
$subject "תזכורת לחידוש מנוי - ventrilo.co.il";
$mail_body "test";
mail($to$subject$mail_body);
    }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
else    {
echo <<<HTML
<html dir="rtl">
<head>
<meta http-equiv="Content-Language" content="he">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<link href="include/default.css" rel="stylesheet" type="text/css">
</head>
<body>
<span dir="rtl">
<TR>
<TD></span><center><form method=post><span dir="rtl"><input type='hidden' name='delete' value="
{$row['id']}">
</span><span dir="rtl"><input type="image" src='images/delete.gif' style='vertical-align:middle' alt="מחק לקוח"/></span></form></center>
<span dir="rtl"></TD>
<TD></span><center><form action="" method="post"><span dir="rtl"><input type='hidden' name='edit' value="
{$row['id']}">
</span><span dir="rtl"><input type='image' src='images/buttons/account.gif' style='vertical-align:middle' alt="ערוך לקוח"/></span></form></center>
<span dir="rtl"></TD>
<TD></span><center><form action="" method="post"><span dir="rtl"><input type='hidden' name='mail' value="
{$row['id']}">
</span><span dir="rtl"><input type='image' src='images/buttons/inbox_response.gif' style='vertical-align:middle' alt="שלח תזכורת"/></span></form></center>
<span dir="rtl"></TD>
<td></span><center><span dir="rtl">
{$row['payment']}</span></center>
<span dir="rtl"></TD>
<td></span><center><span dir="rtl">
{$row['finish_date']}</span></center>
<span dir="rtl"></TD>
<td></span><center><span dir="rtl">
{$row['products']}</span></center>
<span dir="rtl"></TD>
<td></span><center><span dir="rtl">
{$row['email']}</span></center>
<span dir="rtl"></TD>
<TD></span><center><span dir="rtl">
{$row['phone']}</span></center>
<span dir="rtl"></TD>
<TD></span><center><span dir="rtl">
{$row['city']}</span></center>
<span dir="rtl"></TD>
<TD></span><center><span dir="rtl">
{$row['lname']}</span></center>
<span dir="rtl"></TD>
<TD></span><center><span dir="rtl">
{$row['name']}</span></center>
<span dir="rtl"></TD>
<TD></span><center><span dir="rtl">
{$row['status']}</span></center>
<span dir="rtl"></TD>
<TD></span><center><span dir="rtl">
{$row['id']}</span></center><span dir="rtl"></TD>
</TR>
</span>
</body>
</html>
HTML;
        }
    } 
__________________
יונתן.
אימייל: jonathan@zeierman.net
  Reply With Quote
השב

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 


חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 14:08.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ