masrawy Posted March 3, 2009 Author Share Posted March 3, 2009 Array ( [s_photo] => Array ( [name] => 140x80-20090221-213043.gif [type] => image/gif [tmp_name] => /tmp/phpQ4Zk6F [error] => 0 => 23939 ) ) Link to comment Share on other sites More sharing options...
justsomeguy Posted March 3, 2009 Share Posted March 3, 2009 You can actually find out which functions are disabled for yourself:echo ini_get('disable_functions');Save this script in the same directory as the upload script and see what it says: <?phperror_reporting(E_ALL);ini_set('display_errors', 1);file_put_contents('uploads/test.txt', 'success');echo file_get_contents('uploads/test.txt');?> Link to comment Share on other sites More sharing options...
masrawy Posted March 3, 2009 Author Share Posted March 3, 2009 this is the outsuccess Link to comment Share on other sites More sharing options...
masrawy Posted March 3, 2009 Author Share Posted March 3, 2009 and this is the disable functions:dl,exec,ini_set,shell_exec,system,passthru,popen,pclose,proc_open,symlink,proc_nice,proc_terminate,pos,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_getgrnam,posix_kill,posix_access,posix_mkfifo,posix_isatty,posix_getpgrp,posix_getrlimit,posix_strerror,posix_getgroups,posix_setpgid,posix_setsid,posix_getlogin,posix_get_last_error,posix_setuid,escapeshellcmd,escapeshellarg,######-exec,fpassthru,exec,crack_check,crack_closedict,crack_getlastmessage,crack_opendict,psockopen,php_ini_scanned_files,php_u,symlink,zip_entry_read,confirm_phpdoc_compiled,session_save_path,posix_getpwuid,phpinfo, Link to comment Share on other sites More sharing options...
justsomeguy Posted March 3, 2009 Share Posted March 3, 2009 It looks like everything's fine. It's able to create a file and write to it. Maybe use the full path instead.$res = move_uploaded_file($_FILES['s_photo']['tmp_name'], dirname(__FILE__) . DIRECTORY_SEPARATOR . $path . $Name); Link to comment Share on other sites More sharing options...
masrawy Posted March 3, 2009 Author Share Posted March 3, 2009 nothing chng the same problem no pic pperny help elsei need to ask if the function fopen has efect for upload pic ? Link to comment Share on other sites More sharing options...
masrawy Posted March 3, 2009 Author Share Posted March 3, 2009 i see that in the top of index.php file Array ( ) Link to comment Share on other sites More sharing options...
masrawy Posted March 4, 2009 Author Share Posted March 4, 2009 sir i found this in upload folder3_3_2009_HGI_TEL_0020103508210_376696169.imgimg is not jpg or gif file so it is not apper is ther any function chang this to pic?or what Link to comment Share on other sites More sharing options...
masrawy Posted March 4, 2009 Author Share Posted March 4, 2009 i gess that ther is function chang file name ti gif or jpg ? Link to comment Share on other sites More sharing options...
masrawy Posted March 4, 2009 Author Share Posted March 4, 2009 have alook to this code is it wrightif ($action == "update_uforumsub") {if (file_exists("uploads/")) {} else{mkdir("");} $path = "uploads/";$max_size = 20000000;$RegDate = date("j_n_Y_");$t = rand(0, 9000000000);$myname = "smmms";$ext = ".img";$Name = "$RegDate$myname$t$ext";########### Uploadif (!isset($_FILES['fs_photo'])) exit(exit1);if (is_uploaded_file($_FILES['fs_photo']['tmp_name'])) {if ($_FILES['fs_photo']['size']>$max_size) { echo "حجم الملف كبير جدا\n";}if (file_exists($path . $Name)) {echo "اسم الصورة موجود مسبقا يرجي تغيير اسم الصورة وارسالها\n"; exit;}$res = move_uploaded_file($_FILES['s_photo']['tmp_name'], dirname(__FILE__) . DIRECTORY_SEPARATOR . $path . $Name);echo $path . $Name;if (!$res) { echo "فشل تحميل الصورة<br>\n";}$fs_photo=$Name;}if ($fs_photo != ""){ $update=mysql_query("UPDATE forum_subjects SET fs_name='$fs_name', fs_disc='$fs_disc', fs_photo='$fs_photo', add_date='$s_adddate', end_date='$s_enddate' WHERE id='$hidden'"); if($update){echo "تم التعديل بنجاح";} else {echo "هناك خطأ في عملية التعديل";}}if ($fs_photo == ""){ $update=mysql_query("UPDATE forum_subjects SET fs_name='$fs_name', fs_disc='$fs_disc', add_date='$s_adddate', end_date='$s_enddate' WHERE id='$hidden'"); if($update){echo "تم التعديل بنجاح";} else {echo "هناك خطأ في عملية التعديل";}}} Link to comment Share on other sites More sharing options...
masrawy Posted March 4, 2009 Author Share Posted March 4, 2009 siri found something very string on firefox no picture apperon opera apper ?why ? Link to comment Share on other sites More sharing options...
justsomeguy Posted March 4, 2009 Share Posted March 4, 2009 $path = "uploads/";$max_size = 20000000;$RegDate = date("j_n_Y_");$t = rand(0, 9000000000);$myname = "smmms";$ext = ".img";$Name = "$RegDate$myname$t$ext";You're setting the extension to ".img" right there. If you want to use something else, change it. It would probably be better to get the original extension and use that, so that you're not changing a .jpg to a .gif and vice-versa. Opera probably gets it right because it's going off mime type instead of extension. Link to comment Share on other sites More sharing options...
masrawy Posted March 4, 2009 Author Share Posted March 4, 2009 $ext = ".img";can i make this outo i main if i upload gif or jpg apper like it Link to comment Share on other sites More sharing options...
justsomeguy Posted March 4, 2009 Share Posted March 4, 2009 You can get the original extension like this:$ext = array_pop(explode('.', $_FILES['fs_photo']['name'])); Link to comment Share on other sites More sharing options...
masrawy Posted March 4, 2009 Author Share Posted March 4, 2009 ok sir i will try itnow when member register new in the fields email and two choise hiden or apper but all the time the email is apper also if i chose hidden see the code for register if($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.smmms.net/knoos/index.php?actio...036;active_code<br>حيث يمكنك بعد ذلك الدخول على الموقع باستخدام: <br>اسم المستخدم: $name <br>كلمة السر: $password <br>ملاحظات هامة: - إذا لم تقم بالدخول على الموقع خلال ثلاثة أيام بعد وقت تسجيلك، فسوف تلغى عضويتك آلياً. <br>- نود التنويه إلى أن موقع $sitetitle لا يرسل رسائل إلكترونية تحتوي على ملفات مرفقة. فإذا وصلك أي بريد إلكتروني، ويبدو لك أنه مرسل من موقع $sitetitle، وهو يحتوي على ملف مرفق، فهو فيروس، ولم يُرسل من موقع $sitetitle مطلقاً، وننصحك بحذفه مباشرة. حيث قام هذا الفيروس بإرسال نفسه تحت اسم موقع $sitetitle، وذلك من أي جهاز في العالم.<br>..مع خالص تحياتنا <br><font color=#ff0000>www.smmms.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\">";}this is database table for members email_case enum('0','1') latin1_swedish_ciNull = yesDefault=0 Link to comment Share on other sites More sharing options...
justsomeguy Posted March 4, 2009 Share Posted March 4, 2009 Are you inserting a 0 or 1 for email_case? Link to comment Share on other sites More sharing options...
masrawy Posted March 4, 2009 Author Share Posted March 4, 2009 where you main in register forme ?this is the code <head><meta http-equiv="Content-Type" content="text/html; charset=windows-1256"><meta name="GENERATOR" content="Microsoft FrontPage 6.0"><meta name="ProgId" content="FrontPage.Editor.Document"><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.boxH { background-color: #e8d68e; border: 1px solid #e8d68e; border-bottom-width: 0; text-align: center; font-weight: bold; padding: 2px; color: #FFFFFF; }div.boxB { border: 1px solid #e8d68e; background-color: #efe8d6; text-align: justify; padding: 2px; }div.row { clear: both; width: 100%; padding: 1px 0 1px 0; text-align: center; }--></style><script LANGUAGE="JavaScript">function validate() {if (document.form1.name.value.length < 3) {alert("من فضلك قم بكتابة اسم المستخدم والتي لا تقل عن 3 احرف ");return false;}if (document.form1.password.value.length < 6) {alert("من فضلك قم بكتابة كلمة المرور والتي لا تقل عن 6 احرف او ارقام");return false;}if (document.form1.repassword.value.length < 6) {alert("من فضلك قم بكتابة كلمة المرور مرة أخرى والتي لا تقل عن 6 احرف او ارقام");return false;}if (document.form1.fullname.value.length < 7) {alert("من فضلك قم بكتابة اسمك بالكامل");return false;} emailFlag = form1.email.value.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/i) if(!emailFlag){ alert("من فضلك قم بكتابة بريدك الالكتروني بطريقة صحيحة ويجب ان يكون بصورة التالية mail@site.com"); form1.email.select() return false; }return true;}</script></head><body><div align="center"> <center> <TABLE dir=rtl borderColor=#e8d68e height=300 width="95%" border=1 cellpadding="0" cellspacing="0" style="border-collapse: collapse"><tr> <td width="100%" align="center"> <TABLE dir=rtl borderColor=#e8d68e height=300 width="100%" border=0 cellpadding="7" cellspacing="0"> <tr><form name="form1" method="POST" action="index.php?action=insert_submit" onSubmit="return validate();"> <TD width="100%" bgColor=#e8d68e height=26 colspan="2" bordercolor="#e8d68e" align="center"> <span lang="ar-eg"> <b>اتفاقية استخدام الموقع</b></span></TD> </tr> <tr> <TD width="100%" bgColor=#efe8d6 height=26 bordercolor="#EFECF2" colspan="2" align=center> <p align="center"> <iframe name="I1" src="template/style1/fram.htm" width="90%" height="200"> Your browser does not support inline frames or is currently configured not to display inline frames. </iframe></TD> </tr> <tr> <TD width="100%" bgColor=#e8d68e height=26 colspan="2" bordercolor="#e8d68e" align="center"> <b><span lang="ar-eg">اسم المستخدم وكلمة السر</span></b></p> </TD> </tr> <tr> <TD width="100%" bgColor=#efe8d6 height=21 bordercolor="#efe8d6" colspan="2" align=center> اسم المستخدم هو الاسم الذي يُستخدم مع كلمة السر عند الدخول للموقع.<br> ويجب أن يتكون من أحرف عربية أو إنجليزية أو أرقام. وأن يبدأ بحرف، وأن لا يقل طوله عن ثلاثة خانات، وأن لا يحتوي على فراغات (مسافات خالية).</TD> </tr> <TR> <TD width="50%" bgColor=#efe8d6 height=26 bordercolor="#efe8d6" align="left"> <b>اسم المستخدم<font color="#FF0000">*</font></b></TD> <TD width="48%" height=26 bgcolor="#efe8d6" bordercolor="#efe8d6"> <? echo $name; ?><INPUT size=33 name=name></TD></TR> <tr> <TD width="50%" bgColor=#efe8d6 height=21 bordercolor="#efe8d6" align="left"> <b><SPAN lang=ar-eg>كلمة السر</SPAN><font color="#FF0000">*</font></b></TD> <TD width="48%" height=21 bgcolor="#efe8d6" bordercolor="#efe8d6"> <INPUT size=33 name="password" type="password" ?></TD> </tr> <tr> <TD width="50%" bgColor=#efe8d6 height=21 bordercolor="#efe8d6" align="left"> <b><span lang="ar-eg">تأكيد كلمة السر</span><font color="#FF0000">*</font></b></TD> <TD width="48%" height=21 bgcolor="#efe8d6" bordercolor="#efe8d6"> <INPUT size=33 name="repassword" type="password" ?></TD> </tr> <tr> <TD width="100%" bgColor=#e8d68e height=26 colspan="2" bordercolor="#e8d68e" align="center"> <b>طُرق الاتصال بك التي ستظهر للأعضاء والزوار</b></p> </TD> </tr> <tr> <TD width="100%" bgColor=#efe8d6 height=21 bordercolor="#efe8d6" colspan="2" align=center> يرجى تحري الدقة في هذه المعلومات، حيث أن معلوماتك هذه ستظهر لكل أعضاء وزوار الموقع ، وذلك ليتمكن الطرف الأخر من الاتصال بك لإتمام العملية التجارية بينكما.</TD> </tr> <tr> <TD width="50%" bgColor=#efe8d6 height=21 bordercolor="#efe8d6" align="left"> <b> <span lang="ar-eg">البريد الإلكتروني</span><font color="#FF0000">*</font></b></TD> <TD width="48%" height=21 bgcolor="#efe8d6" bordercolor="#efe8d6" align="center"> <INPUT size=32 name=email style="float: right"></TD> </tr> <tr> <TD width="100%" bgColor=#efe8d6 height=21 bordercolor="#efe8d6" colspan="2" align=center> <b>ملاحظة:</b> إذا غيرت البريد الإلكتروني، فإننا سنرسل لك رسالة على البريد الجديد تحتوي على رابط <span style="font-size: 13px; font-family: Tahoma, 'Times New Roman', serif"> لتفعيل هذا البريد الجديد</span>، علماً أنك لن تستطيع الدخول على الموقع إلى أن يتم التفعيل.<br> </TD> </tr> <tr> <TD width="50%" bgColor=#efe8d6 height=18 bordercolor="#efe8d6" align="left"> <span lang="ar-eg"><b>حالة البريد الإلكتروني</b></span><b><font color="#FF0000">*</font></b></TD> <TD width="48%" height=18 bgcolor="#efe8d6" bordercolor="#efe8d6" align="right"> <input type="radio" name="email_case" value="0" checked='' /><span lang="ar-eg">ظاهر</span> <input type="radio" name="email_case" value="1" /><span lang="ar-eg">مخفي</span> </TD> </tr> <tr> <TD width="50%" bgColor=#efe8d6 height=18 bordercolor="#efe8d6" align="left"> <b> <span lang="ar-eg">الدولة</span><font color="#FF0000">*</font></b></TD> <TD width="48%" height=18 bgcolor="#efe8d6" bordercolor="#efe8d6" align="right"><span lang="ar-eg"> </span><select size="1" name="country"><? $as7_select = mysql_query ("SELECT * from country"); while ($Row=mysql_fetch_array($as7_select)) { $id = $Row [id]; $country_name = $Row [country]; ?> <option value="<? echo $country_name; ?>"><? echo $country_name; ?></option><? } ?> </select> </TD> </tr> <TR> <TD width="50%" bgColor=#efe8d6 height=18 bordercolor="#efe8d6" align="left"> <b> <span lang="ar-eg">المدينة</span><font color="#FF0000">*</font></b></TD> <TD width="48%" height=18 bgcolor="#efe8d6" bordercolor="#efe8d6" align="right"> <INPUT size=32 name=city ?></TD></TR> <tr> <TD width="50%" bgColor=#efe8d6 height=21 bordercolor="#efe8d6" align="left"> <b><SPAN lang=ar-eg>رقم هاتف جوال</SPAN></b></TD> <TD width="48%" height=21 bgcolor="#efe8d6" bordercolor="#efe8d6" align="right"> <INPUT dir=ltr size=33 name=mobile ?></TD> </tr> <tr> <TD width="50%" bgColor=#efe8d6 height=21 bordercolor="#efe8d6" align="left"> <b><SPAN lang=ar-eg>رقم الهاتف</SPAN></b></TD> <TD width="48%" height=21 bgcolor="#efe8d6" bordercolor="#efe8d6" align="right"> <INPUT dir=ltr size=33 name=tel ?></TD> </tr> <tr> <TD width="50%" bgColor=#efe8d6 height=52 bordercolor="#efe8d6" align="left"> <b> <span lang="ar-eg">طرق الاتصال الأخرى</span></b></TD> <TD width="48%" height=52 bgcolor="#efe8d6" bordercolor="#efe8d6" align="right"> <TEXTAREA name=ways rows=6 cols=35></TEXTAREA></TD> </tr> <tr> <TD width="100%" bgColor=#efe8d6 height=21 bordercolor="#efe8d6" colspan="2" align=center> تستطيع في هذه الخانات أعلاه إضافة أكثر من رقم، مثلاً: 1234567 - 3456789.<br> </TD> </tr> <tr> <TD width="100%" bgColor=#e8d68e height=26 colspan="2" bordercolor="#e8d68e" align="center"> <b>معلوماتك الشخصية التي لن تظهر لأحد</b></p> </TD> </tr> <tr> <TD width="100%" bgColor=#efe8d6 height=21 bordercolor="#efe8d6" colspan="2" align=center> هذه المعلومات سرية ولن تظهر لأحد.<br> </TD> </tr> <tr> <TD width="50%" bgColor=#efe8d6 height=18 bordercolor="#efe8d6" align="left"> <span lang="ar-eg"><b>الاسم الكامل</b></span><b><font color="#FF0000">*</font></b></TD> <TD width="48%" height=18 bgcolor="#efe8d6" bordercolor="#efe8d6" align="right"> <INPUT size=32 name=fullname ?></TD> </tr> <tr> <TD width="50%" bgColor=#efe8d6 height=18 bordercolor="#efe8d6" align="left"> <span lang="ar-eg"><b>الجنس</b></span><b><font color="#FF0000">*</font></b></TD> <TD width="48%" height=18 bgcolor="#efe8d6" bordercolor="#efe8d6" align="right"> <p align="right"> <input type="radio" name="vv" value="1" checked='' />ذكر <input type="radio" name="vv" value="2" />أنثى </TD> </tr> <tr> <TD width="50%" bgColor=#efe8d6 height=18 bordercolor="#efe8d6" align="left"> <b> <span lang="ar-eg">تاريخ الميلاد</span><font color="#FF0000">*</font></b></TD> <TD width="48%" height=18 bgcolor="#efe8d6" bordercolor="#efe8d6" align="right"> <select size="1" name="day"> <option >01</option><option >02</option><option >03</option><option >04</option><option >05</option><option >06</option><option >07</option><option >08</option><option >09</option><option >10</option><option >11</option><option >12</option><option >13</option><option >14</option><option >15</option><option >16</option><option >17</option><option >18</option><option >19</option><option >20</option><option >21</option><option >22</option><option >23</option><option >24</option><option >25</option><option >26</option><option >27</option><option >28</option><option >29</option><option >30</option><option >31</option> </select> <select size="1" name="month"> <option >01</option><option >02</option><option >03</option><option >04</option><option >05</option><option >06</option><option >07</option><option >08</option><option >09</option><option >10</option><option >11</option><option >12</option> </select> <select size="1" name="birth"> <option >1900</option><option >1901</option><option >1902</option><option >1903</option><option >1904</option><option >1905</option><option >1906</option><option >1907</option><option >1908</option><option >1909</option><option >1910</option><option >1911</option><option >1912</option><option >1913</option><option >1914</option><option >1915</option><option >1916</option><option >1917</option><option >1918</option><option >1919</option><option >1920</option><option >1921</option><option >1922</option><option >1923</option><option >1924</option><option >1925</option><option >1926</option><option >1927</option><option >1928</option><option >1929</option><option >1930</option><option >1931</option><option >1932</option><option >1933</option><option >1934</option><option >1935</option><option >1936</option><option >1937</option><option >1938</option><option >1939</option><option >1940</option><option >1941</option><option >1942</option><option >1943</option><option >1944</option><option >1945</option><option >1946</option><option >1947</option><option >1948</option><option >1949</option><option >1950</option><option >1951</option><option >1952</option><option >1953</option><option >1954</option><option >1955</option><option >1956</option><option >1957</option><option >1958</option><option >1959</option><option >1960</option><option >1961</option><option >1962</option><option >1963</option><option >1964</option><option >1965</option><option >1966</option><option >1967</option><option >1968</option><option >1969</option><option >1970</option><option >1971</option><option >1972</option><option >1973</option><option >1974</option><option >1975</option><option >1976</option><option >1977</option><option >1978</option><option >1979</option><option >1980</option><option >1981</option><option >1982</option><option >1983</option><option >1984</option><option >1985</option><option >1986</option><option >1987</option><option >1988</option><option >1989</option><option >1990</option><option >1991</option><option >1992</option><option >1993</option><option >1994</option><option >1995</option><option >1996</option><option >1997</option><option >1998</option><option >1999</option><option >2000</option> </select> </TD> </tr> <tr> <TD width="50%" bgColor=#efe8d6 height=18 bordercolor="#efe8d6" align="left"> <span lang="ar-eg"><b>التعليم</b></span><b><font color="#FF0000">*</font></b></TD> <TD width="48%" height=18 bgcolor="#efe8d6" bordercolor="#efe8d6" align="right"> <select size="1" name="education" style="width: 208; height:21"> <option >دون الثانوي</option> <option >ثانوي</option> <option >دبلوم</option> <option >جامعي</option> <option >ماجستير</option> <option >دكتوراة</option> </select> </TD> </tr> <tr> <TD width="100%" bgColor=#e8d68e height=26 colspan="2" bordercolor="#e8d68e" align="center"> <b>الموافقة على اتفاقية استخدام الموقع</b></p> </TD> </tr> <tr> <TD width="100%" bgColor=#efe8d6 height=21 bordercolor="#FFFFFF" colspan="2"> <p align="justify"> <b><font color="#FF0000">*</font></b><input type="checkbox" name="check" value="on"> لقد قرأت وفهمت ووافقت على كل بنود اتفاقية استخدام الموقع المذكورة أعلاه. وأعلم أن إساءة استخدامي لهذا الموقع سيعرضني للمسائلة من السلطات الأمنية، مع العلم أن رقم الأي بي (IP) الحالي الخاص بي هو:<span lang="ar-eg"> <b><? echo $_SERVER["REMOTE_ADDR"]; ?></b> </span><br> </TD> </tr> <tr> <TD width="100%" bgColor=#e8d68e height=26 colspan="2" bordercolor="#e8d68e" align="center"> <b>إرسال الطلب</b></p> </TD> </tr> <TR> <TD width="100%" bgColor=#efe8d6 height=20 colspan="2" bordercolor="#FFFFFF" align="center"> <INPUT type=submit value=" تسجيل " name=B1></TD></tr> <TR> <TD width="100%" bgColor=#efe8d6 colspan="2" bordercolor="#FFFFFF" align="right"> <b><font color="#FF0000">*<span lang="ar-eg"> </span></font></b> تعني: يجب ملء الخانة</TD> </TR></form></TABLE> </td></tr></table> </center></body></div> Link to comment Share on other sites More sharing options...
masrawy Posted March 5, 2009 Author Share Posted March 5, 2009 i see this in user form <?if ($email_case == "0"){ ?> <td width="85%" bordercolor="#FFFFFF" height="19" align="right" bgcolor="#efe8d6"><a href="mailto:<? echo $email; ?>"><span lang=ar-eg><? echo $email; ?></span></a></td><? } if ($email_case == "1"){ ?> <td width="85%" bordercolor="#FFFFFF" height="19" align="right" bgcolor="#efe8d6"><a href="mailto:<? echo $email; ?>"><span lang=ar-eg><? echo "البريد مخفي من قبل العضو"; ?></span></a></td><? } ?>is that code wright ? Link to comment Share on other sites More sharing options...
justsomeguy Posted March 5, 2009 Share Posted March 5, 2009 I mean here:$INSERTVALUES = mysql_query("INSERT membersVALUES ('','$name','$country','$city','$day','$month','$birth','$email','$email_case','$mobile','$tel','$ways','$password','$fullname','$vv','$education','$today_date','0','0','$active_code')");Is $email_case a 0 or 1? Print it out to check. Link to comment Share on other sites More sharing options...
masrawy Posted March 5, 2009 Author Share Posted March 5, 2009 thank you i didthis code for send mesage to another member if($action == "insert_send"){ br(); $as7_select = mysql_query ("SELECT * from members where id='$mem_id' AND active='1'"); while($Row2=mysql_fetch_array($as7_select)) { $id = $Row2 [id]; $name = $Row2 [name]; $special = $Row2 [special]; }if($special == "0"){ $select= mysql_query ("SELECT * from hendawy_mail where mem_id='$memberid'"); $counts= mysql_num_rows($select);if ($counts < "10"){ $INSERTVALUES = mysql_query("INSERT INTO hendawy_mail VALUES ('','$id','$name','$receiver','$titlee','$mbody','$today_date','$ad','0','1','1')"); if($INSERTVALUES){echo $Msg['add_correct'];br(); echo"<a href=\"index.php?action=inside_mail\"><span lang=ar-eg>الرجوع لصفحة الرسائل>>></span></a>"; } else{echo $Msg['add_failed'];br(); echo"<a href=\"java script:history.back(1)\" class=\"linko\"><span lang=ar-eg>العودة للصفحة السابقة >>></span></a>"; }}if ($counts >= "10"){echo "لا يسمح للعضو العادي إلا بعشرة رسائل فقط";}}if($special == "1"){ $select= mysql_query ("SELECT * from hendawy_mail where mem_id='$memberid'"); $counts= mysql_num_rows($select);if ($counts < "100"){ $INSERTVALUES = mysql_query("INSERT INTO hendawy_mail VALUES ('','$id','$name','$receiver','$titlee','$mbody','$today_date','$ad','0','1','1')"); if($INSERTVALUES){echo $Msg['add_correct'];br(); echo"<a href=\"index.php?action=inside_mail\"><span lang=ar-eg>الرجوع لصفحة الرسائل>>></span></a>"; } else{echo $Msg['add_failed'];br(); echo"<a href=\"java script:history.back(1)\" class=\"linko\"><span lang=ar-eg>العودة للصفحة السابقة >>></span></a>"; }}if ($counts >= "100"){echo "لا يسمح للعضو المميز إلا بمائة رسالة داخلية فقط";}}}whene i try five me all the time $Msg['add_failed Link to comment Share on other sites More sharing options...
masrawy Posted March 5, 2009 Author Share Posted March 5, 2009 Database knoosTable structure for table hendawy_mailField Type Null Defaultid int(10) Yes NULLmem_id int(10) Yes 0sender varchar(100) Yes NULLreceiver varchar(100) Yes NULLtitle varchar(100) Yes NULLbody mediumtext Yes NULLdate varchar(100) Yes NULLtime time Yes 00:00:00eread enum('0', '1') Yes 0mshowi enum('0', '1') Yes 1mshowo enum('0', '1') Yes 1subject varchar(100) Yes NULLactivate varchar(100) Yes NULLmessage varchar(100) Yes NULL Link to comment Share on other sites More sharing options...
justsomeguy Posted March 5, 2009 Share Posted March 5, 2009 Use mysql_error to get the error message. Link to comment Share on other sites More sharing options...
masrawy Posted March 5, 2009 Author Share Posted March 5, 2009 how sir ? Link to comment Share on other sites More sharing options...
justsomeguy Posted March 5, 2009 Share Posted March 5, 2009 echo mysql_error();after the query causing the problem. Link to comment Share on other sites More sharing options...
masrawy Posted March 5, 2009 Author Share Posted March 5, 2009 like that sir :if($action == "insert_send"){ br(); $as7_select = mysql_query ("SELECT * from members where id='$mem_id' AND active='1'"); while($Row2=mysql_fetch_array($as7_select)) { $id = $Row2 [id]; $name = $Row2 [name]; $special = $Row2 [special]; }if($special == "0"){ $select= mysql_query ("SELECT * from hendawy_mail where mem_id='$memberid'"); $counts= mysql_num_rows($select);if ($counts < "10"){ $INSERTVALUES = mysql_query("INSERT INTO hendawy_mail VALUES ('','$id','$name','$receiver','$titlee','$mbody','$today_date','$ad','0','1','1')"); if($INSERTVALUES){echo $Msg['add_correct'];br(); echo"<a href=\"index.php?action=inside_mail\"><span lang=ar-eg>الرجوع لصفحة الرسائل>>></span></a>"; } else{echo $Msg['add_failed'];br(); echo"<a href=\"java script:history.back(1)\" class=\"linko\"><span lang=ar-eg>العودة للصفحة السابقة >>></span></a>"; }}if ($counts >= "10"){echo "لا يسمح للعضو العادي إلا بعشرة رسائل فقط";}}if($special == "1"){ $select= mysql_query ("SELECT * from hendawy_mail where mem_id='$memberid'"); $counts= mysql_num_rows($select);if ($counts < "100"){ $INSERTVALUES = mysql_query("INSERT INTO hendawy_mail VALUES ('','$id','$name','$receiver','$titlee','$mbody','$today_date','$ad','0','1','1')"); if($INSERTVALUES){echo $Msg['add_correct'];br(); echo"<a href=\"index.php?action=inside_mail\"><span lang=ar-eg>الرجوع لصفحة الرسائل>>></span></a>"; } else{echo $Msg['add_failed'];br(); echo"<a href=\"java script:history.back(1)\" class=\"linko\"><span lang=ar-eg>العودة للصفحة السابقة >>></span></a>"; }}if ($counts >= "100"){echo "لا يسمح للعضو المميز إلا بمائة رسالة داخلية فقط";}}}echo mysql_error(); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.