Jump to content

khan.sikki

Members
  • Content Count

    14
  • Joined

  • Last visited

Everything posted by khan.sikki

  1. unable to understand why black image is getting, please check the code and assist in generating the optimised image from file input <html> <head> <script src="jquery-3.4.1.min.js"></script> <title>Image Optimization</title> </head> <body> <div> <input type="file" id="imgFile" accept="image/*" capture="user"> </div> <div id ="test"> <img id="optImg" alt="optmisied Image"> </div> </body> </html> <script> $("#imgFile").change(function(){ const File = this.files[0
  2. if user don't know how to allow the permission hence i thought showing permission twice will be a good idea i know how to alert but don't know how to show permission request warm regards, Sikandar
  3. How to avoid form resubmission <?php require_once('../Connections/localhost.php'); ?> <?php //initialize the session if (!isset($_SESSION)) { session_start(); } // ** Logout the current user. ** $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true"; if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){ $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']); } if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){ //to fully log out a visitor we need to clear the session varialbles $_SESSION['MM_Username'] = NULL;
  4. Hello frns, i learnt how to get the gps coordinates from w3school tutorials but a small question how to alter the user if he blocks the gps access request through code <script> var x = document.getElementById("gpsloc"); function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition, showError); } else { x.value = "Geolocation is not supported by this device."; } } function showPosition(position) { x.value = position.coords.latitude + "," + position.coords.longitude; } function showError(error) { switch(error.
  5. i solved it bro thank you here is the code <?php if(isset($_POST['submit'])){ // insert attendence to database $q= "INSERT INTO attendence(date,school_id,class,period,teacher,student_id,status) VALUES"; //creating arrary to receview multiple rows values for ($a=1;$a<=$totalRows_students;$a++){ //assigning multiple values to inset into values $q .="('".$_GET['date']."','".$_GET['school']."','".$_GET['class']."','".$_POST['period']."','".$_POST['teacher']."','".$_POST['student_id'][$a]."','".$_POST['status'][$a]."'),"; } //removing "," from stateme
  6. what i am asking is a inserting multiple values of looped table, above is is just inserting the last value of looped table
  7. Hello I am Sikandar need assistance in inserting multiple data which was fetched from a recordset in a table $editFormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "add_trips")) { $insertSQL = sprintf("INSERT INTO trips (trip_date, trip_no, hab_id) VALUES (%s, %s, %s)", GetSQLValueString($_POST['trip_date'], "date"), GetSQLValueString($_POST['trip_no'], "int"),
  8. how to create the above layout using grid view
  9. similar to this layout, please assist
  10. seating should be retrieve from the rows and columns of database
  11. khan.sikki

    Seating Layout

    Hello Friends, Can anyone help in designing seating layout and linking the rows and columns with Database table Regards, Sikandar
  12. in general every one uses check boxes or images to display as seats www.sikki.in is my website i am using php and mysql storage engine is Myslam
  13. Thank you very much for the reply brother i think forum is here to solve the complex things by discussing i am not asking to prepare this design, where as i am asking to assist where i stuck, as i designed the site learnng from w3schools asking to help as i was confused a bit in generating seat layout dynamically (front end) how to dynamically generate the seat layout based on the rows retrieved from the seats DB table here screen, rows and columns details will in seats table, screen details will be in screens table and booking info will be in booking table regards
  14. i learned php, mysql and css from w3schools and designed my personal website www.sikki.in and got stuck-ed at complex part of designing cinema online ticket reservation system to multiple located screens for exhibitor and producer. i am using php and mysql for Back end, but problem in designing Front end system like generating seats dynamically and mapping seats with rows and column please assistance in making a "how to" for this details : in screen table all the particulars of screen will present like no. of classes in screen, no. seats in each class, screen location, ticket
×
×
  • Create New...