Join 150,416 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,024 people online right now. Registration is fast and FREE... Join Now!
I'm completely new to this... If this is not the right forum, I apologize. I am using an ecommerce program at work, which is the backend of our website.
There are main default pages, and to add new pages, there is a form in which I directly add my content. Each page is made of 3 templates: top, mid, and bottom. The new content pages use a default mid template that had one tiny bit of code on it - which I accidentally deleted!
It was very short <---like this--> and it had the word "echo" and at least one "?" Apparently, all the template did, was tell the page to use my content in place of this empty template.
Since I deleted the code, none of my content pages are showing!! Is this a simple, basic common code???
I don't know what else is relevant, or if this is really the right forum for this.
He is wondering if you were working with a .php script, or a .shtml page - because the behavior is different in either case.
Based on your description, I think you removed the server side include tag from your template - do you have a backup anywhere you can restore from?
I came on board when this site was kind of laying around! It is way too easy to delete stuff. I make backups of the html code before I change anything, but I opened this template in error, and pasted something in instead of that tiny code... and saved it, before I realized it was the template.
Ouch.
Perhaps, there's a backup on the host server... but I can't contact them until tomorrow. I have no idea how that works. I definitely overrote the template. I think it may be a php. I can post screen shot of the backend area, maybe that can help you?
He is wondering if you were working with a .php script, or a .shtml page - because the behavior is different in either case.
Based on your description, I think you removed the server side include tag from your template - do you have a backup anywhere you can restore from?
I came on board when this site was kind of laying around! It is way too easy to delete stuff. I make backups of the html code before I change anything, but I opened this template in error, and pasted something in instead of that tiny code... and saved it, before I realized it was the template.
Ouch.
Perhaps, there's a backup on the host server... but I can't contact them until tomorrow. I have no idea how that works. I definitely overrote the template. I think it may be a php. I can post screen shot of the backend area, maybe that can help you?
I just looked at the software, I think it referred to a page called single_page.php ?
I came on board when this site was kind of laying around! It is way too easy to delete stuff. I make backups of the html code before I change anything, but I opened this template in error, and pasted something in instead of that tiny code... and saved it, before I realized it was the template.
Ouch.
In your editor (if you still have the file open), you should be able to issue Control-Z & backtrack your steps past the save, bringing up the text that you deleted.
I came on board when this site was kind of laying around! It is way too easy to delete stuff. I make backups of the html code before I change anything, but I opened this template in error, and pasted something in instead of that tiny code... and saved it, before I realized it was the template.
Ouch.
In your editor (if you still have the file open), you should be able to issue Control-Z & backtrack your steps past the save, bringing up the text that you deleted.
You are really nice to be helping me. As I replied to girasquid, above... I saved it and overwrote the file... it took 2 seconds to screw up my website! The software people will easily be able to tell me what it said, but they are going to charge 3 arms, 6 legs, and my firstborn to tell me, so I figured if it was simple, maybe someone could make a suggestion. of what to try??