Jump to content

Dilshad34

Members
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    London

Dilshad34's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi Guys I have dynamic gallery page were retrive the image from file, I Have some error which is not display the images, any one able to give me some tips where the error standard please? May thanks Main file contains: page files and gallery file index.php mainFile/index.php mainFile/gallery file pages/gallery.php gallery.php index.php
  2. Ok It works now many thanks there was two .. remove one . now display the image. Many thanks
  3. Hi Guru I have tried this way week ago display the location of the image in the browese but the actual image not shown, I can make page screen if you know what I means. <img src="../img/eia.jpg" width="400" height="200" title="Erbil Airport" style="float:right; padding-right:10px;"/>
  4. Hi Gurus Many thanks that help me a lot, airport.php is in the file called page with 9 dynamic pages. If I put the eia.jpg in same file where dynamic pages it will display the image with text of airport page. I prefer to be saparate from the pages because is not one image, as you know have about 10 pages most of them have different image. What you advise me if I want move the images to different file, sorry my english grammar not very well. Thanks
  5. Many thanks for your replies. Administrators, I am brand new with php and have not enough experiences creat dynamic website, however I try to give some more details to all understand me more. Make very basic have my index page as small template, what I try to do, display my other dynamic pages in to index page, it will works change the pages with the text only not display the images in the dynamic page.... The index.php is in manin file and the dynamic pages in page file, I attached the index file and one page of dynamic pages which is airport, as an examples. The index page is to larg and have tried to past here but somehow was to big no enough space therefore I attach my post index.php airport.php
  6. Hi Thanks all for replied me, yes that is my code. <?php $pages_dir = 'pages'; // declare an array which pages and is the folder name were all dynamic page located if(!empty($_GET['p'])){ $pages = scandir($pages_dir, 0); // this read the content unset($pages[0], $pages[1]); // this line will delete or removed . and .. $p = $_GET['p']; if(in_array($p.'.php', $pages)){ // seqarch for all page ended with .php and second argument all pages $page include($pages_dir.'/'.$p.'.php'); }else{ echo '<em style="color:red;"><b>Sorry, page not found in the directory..</b></em>'; // if the page is not exist } }else{ include($pages_dir.'/home.php'); // default page } ?>
  7. Hi everyone I am new with php have one problem with dynamic page. I have create small website with a few dynamic page when I click to the dynamic page it works display all text but not the images anyone have an idea or some tips to discuss with, PLZ. Many thanks
×
×
  • 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.