masrawy Posted March 6, 2009 Author Share Posted March 6, 2009 this is the code for delet <head> <style><!--div { font-size: 13px; font-family: Tahoma, "Times New Roman", serif; }div { margin: 0; padding: 0; }div.page { direction: rtl; width: 750px; height: auto; border: 1px solid #004488; border-top-width: 0px; border-bottom-width: 8px; margin-left: auto; margin-right: auto; }div.body { width: 750px; background-color:#FFFFFF; vertical-align: top; }div.boxH3 { background-color: #e8d68e; border: 1px solid #6699CC; border-bottom-width: 0; text-align: right; font-weight: bold; padding: 2px; color: #000000; }div.row { clear: both; width: 100%; padding: 1px 0 1px 0; text-align: center; }div.boxB { border: 1px solid #1875B5; background-color: #efe8d6; text-align: justify; padding: 2px; }div.boxH { background-color: #1875B5; border: 1px solid #1875B5; border-bottom-width: 0; text-align: center; font-weight: bold; padding: 2px; color: #FFFFFF; }span { font-size: 13px; font-family: Tahoma, "Times New Roman", serif; }.wng { color: red; font-weight: bold; }input { font-size: 13px; font-family: Tahoma, "Times New Roman", serif; }.s1 { font-size: 12px; }--></style> </head> <table border="1" width="95%" style="border-collapse: collapse" bordercolor="#1875B5" height="70"> <tr> <td bgcolor="#e8d68e" width="50%" style="border-right-style: none; border-right-width: medium" height="24"> <span lang="ar-eg"><b> رد رقم (<?=$repid?>) بقلم: <a href="index.php?action=member_card&mem_id=<?=$member_id?>"><b><?=$name?></b> </a> </b></td> <td bgcolor="#e8d68e" width="50%" style="border-left-style: none; border-left-width: medium" height="24"> <p align="left"> <b><?=$date?></b></td> </tr> <tr> <td colspan="2" bgcolor="#efe8d6"> <? $replay=nl2br($replay); ?><?=$replay?></td> </tr><? $asmemr1_select = mysql_query ("SELECT * from ssubject where id='$ssub_id' and active='1'"); while ($Row515=mysql_fetch_array($asmemr1_select)) { $memberr_id = $Row515[mem_id]; $asmm_select = mysql_query ("SELECT * from members where id='$member_id' and active='1'"); while ($Row16=mysql_fetch_array($asmm_select)) { $speciall = $Row16 [special]; } }if ($special == "1" or $mem_id == $memberid){?> <tr> <td colspan="2" bgcolor="#efe8d6"> <p align="center"> <a href="index.php?action=delete_subject&rep_id=<? echo $repid; ?>&subjectid=<? echo $subjectid; ?>" ><span lang="ar-eg">حـــذف</span></a></td> </tr><? } else {}?> </table><br> Link to comment Share on other sites More sharing options...
masrawy Posted March 6, 2009 Author Share Posted March 6, 2009 this is url text for index.phpbecouse i can't put it herhttp://www.msrq3.net/am.txt Link to comment Share on other sites More sharing options...
justsomeguy Posted March 6, 2009 Share Posted March 6, 2009 If I have time to look through that much code I'll let you know what I find. Link to comment Share on other sites More sharing options...
masrawy Posted March 6, 2009 Author Share Posted March 6, 2009 ok waitting you sirreally i very thank you i learn many things frome you thank you sir you are very helpfull Link to comment Share on other sites More sharing options...
masrawy Posted March 8, 2009 Author Share Posted March 8, 2009 wait you sir Link to comment Share on other sites More sharing options...
masrawy Posted March 9, 2009 Author Share Posted March 9, 2009 you see it sir ? Link to comment Share on other sites More sharing options...
justsomeguy Posted March 9, 2009 Share Posted March 9, 2009 I haven't had a chance to look through the code yet, sorry. Link to comment Share on other sites More sharing options...
masrawy Posted March 9, 2009 Author Share Posted March 9, 2009 ok sir i wait you Link to comment Share on other sites More sharing options...
masrawy Posted March 12, 2009 Author Share Posted March 12, 2009 sirwhen i try to register new member come to me an error this email was register beforand i'm sur that this emil no in database so what is wrong sir ? Link to comment Share on other sites More sharing options...
masrawy Posted March 16, 2009 Author Share Posted March 16, 2009 dear justsomeguyi'm waitting you sir i hop you help me thank you sir Link to comment Share on other sites More sharing options...
justsomeguy Posted March 16, 2009 Share Posted March 16, 2009 I understand, these last couple weeks have been busy and I haven't had a chance to look through all of the code yet. Link to comment Share on other sites More sharing options...
Guest amr Posted March 26, 2009 Share Posted March 26, 2009 hi i'm amrgadbut i have forget the passwordwhen i try to get it told me the memeber is not in our systemhow can i do ? Link to comment Share on other sites More sharing options...
masrawy Posted March 26, 2009 Author Share Posted March 26, 2009 i find it sir?/ Link to comment Share on other sites More sharing options...
masrawy Posted March 26, 2009 Author Share Posted March 26, 2009 did you see the script sir ? Link to comment Share on other sites More sharing options...
justsomeguy Posted March 26, 2009 Share Posted March 26, 2009 In the delete query here:$delete=mysql_query("DELETE from subject_replays WHERE id='$rep_id'");You haven't set $rep_id to anything. That's the first and only time you use $rep_id in the code. Link to comment Share on other sites More sharing options...
masrawy Posted March 28, 2009 Author Share Posted March 28, 2009 so what can i do ?and another problem now when i register new member told me that the email usded with another member and i'm sur not?can you help Link to comment Share on other sites More sharing options...
justsomeguy Posted March 31, 2009 Share Posted March 31, 2009 so what can i do ?Figure out where $rep_id is supposed to be coming from, and set the variable. It's probably coming from $_GET.and another problem now when i register new member told me that the email usded with another member and i'm sur not?Where's the code that does registration? Link to comment Share on other sites More sharing options...
masrawy Posted April 1, 2009 Author Share Posted April 1, 2009 Figure out where $rep_id is supposed to be coming from, and set the variable. It's probably coming from $_GET.can you plz wite the code to me to delet the repplay for the member if he like ?the register code itif($action == "submit"){br(); echo "<center><font size=4 face=\"Traditional Arabic\"><b>التسجيل</b></font></center>";br(); br();include ("template/style1/register_formm.tpl");}//----------------------------------------------------------------إدخال بيانات عضو جديدif($action == "insert_submit"){ fun_block_open("590","100%","#1875b5","#1875b5",$Msg['result']);if ($check != "on"){ echo "عذراً ... يجب الموافقة على اتفاقية استخدام الموقع حتى تتم عملية التسجيل بشكل جيد";}if ($check == "on"){ if ($password != "$repassword"){ echo "عذراً ... يجب أن تكون كلمةالمرور مطابقة لتأكيد كلمة المرور"; } if ($password == "$repassword"){ $selectn= mysql_query ("SELECT * from members where name='$name'"); $countn= mysql_num_rows($selectn); $selecte= mysql_query ("SELECT * from members where email='$email'"); $counte= mysql_num_rows($selecte); if ($countn != ""){ echo "عذراً...اسم المستخدم الذي اخترته موجود من قبل، حاول اختيار اسم آخر";}else {if ($counte != ""){ echo "عذراً...البريد الإلكتروني الذي وضعته موجود من قبل، يرجى كتابة بريد إلكتروني آخر";}else { $active_code = rand(0,999999);$subject="رابط تفعيل عضويتك بموقعنا";$message="السلام عليكم،،, <br>شكراً لتسجيلك في موقع $sitetitle، جراج الإنترنت العربي. <br>وأهلاً بك في أكبر تجمع تجاري عربي على الإنترنت، حيث يمكنك الآن، الإعلان مجاناً في موقع $sitetitle، والمشاركة مجاناً أيضاً في منتدى $sitetitle.<br>كما يمكنك الاستفادة من المميزات والصلاحيات الخاصة بك والموجودة في قسم إدارتك في موقع $sitetitle.<br>نرجوا منك الآن، الدخول على الرابط التالي أو نسخه ولصقه في المتصفح لديك، وذلك لتفعيل عضويتك: <br>http://www.aldleel.net/knoos/index.php?act...036;active_code<br>حيث يمكنك بعد ذلك الدخول على الموقع باستخدام: <br>اسم المستخدم: $name <br>كلمة السر: $password <br>ملاحظات هامة: - إذا لم تقم بالدخول على الموقع خلال ثلاثة أيام بعد وقت تسجيلك، فسوف تلغى عضويتك آلياً. <br>- نود التنويه إلى أن موقع $sitetitle لا يرسل رسائل إلكترونية تحتوي على ملفات مرفقة. فإذا وصلك أي بريد إلكتروني، ويبدو لك أنه مرسل من موقع $sitetitle، وهو يحتوي على ملف مرفق، فهو فيروس، ولم يُرسل من موقع $sitetitle مطلقاً، وننصحك بحذفه مباشرة. حيث قام هذا الفيروس بإرسال نفسه تحت اسم موقع $sitetitle، وذلك من أي جهاز في العالم.<br>..مع خالص تحياتنا <br><font color=#ff0000>www.aldleel.net/knoos </font><br> <font color=#0000ff> $sitetitle - جراج الإنترنت العربي</font>";@mail($email,$subject,$message,$headers); $INSERTVALUES = mysql_query("INSERT members VALUES ('','$name','$country','$city','$day','$month','$birth','$email','$email_case','$mobile','$tel','$ways','$password','$fullname','$vv','$education','$today_date','0','0','$active_code')");$INSERTVALUES = mysql_query("update members set active='1' WHERE active_code='$active_code'"); if($INSERTVALUES){echo "<center><b><font color=#339966>لقد تم تسجيلك عضواً في الموقع بنجاح. كما تم إرسال بريد إلكتروني إليك وذلك لتفعيل عضويتك في الموقع .</font><br><br> ملاحظات هامة :- يجب تفعيل عضويتك خلال مدة لا تتجاوز ثلاثة أيام ، وإلا فإن عضويتك ستحذف آلياً . <br>- إذا لم يصلك البريد الإلكتروني الخاص بالتفعيل الآن، فيرجى زيارة صفحة <a href=index.php?action=activemem&active_code=$active_code><span lang=ar-eg>تفعيل العضوية</span></a>. </b></center>";} else{echo "عذراً هناك مشكلة في عملية الإضافة <br> نرجو المحاولة مرة أخرى";} } } } } fun_block_close();echo "<meta http-equiv=\"refresh\" content=\"10; URL=index.php\">";} Link to comment Share on other sites More sharing options...
masrawy Posted April 1, 2009 Author Share Posted April 1, 2009 also i put script print how is in the site now with his country flage but it is not work goodgife me the name of country like ???????and the flage wrong? Link to comment Share on other sites More sharing options...
justsomeguy Posted April 1, 2009 Share Posted April 1, 2009 Add this line to the top of the delete part:$rep_id = $_GET['rep_id'];Check the links that you click to delete. If the ID to delete is called something other than "rep_id", then change what it says in $_GET.This is the code that checks the email: $selecte= mysql_query ("SELECT * from members where email='$email'");$counte= mysql_num_rows($selecte);...if ($counte != ""){echo "عذراً...البريد الإلكتروني الذي وضعته موجود من قبل، يرجى كتابة بريد إلكتروني آخر";} Add a line to print $email so you know what it is, or if it's even set. Also, mysql_num_rows returns a number, it returns the number of rows in the result. When you check the return value you're checking against an empty string, not a number. You should check if it is not equal to 0 instead. Link to comment Share on other sites More sharing options...
masrawy Posted April 1, 2009 Author Share Posted April 1, 2009 Add this line to the top of the delete part:$rep_id = $_GET['rep_id'];Check the links that you click to delete. If the ID to delete is called something other than "rep_id", then change what it says in $_GET.wher can i put this in index.phpand now the problem 2 for email if i dwenload the sql to the local server and do any thing to the sql and ypload it again this problem hapend but if i do the changes on the site not hapenabout the user flages how can i do ? Link to comment Share on other sites More sharing options...
masrawy Posted April 2, 2009 Author Share Posted April 2, 2009 is ther any function sir =ini_set()?? Link to comment Share on other sites More sharing options...
justsomeguy Posted April 2, 2009 Share Posted April 2, 2009 Yes, ini_set is a function. Link to comment Share on other sites More sharing options...
masrawy Posted April 2, 2009 Author Share Posted April 2, 2009 is ther any function do the same function of ini_setbecouse it is diapple by the server?and about flages of vistor who visite the site ? Link to comment Share on other sites More sharing options...
justsomeguy Posted April 2, 2009 Share Posted April 2, 2009 No, ini_set is the only function that sets ini values.I don't know what you're asking about flags. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.