Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Carbs

  • Rank
  1. Larry, it's more that I don't know what I'm doing, but I'll give that a go. Thanks.
  2. Hey bud, the only thing I can see is that you have some whitespace in your distance input name and avg. price value. Not sure if that's a big deal though.
  3. Hi all, After working through the edit_user script in chapter ten, I thought I would like to try my hand at retrieving user information through a select dropdown. As I will have ~5000 clients, working through the list manually would be something of a chore. I came up with the following; $query = "SELECT on_programme, last_name, first_name, middle_name, id FROM constant_client WHERE on_programme=1 "; $result = mysqli_query($conn, $query); echo '<form action="selected_client.php" method="get"> <fieldset>'; echo '<p><label for="current_clients">Select Clien
  4. Larry, you're completely correct. I thought the whitespace would be ignored, so just added those to make it more readable for me, but there you go. Thank you very much for following up!
  5. Yep, as long as I navigate to the page using the edit link from view_users.php. Otherwise opening that page directly I imagine there is nothing to "get" yet.
  6. Hi Larry, First up, great book, I'm really enjoying working through it. I'm having an issue with editing a user as per chapter 10, code below; <?php echo '<h1>Edit a User</h1>'; if ((isset($_GET['id'])) && (is_numeric($_GET['id']))) { $id = $_GET['id']; } elseif ((isset($_POST['id'])) && (is_numeric($_POST['id']))) { $id = $_POST['id']; } else { # no valid id, kill the script echo '<p>Yo this page has been accessed in error</p>'; exit(); } require("connect.php"); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $errors = [];
  • Create New...