static function saveUser() { // these are just tests lines $user = new User("joshbjones", "Josh"); $un = $user->get_username(); $fn = $user->get_firstname(); $username = "******" . $un . "</h2><br>\r\n\t\t\t\t\t\t\t<h2>First Name: " . $fn . "</h2>"; echo $username; // Connect to the MySQL Server include "connect.inc"; $query = "INSERT INTO user\r\n\t\t\t\t\t\t(username, First_Name)\r\n\t\t\t\t\t\tVALUES ('{$un}', '{$fn}')"; $result = mysqli_query($cxn, $query) or die("Couldn't execute query."); }
<div id="left_content"> <h1>About</h1> <table id="editleft"> <thead> <tr> <th>Options</th> <th>Information</th> <th>Change</th> </tr> </thead> <tbody> <tr> <td><strong>First name</strong></td> <td><?php $user->get_firstname($id); ?> </td> <td> <button class="btn editbtn">Edit</button> </td> </tr> <tr> <td><strong>Last name</strong></td> <td><?php $user->get_lastname($id); ?> </td> <td><button class="btn editbtn">Edit</button></td> </tr> <tr>