اذهب إلى المحتوى

كمال صالح2

الأعضاء
  • المساهمات

    114
  • تاريخ الانضمام

  • تاريخ آخر زيارة

كل منشورات العضو كمال صالح2

  1. <!DOCTYPE html> <html lang="ar"> <head> <link rel="icon" href="https://c0.klipartz.com/pngpicture/573/614/gratis-png-ng%C5%A9-hanh-s%C6%A1n-distrito-casa-apartamento-inmobiliaria-volta-redonda-venta-de-logotipos-de-bienes-raices.png" /> <title>موقع العقارات</title> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Tajawal:wght@300&display=swap" rel="stylesheet"> <meta charset="utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="home.css"> </head> <body> <header> <div> <img src="a.png" alt="نظام العقارات من كمال تجريبي"> </div> <center> <div> <button>نقاط البيع</button> <button>أدارة المخزون</button> <button>الإراضي</button> <button>الشيكات</button> <button>الأستاذ العام</button> <button>إدارة النظام</button> </div> </center> </header> <?php $server = 'DESKTOP-PJDLJNR'; $database = 'Legacy'; $username = ''; $password = ''; $connection = new PDO("sqlsrv:Server=$server;Database=$database", $username, $password); if (!$connection) { die(print_r(sqlsrv_errors(), true)); } $sql_query = 'SELECT * FROM Problemss'; $statement = $connection->query($sql_query); ?> <table border="1" width="100%"> <tr> <th>تم</th> <th>الحلول</th> <th>المشكلة</th> <th>م</th> <th>الرقم</th> </tr> <?php while ($row = $statement->fetch(PDO::FETCH_ASSOC)) { ?> <tr> <td><?php echo $row['تم']?></td> <td><?php echo $row['الحلول']?></td> <td><?php echo $row['المشكلة']?></td> <td><?php echo $row['م']?></td> <td><?php echo $row['الرقم']?></td> </tr> <?php } $connection = null; // close the connection ?> </table> </body> </html>
  2. هاذا الكود يوجد فية خطاء ياستاذ مصطفى <!DOCTYPE html> <html lang="ar"> <head> <link rel="icon" href="https://c0.klipartz.com/pngpicture/573/614/gratis-png-ng%C5%A9-hanh-s%C6%A1n-distrito-casa-apartamento-inmobiliaria-volta-redonda-venta-de-logotipos-de-bienes-raices.png" /> <title>موقع العقارات</title> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Tajawal:wght@300&display=swap" rel="stylesheet"> <meta charset="utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="home.css"> </head> <body> <header> <div> <img src="a.png" alt="نظام العقارات من كمال تجريبي"> </div> <center> <div> <button>نقاط البيع</button> <button>أدارة المخزون</button> <button>الإراضي</button> <button>الشيكات</button> <button>الأستاذ العام</button> <button>إدارة النظام</button> </div> </center> </header> <?php $server = 'DESKTOP-PJDLJNR'; $database = 'Legacy'; $username = ''; $password = ''; $connection = new PDO("sqlsrv:Server=$server;Database=$database", $username, $password); if (!$connection) { die(print_r(sqlsrv_errors(), true)); } $sql_query = 'SELECT * FROM Problemss'; $statement = $connection->query($sql_query); ?> <table border="1" width="100%"> <tr> <th>تم</th> <th>الحلول</th> <th>المشكلة</th> <th>م</th> <th>الرقم</th> </tr> <?php while ($row = $statement->fetch(PDO::FETCH_ASSOC)) { print_r($row); <tr> <td><?php echo $row['تم']?></td> <td><?php echo $row['الحلول']?></td> <td><?php echo $row['المشكلة']?></td> <td><?php echo $row['م']?></td> <td><?php echo $row['الرقم']?></td> </tr> } $connection->close(); ?> </table> </body> </html>
  3. اخى العزيز ... فى البداية احب ان اوجه الى شيئ الا وهو ضرورة فهم البرمجة بشكل ممتاز حتى لا تصبح copy & paste لاى دورة تشارك فيها فى الاندرويد بدون وعي او ابتكار منك ولذلك اول خطوة يجب ان تقدم عليها هى تعلم اللغة المسئولة عن هذا التطوير الا وهى لغة الجافا او لغة الكوتلن واذا حددت لغة الجافا فانا اقدم لك ان تشاهد وتمارس مع محتوى عبدالله عيد كورس جافا 101 وجافا 102 والذان بدورهم ستفهم لغة جافا جيدا وبعد ذلك ستطرق الى الاندرويد ولو قرأت كتابا واحدا فى الاندرويد ستفهم كل شيئ متعلق به ولو دخلت على موقعهم ايضا ستفهم كل شيئ لانك متأسس فى اللغة اما اذا اردت ان تتعلم مباشر اندرويد وايضا معها الجافا فما عليك الا التسجيل فى مبادرة مليون مبرمج عربي او تدخل على موقع udacity
  4. تعلم البرمجة ليس صعبا، وليس سهلا، الخدعة تكمن في التمرن، أي يجب عليك أن تقوم دائما بتطبيق ما تتعلمه في مشاريع واقعية
  5. يطرح العديد من المبرمجين المبتدئين وحتى المحترفين بعض المرات، سؤالا يبدوا سهل الجواب، لكنه يحتوي على الكثير من الأشياء المهمة والمفيدة لكل مبرمج ومطور يعمل بمجال تصميم المواقع، أعتقد أنك فهمت قصدي، نعم إنه ذلك السؤال "ما هو الفرق بين HTML و HTML5"، في هذا المقال سنتناول أهم الإختلافات الموجودة بين HTML و HTML5، ولكن دعنا أولا نفهم ماهي لغة HTML؟ ولنتعرف معا على معلومات مفيدة.
  6. يمكننا القول أن مدة تعلم لغة برمجة مثل جافا أو بايثون تختلف من شخص إلى آخر، ولكن ليست هناك حدود في عالم البرمجة، لهذا يعتبر هذا السؤال خاطئا أساسا.
  7. نعم يمكنك تعلم البرمجة عبر هاتفك، ولكن لن يكون تعلمك بالهاتف بنفس جودة تعلمك بالحاسوب.
  8. خطاء في الكود : <!DOCTYPE html> <html lang="ar"> <head> <link rel="icon" href="https://c0.klipartz.com/pngpicture/573/614/gratis-png-ng%C5%A9-hanh-s%C6%A1n-distrito-casa-apartamento-inmobiliaria-volta-redonda-venta-de-logotipos-de-bienes-raices.png" /> <title>موقع تجريبي</title> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Tajawal:wght@300&display=swap" rel="stylesheet"> <meta charset="utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="home.css"> </head> <body> <header> <div> <img src="a.png" alt="نظام "> </div> <center> <div> <button>نقاط البيع</button> <button>أدارة المخزون</button> <button>3</button> <button>الشيكات</button> <button>الأستاذ العام</button> <button>إدارة النظام</button> </div> </center> </header> <?php $server = 'DESKTOP-PJDLJNR'; $database = 'Legacy'; $username = ''; $password = ''; $connection = new PDO("sqlsrv:Server=$server;Database=$database", $username, $password); if (!$connection) { die(print_r(sqlsrv_errors(), true)); } $sql_query = 'SELECT * FROM Problemss'; $statement = $connection->query($sql_query); ?> <table border="1" width="100%"> <tr> <th>تم</th> <th>الحلول</th> <th>المشكلة</th> <th>م</th> <th>الرقم</th> </tr> <?php while ($row = $statement->fetch(PDO::FETCH_ASSOC)) { print_r($row); <tr> <td><?php echo $row['تم']?></td> <td><?php echo $row['الحلول']?></td> <td><?php echo $row['المشكلة']?></td> <td><?php echo $row['م']?></td> <td><?php echo $row['الرقم']?></td> </tr> } $connection->close(); ?> </table> </body> </html>
  9. HTML: <!DOCTYPE html> <html lang="ar"> <head> <link rel="icon" href="https://c0.klipartz.com/pngpicture/573/614/gratis-png-ng%C5%A9-hanh-s%C6%A1n-distrito-casa-apartamento-inmobiliaria-volta-redonda-venta-de-logotipos-de-bienes-raices.png" /> <title>اسم الموقع</title> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Tajawal:wght@300&display=swap" rel="stylesheet"> <meta charset="utf-8" /> <link rel="stylesheet" type="text/css" media="screen" href="home.css"> </head> <body> <header> <div> <img src="a.png" alt="اسم النظام"> </div> <center> <div> <button>1</button> <button>2</button> <button>3</button> <button>4</button> <button>5 </button> <button>6 </button> </div> </center> </header> </body> </html> CSS: *{ margin: 0; padding: 0; } header{ width:100%; height: 70px; background-color:lightskyblue; box-shadow: 0px 0px 12px skyblue; } header button{ width:140px; padding:10px; margin-top:12px; border:none; background-color:lightblue; outline:none; font-size:18px; box-shadow:0px 0px 8px skyblue; font-family: "tajawal", sans-serif; font-weight: bold; transition: 1s; color:black; font-family: 'Tajawal', sans-serif; } header button:hover{ color:mediumblue; background-color:skyblue; box-shadow:0px 0px 15px mediumblue } header img{ width:70px; float:left; margin-top:0px; margin-left:10px; } لازم يتم الربط بين HTML وCSS
  10. <?php /* * Written By: ShivalWolf * Date: 2011/06/03 * Contact: Shivalwolf@domwolf.net * * UPDATE 2011/04/05 * The code now returns a real error message on a bad query with the mysql error number and its error message * checks for magic_quotes being enabled and strips slashes if it is. Its best to disable magic quotes still. * Checks to make sure the submitted form is a x-www-form-urlencode just so people dont screw with a browser access or atleast try to * Forces the output filename to be JSON to conform with standards * * UPDATE 2011/06/03 * Code updated to use the Web Module instead of tinywebdb * * UPDATE 2013/12/26 and 2014/02/18 * minor modifications by Taifun, puravidaapps.com * * UPDATE 2014/07/11 * mysql API (deprecated) replaced by mysqli by Taifun * * UPDATE 2015/04/30 * SELECT logic adjusted (result stored in temp. file removed) by Taifun * * UPDATE 2016/02/21 * Bugfix Undefined variable: csv */ /************************************CONFIG****************************************/ //DATABSE DETAILS// $DB_ADDRESS="localhost"; $DB_USER="id21726021_ali"; $DB_PASS="Kamalalan@20172019"; $DB_NAME="id21726021_legacy"; //SETTINGS// //This code is something you set in the APP so random people cant use it. $SQLKEY="Kamalalan@20172019"; /************************************CONFIG****************************************/ //these are just in case setting headers forcing it to always expire header('Cache-Control: no-cache, must-revalidate'); error_log(print_r($_POST,TRUE)); if( isset($_POST['query']) && isset($_POST['key']) ){ //checks if the tag post is there and if its been a proper form post //set content type to CSV (to be set here to be able to access this page also with a browser) header('Content-type: text/csv'); if($_POST['key']==$SQLKEY){ //validates the SQL key $query=urldecode($_POST['query']); if(get_magic_quotes_gpc()){ //check if the worthless pile of crap magic quotes is enabled and if it is, strip the slashes from the query $query=stripslashes($query); } $conn = new mysqli($DB_ADDRESS,$DB_USER,$DB_PASS,$DB_NAME); //connect if($conn->connect_error){ //checks connection header("HTTP/1.0 400 Bad Request"); echo "ERROR Database Connection Failed: " . $conn->connect_error, E_USER_ERROR; //reports a DB connection failure } else { $result=$conn->query($query); //runs the posted query if($result === false){ header("HTTP/1.0 400 Bad Request"); //sends back a bad request error echo "Wrong SQL: " . $query . " Error: " . $conn->error, E_USER_ERROR; //errors if the query is bad and spits the error back to the client } else { if (strlen(stristr($query,"SELECT"))>0) { //tests if it's a SELECT statement $csv = ''; // bug fix Undefined variable: csv while ($fieldinfo = $result->fetch_field()) { $csv .= $fieldinfo->name.","; } $csv = rtrim($csv, ",")."\n"; echo $csv; //prints header row $csv = ''; $result->data_seek(0); while($row = $result->fetch_assoc()){ foreach ($row as $key => $value) { $csv .= $value.","; } $csv = rtrim($csv, ",")."\n"; } echo $csv; //prints all data rows } else { header("HTTP/1.0 201 Rows"); echo "AFFECTED ROWS: " . $conn->affected_rows; //if the query is anything but a SELECT, it will return the number of affected rows } } $conn->close(); //closes the DB } } else { header("HTTP/1.0 400 Bad Request"); echo "Bad Request"; //reports if the secret key was bad } } else { header("HTTP/1.0 400 Bad Request"); echo "Bad Request"; } ?>
  11. مرحباً, لدي قاعدة بيانات في MS SQL SERVER , أريد نقلها إلى MYSQL . كيف يتم ذالك ؟ شكراً
×
×
  • أضف...