Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 21st, 2007, 08:16 PM
Registered User
 
Join Date: Mar 2007
Location: , , USA.
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

Reply With Quote
  #2 (permalink)  
Old March 21st, 2007, 08:30 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

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:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
Reply With Quote
  #3 (permalink)  
Old March 21st, 2007, 09:04 PM
Registered User
 
Join Date: Mar 2007
Location: , , USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Reply With Quote
  #4 (permalink)  
Old March 22nd, 2007, 10:55 PM
Friend of Wrox
 
Join Date: Jul 2003
Location: South San Francisco, CA, USA.
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post
Default

Anne,
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.
John

Reply With Quote
  #5 (permalink)  
Old March 23rd, 2007, 08:46 AM
Registered User
 
Join Date: Mar 2007
Location: , , USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.