Wrox Programmer Forums
|
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0
This is the forum to discuss the Wrox book Beginning PHP5, Apache, and MySQL Web Development by Elizabeth Naramore, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Michael K. Glass; ISBN: 9780764579660
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 20th, 2006, 11:55 PM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Deleting a Record pg. 178 Chapter 6

Hi there,
I'm a noob in to php/mysql, been running through some examples in the book using a windows server (displaying php). And hit a snag on this line

<a href="<?php echo $_SERVER['REQUEST_URI']; ?>delete.php&do=1">yes</a>

I have googled and searched for posts from other people with the same problem. None of them posted a possible reason why it churns out with a 404 error, let alone fix it.

I have tried also:

    <a href="<?php echo $_server['PHP_SELF']; ?>delete.php&do=1">yes</a>

Now I'm guessing it might have something to do with security restrictions with the Plesk set-up. Unfortunately the server administrator weren't too keen in helping. Any alternatives I can try to get the record deleted?
btw hes running php4.3.10

Code:
  <p align="center" style="color:#FF0000">
    Are you sure you want to delete this <?php 
    echo $_GET['type']; ?>?<br>
    <a href="<?php echo $_SERVER['REQUEST_URI']; ?>delete.php&do=1">yes</a> 
    or <a href="index.php">Index</a>
  </p>
 
Old February 21st, 2006, 12:12 AM
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I can also use Myphpadmin to update the database, it
Code:
<a href="<?php echo $_SERVER['REQUEST_URI']; ?>delete.php&do=1">yes</a>
just doesnt want to work on my browser - Mozilla, IE6.0

 
Old March 13th, 2006, 02:26 PM
Authorized User
 
Join Date: Mar 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

change delete.php&do=1 to delete.php?do=1 instead. It is because of the ampersand after .php and do. It should be a ? instead and then an ampersand therafter each url parameter






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems In Deleting Record nkrust ASP.NET 1.0 and 1.1 Professional 2 January 12th, 2007 11:52 PM
Deleting All Record In A Table McDiddy Access VBA 3 January 10th, 2007 09:20 AM
chapter 6 deleting a record problem mustafa BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 November 6th, 2006 12:08 PM
Deleting A Record sirmilt BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 1 July 31st, 2006 07:12 PM
updating and deleting record PinkyCat Classic ASP Databases 4 March 16th, 2005 05:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.