• Member Avatar
    SoMa_2

    Stopped Watching set unique ID when adding row dynamically

    I'm trying to addrow onclick button, and I need that new row would have the diffrent ids for "keyword" and "chapter" so I can pass the values of these two …
  • Member Avatar
    SoMa_2

    Marked Solved Status for set unique ID when adding row dynamically

    I'm trying to addrow onclick button, and I need that new row would have the diffrent ids for "keyword" and "chapter" so I can pass the values of these two …
  • Member Avatar
    SoMa_2

    Marked Solved Status for set unique ID when adding row dynamically

    I'm trying to addrow onclick button, and I need that new row would have the diffrent ids for "keyword" and "chapter" so I can pass the values of these two …
  • Member Avatar
    SoMa_2

    Created display images based on checkbox selection

    I want to display images based on what user checked from number of checkboxs. I'm trying this code, but it not working <!Doctype html> <html><body> <form method="post" action="" id="myForm"> <div …
  • Member Avatar
    SoMa_2

    Began Watching display images based on checkbox selection

    I want to display images based on what user checked from number of checkboxs. I'm trying this code, but it not working <!Doctype html> <html><body> <form method="post" action="" id="myForm"> <div …
  • Member Avatar
    SoMa_2

    Marked Solved Status for Delete record

    this code will display all courses user has <h1>YOUR COURSES</h1> <form action="delete.php" method="POST"><ol> <?php $con=mysqli_connect("localhost","FYP","123","FYP"); $sql= mysqli_query($con, "SELECT C_Code FROM F_COURSES WHERE F_ID=".$_SESSION['userid']); while($row = mysqli_fetch_array($sql)){ echo "<li name='course'>".$row['C_Code']."<input type='submit' …
  • Member Avatar
    SoMa_2

    Gave Reputation to broj1 in Delete record

    Enclose each row (and ID and a delete button) within form tags and add a hidden input that holds the value. You will have as many forms as there rows. …
  • Member Avatar
    SoMa_2

    Created Delete record

    this code will display all courses user has <h1>YOUR COURSES</h1> <form action="delete.php" method="POST"><ol> <?php $con=mysqli_connect("localhost","FYP","123","FYP"); $sql= mysqli_query($con, "SELECT C_Code FROM F_COURSES WHERE F_ID=".$_SESSION['userid']); while($row = mysqli_fetch_array($sql)){ echo "<li name='course'>".$row['C_Code']."<input type='submit' …
  • Member Avatar
    SoMa_2

    Began Watching Delete record

    this code will display all courses user has <h1>YOUR COURSES</h1> <form action="delete.php" method="POST"><ol> <?php $con=mysqli_connect("localhost","FYP","123","FYP"); $sql= mysqli_query($con, "SELECT C_Code FROM F_COURSES WHERE F_ID=".$_SESSION['userid']); while($row = mysqli_fetch_array($sql)){ echo "<li name='course'>".$row['C_Code']."<input type='submit' …
  • Member Avatar
    SoMa_2

    Stopped Watching Determine value based on if condition

    I'm trying to determine the value of $level based on the keyword user provide using If statement but whatever was the user entry the value of $level always giving as …
  • Member Avatar
    SoMa_2

    Marked Solved Status for Determine value based on if condition

    I'm trying to determine the value of $level based on the keyword user provide using If statement but whatever was the user entry the value of $level always giving as …
  • Member Avatar
    SoMa_2

    Replied To a Post in set unique ID when adding row dynamically

    @ips What you recommend me to do instead of duplicating the rows by the way I will then store the data in the database after user finish his questions
  • Member Avatar
    SoMa_2

    Gave Reputation to lps in set unique ID when adding row dynamically

    As from your code, `newcell.innerHTML=table.rows[1].cells[i+1].innerHTML;` this will duplicate the elements from the first row where the id of the elements will be duplicated as well. These result in the code …
  • Member Avatar
    SoMa_2

    Created Determine value based on if condition

    I'm trying to determine the value of $level based on the keyword user provide using If statement but whatever was the user entry the value of $level always giving as …
  • Member Avatar
    SoMa_2

    Began Watching Determine value based on if condition

    I'm trying to determine the value of $level based on the keyword user provide using If statement but whatever was the user entry the value of $level always giving as …
  • Member Avatar
    SoMa_2

    Began Watching set unique ID when adding row dynamically

    I'm trying to addrow onclick button, and I need that new row would have the diffrent ids for "keyword" and "chapter" so I can pass the values of these two …
  • Member Avatar
    SoMa_2

    Stopped Watching set unique ID when adding row dynamically

    I'm trying to addrow onclick button, and I need that new row would have the diffrent ids for "keyword" and "chapter" so I can pass the values of these two …
  • Member Avatar
    SoMa_2

    Stopped Watching add row and using AJAX in each row

    I have this code to add row to my table function addRow(tableID){ var table=document.getElementById(tableID); var rowCount=table.rows.length; var row=table.insertRow(rowCount); var colCount=table.rows[0].cells.length; var cell1=row.insertCell(0); cell1.innerHTML= rowCount+1; for(var i=0;i<colCount;i++){ var newcell=row.insertCell(i+1); newcell.innerHTML=table.rows[0].cells[i+1].innerHTML; }} …
  • Member Avatar
    SoMa_2

    Began Watching add row and using AJAX in each row

    I have this code to add row to my table function addRow(tableID){ var table=document.getElementById(tableID); var rowCount=table.rows.length; var row=table.insertRow(rowCount); var colCount=table.rows[0].cells.length; var cell1=row.insertCell(0); cell1.innerHTML= rowCount+1; for(var i=0;i<colCount;i++){ var newcell=row.insertCell(i+1); newcell.innerHTML=table.rows[0].cells[i+1].innerHTML; }} …
  • Member Avatar
    SoMa_2

    Created set unique ID when adding row dynamically

    I'm trying to addrow onclick button, and I need that new row would have the diffrent ids for "keyword" and "chapter" so I can pass the values of these two …
  • Member Avatar
    SoMa_2

    Began Watching set unique ID when adding row dynamically

    I'm trying to addrow onclick button, and I need that new row would have the diffrent ids for "keyword" and "chapter" so I can pass the values of these two …
  • Member Avatar
    SoMa_2

    Stopped Watching add row and using AJAX in each row

    I have this code to add row to my table function addRow(tableID){ var table=document.getElementById(tableID); var rowCount=table.rows.length; var row=table.insertRow(rowCount); var colCount=table.rows[0].cells.length; var cell1=row.insertCell(0); cell1.innerHTML= rowCount+1; for(var i=0;i<colCount;i++){ var newcell=row.insertCell(i+1); newcell.innerHTML=table.rows[0].cells[i+1].innerHTML; }} …
  • Member Avatar
    SoMa_2

    Stopped Watching return value from If statement scope

    I'm trying to do something like this $level=0; if($a=="x"){ $level=1; } Else{ $level=2;} How I can use the new value of $level outside the scope of IF Statement
  • Member Avatar
    SoMa_2

    Created return value from If statement scope

    I'm trying to do something like this $level=0; if($a=="x"){ $level=1; } Else{ $level=2;} How I can use the new value of $level outside the scope of IF Statement
  • Member Avatar
    SoMa_2

    Began Watching return value from If statement scope

    I'm trying to do something like this $level=0; if($a=="x"){ $level=1; } Else{ $level=2;} How I can use the new value of $level outside the scope of IF Statement
  • Member Avatar
    SoMa_2

    Created add row and using AJAX in each row

    I have this code to add row to my table function addRow(tableID){ var table=document.getElementById(tableID); var rowCount=table.rows.length; var row=table.insertRow(rowCount); var colCount=table.rows[0].cells.length; var cell1=row.insertCell(0); cell1.innerHTML= rowCount+1; for(var i=0;i<colCount;i++){ var newcell=row.insertCell(i+1); newcell.innerHTML=table.rows[0].cells[i+1].innerHTML; }} …
  • Member Avatar
    SoMa_2

    Began Watching add row and using AJAX in each row

    I have this code to add row to my table function addRow(tableID){ var table=document.getElementById(tableID); var rowCount=table.rows.length; var row=table.insertRow(rowCount); var colCount=table.rows[0].cells.length; var cell1=row.insertCell(0); cell1.innerHTML= rowCount+1; for(var i=0;i<colCount;i++){ var newcell=row.insertCell(i+1); newcell.innerHTML=table.rows[0].cells[i+1].innerHTML; }} …
  • Member Avatar
    SoMa_2

    Stopped Watching post 2 values to php using ajax and receive 2 values

    I'm trying to create a webpage to help teacher determine CLO and PLO for exam questions First user will type the keyword in text box and select the chapter CLO() …
  • Member Avatar
    SoMa_2

    Marked Solved Status for while loop and session php

    I have images generated by while loop php based on how many course user have when user press on one of those images it will send him to that course …
  • Member Avatar
    SoMa_2

    Gave Reputation to diafol in while loop and session php

    You are most likely missing the session_start(); at the top of EVERY page, right after the open php tag (<?php). No hold on - had another look. You are overwriting …

The End.