Jump to content

PHP page that refuses to show text on random pages


6629stretch

Recommended Posts

Hi Guys,

I wonder if you can help me before I go crazy? I have the task of updating a site by adding text to every page, at the moment there are three pages on the live website that show both images and text, I am to update the remaining 6 with text to go with the images.... I thought this was all fine and dandy, added the text in, checked the code, uploaded to the FTP site and nothing, only 1 page worked. I am stuck as I have used the same method to add text to all the pages yet those elusive pages refuse to show text! This is driving me crazy and i am hoping that one of you guys has come across this before and will be able to highlight a missing piece of code or have a solution?

 

I do appreciate your time and any suggestions that you have. I have attached the page below. Thanks guys!

 

[attachment deleted by admin]

Use <?php, not <?. Remove unnecessary whitespace.

 

Though unrelated, I would also change

$mid = $_GET[mid];

to something like

if(!is_numeric($_GET[mid]) || $_GET[mid] > 9 || $_GET[mid] < 1){
$mid = 1;
}
else
{
$mid = $_GET[mid];
}

Dear Gighalen,

 

Thank you for taking the time to look at my code.. Sadly I am still having the same trouble. The pages that are visable on the web are as follows:

 

http://magellanworldpackaging.com/packagingmaterials-one.php?mid=1 -- this one shows text and images

http://magellanworldpackaging.com/packagingmaterials-one.php?mid=2 -- this one shows images - no text even though there is in the code.

http://magellanworldpackaging.com/packagingmaterials-one.php?mid=3 -- shows text and images

http://magellanworldpackaging.com/packagingmaterials-one.php?mid=4 -- this one shows images but allows me to show text - sadly on this one that does work I have no text (typical!)

http://magellanworldpackaging.com/packagingmaterials-one.php?mid=5 -- this one shows text and images

http://magellanworldpackaging.com/packagingmaterials-one.php?mid=6 -- this one only shows images (text in code)

http://magellanworldpackaging.com/packagingmaterials-one.php?mid=7 -- this one only shows images (text in code)

http://magellanworldpackaging.com/packagingmaterials-one.php?mid=8 -- this one only shows images (text in code)

http://magellanworldpackaging.com/packagingmaterials-one.php?mid=9 -- this one shows text and images

 

Am I being a nutter? I have had a look at the server - this is hosted with pro-hosting and the original designer of the site has disappeared, but it does look like SQL has been used too, does this help in any way?

 

Thank you again for your time, I really really appreciate any suggestions!!

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.