Jump to content

john_jack

Members
  • Posts

    77
  • Joined

  • Last visited

Posts posted by john_jack

  1. thank you for your response ,

    i am actualy folowing the tutorial mentioned above ,but heres the code :

     

    the html page :

     

    <!DOCTYPE html>
    <html lang="en">
    <title>Customers</title>
    <link rel="stylesheet" href= "http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
    <script src="http://www.w3schools.com/appml/2.0.3/appml.js"></script>
    <body>
     
    <div class="container" appml-data="appml.php?model=customers">
    <h1>Customers</h1>
    <table class="table table-striped table-bordered">
      <tr>
        <th>Customer</th>
        <th>City</th>
        <th>Country</th>
    </tr>
      <tr appml-repeat="records">
        <td>{{CustomerName}}</td>
        <td>{{City}}</td>
        <td>{{Country}}</td>
    </tr>
    </table>
    </div>
     
    </body>
     
    </html>
    

     

    customer.js code :

     

    {
    "rowsperpage" : 10,
    "database" : {
        "connection" : "mydatabase",
        "sql" : "SELECT * FROM Customers",
        "orderby" : "CustomerName"
    }
    }

     

    appml_config.php

     

    <?php echo("Access Forbidden");exit();?>
    {
    "dateformat" : "yyyy-mm-dd",
    "databases" : [{
        "connection" : "mydatabase",
        "host" : "localhost",
        "dbname" : "test",
        "username" : "root2",
        "password" : "toor" 
    }]
     
    }
    

    also using the appml.php 2.0.3 the one available for download on the TUtorial

×
×
  • Create New...