Advertisement
Juninhown02

Notice

Jul 14th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.84 KB | None | 0 0
  1. Notice: Use of undefined constant usuarios - assumed 'usuarios' in /var/www/html/portalValle/index.php on line 19
  2.  
  3. ==================== CODIGO DA INDEX.PHP =========================================
  4.  
  5. <?php
  6.   function __autoload($class_name){
  7.     require_once 'classes/'.$class_name .'.php';
  8.   }
  9. ?>
  10.  
  11. <!DOCTYPE html>
  12. <html lang="en">
  13. <head>
  14.   <title>Bootstrap Example</title>
  15.   <meta charset="utf-8">
  16.   <meta name="viewport" content="width=device-width, initial-scale=1">
  17.   <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
  18.   <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  19.   <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
  20. </head>
  21. <body>
  22.   <?php
  23.     $usuarios = new Usuarios();  //ESTA É A LINHA 19
  24.   ?>
  25.  
  26.  
  27. <div class="container">
  28.     <div class="row">
  29.      <form role="form">
  30.          <div class="form-group col-md-4">
  31.             <label for="nome">Nome</label>
  32.             <input type="nome" class="form-control" id="nome" name="nome">
  33.           </div>
  34.           <div class="form-group col-md-4">
  35.             <label for="email">Email address:</label>
  36.             <input type="email" class="form-control" id="email" name="email">
  37.           </div>
  38.           <div class="col-md-4" style="padding-top:25px;">
  39.           <button type="submit" class="btn btn-default">Cadastrar</button>
  40.             </div>
  41.     </form>
  42. </div>
  43.  
  44.   <h2>Basic Table</h2>
  45.   <p>The .table class adds basic styling (light padding and only horizontal dividers) to a table:</p>            
  46.   <table class="table">
  47.     <thead>
  48.       <tr>
  49.         <th>ID</th>
  50.         <th>NOME</th>
  51.         <th>Email</th>
  52.       </tr>
  53.     </thead>
  54.     <tbody>
  55.       <tr>
  56.         <td>1</td>
  57.         <td>Doe</td>
  58.         <td>john@example.com</td>
  59.       </tr>
  60.      
  61.     </tbody>
  62.   </table>
  63. </div>
  64.  
  65. </body>
  66. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement