Jump to content

Cooley

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Cooley

  1. Hi,

    I am looking for a working PayFast form example for processing payment for a product. I keep on getting a mismatch with the signature. I would like to know how to generate a signature and a passphase.

    Thank you in advanced.

  2. Hi,

    I have trouble with the following code, the login_success always returns false 

    Quote

    require_once('database_credentials.php');
      $conn = new mysqli($db_servername,$db_username,$db_password,$db_name);

    $login_success = false;

    if(isset($_POST['email']) && isset($_POST['password'])){


                        if($conn->connect_error){
        
                                die ("Connection failed : ".$conn->connect_error);
        
        
                        }else {


                            $sql = "SELECT * FROM users WHERE email_address = ' ".$_POST['email']." ' AND password = '".$_POST['password']."' ";
                            $result = $conn->query($sql);
                            
                            if($result){
                                
                                $login_success = true;
                            
                                
                            }else{
                                
                                $login_success = false;
                                echo 'error '.mysqli_error($conn);
                                
                            }

                        }

    }

     

     

  3. On page 1 you will have to put your table inside a div. For example

    <div id="content">// Your table goes here</div>

    Then your JQuery will be

    $.get("http://mudsaf.info/games/index.php?pageid=2", function(responceData){$("#content").html(responceData);});

    responceData will be the data you echo-ed in your php script after you have tested that $_GET['pageid'] is equal to 2. You PHP script will have to be on the the index.php page but you can put it in a different page and and then change the URL to point to that page. I hope this way of sending an AJAX request is much more easier to digest.

  4. Hello all I would like to know how to register a click event in JQuery mobile. I had this fully working DOM based game which has a start button to start game play. All I did for it not work is add references to JQuery mobile CSS and Javascript, and the following data-role attributes: page,header,content, and footer. After that the start button register but all of the which suppose to run on page load works.

×
×
  • Create New...