Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases 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 March 21st, 2007, 08:16 PM
Registered User
Join Date: Mar 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can a code be corrupted?

I've been working with Beginning PHP5, Apache, MySQL Web Development and I'm wondering if the code can somehow be corrupted. Here's what seems to be happening to me:

I will create the documents (in this case it's an HTML form that works with a php document). Everything works just fine. THEN, I will try changing something just to experiment, which of course, makes it not work. So, I will change the document(s) back to their original code/html and now it doesn't work! This is just one line of code. The same thing happened when I used the sample code from WROX.

Please, can anyone explain what might be going on. (I have carefully gone over everything, I swear!)

Thank you, Anne

Old March 21st, 2007, 08:30 PM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

There is a difference between corruption and coding errors. The latter is common the former is not.

Is php throwing you an error? What is your code telling you?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
================================================== =========
Why can't Programmers, program??
================================================== =========
Old March 21st, 2007, 09:04 PM
Registered User
Join Date: Mar 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

I'll be honest, I know I've made errors and I've found them! But, I have gone over and over this and not been able to find anything. But, I'll keep trying. I know it's easy to miss just about anything from quotes to semi-colons. I just did a second test by using the downloaded WROX files, making a change, changing it back, and it worked fine. So, it must be me!

Thank you for the input. Anne

Old March 22nd, 2007, 10:55 PM
Friend of Wrox
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post

For us to help you, we need to see the codes you changed.
It might be worth it and also may give you some tips
to omit those kind of errors. As an expample,
adding comments on your change would be a good practice.
I hope this helps.

Old March 23rd, 2007, 08:46 AM
Registered User
Join Date: Mar 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

First, I really appreciate getting two replies to my question. I'm sure it's obvious that I'm in the process of learning and I know you have all heard some version of these things before. So, it's nice that you were able to take a big sigh and explain it once again.

I have been trying to learn how to add a database to a website I'm working on for a customer and I'm feeling a lot of self-induced pressure. I think there are times when I need to take a break and get away from coding (and the computer!) because after a while I just cannot see my errors, no matter how carefully I think I'm proofing.

I finally spotted my error and I'm truly embarrassed to say that what I did wrong was name the form "form3.html" instead of "form3.php." In an earlier tutorial, it actually was "form1.html" and I just continued that way. I even saw that the other "php" file was looking for "form3.php"!!! But, I was tired and it just didn't register.

I realize this is probably what you suspected and the only reason I'm providing such a lengthy response is that I hope maybe someone else who is new will see it and take a BREAK.

Thank you again, Anne

Similar Threads
Thread Thread Starter Forum Replies Last Post
Corrupted mdb file edcaru Access 4 April 19th, 2012 10:38 AM
DAPs Corrupted?? JpJoe Access 0 January 10th, 2005 09:45 AM
Repairing Corrupted Database in Code owain SQL Language 1 June 30th, 2003 05:53 AM
Repairing Corrupted Database in Code owain Access 0 June 30th, 2003 04:04 AM
Corrupted cookies? Jeff Mason Forum and Wrox.com Feedback 0 June 16th, 2003 07:27 PM

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