Jump to content
php.lv forumi

dynamic page ar mysql


sestais

Recommended Posts

Problēma tāda ka man īsti nestrāda šis skripts un es nezinu kas par vainu! Viņam vajadzētu pēc uzspiešanas pa linku parmest uz norādīto failu un to ko rādija sakumā paslēpt lai nerādas ,bet viņš parāda to info kas atrodas norādītajos failos un parāda arī to kas bija sākumā!!!! Īsti nesaprotu kāpēc tā ir varbūt kāds var palīdzēt!

 

Bildē ir redzems kas pa problēmu. Kad uzspiežu pa vienu no bilēm parādās augšā teksts ar visām bildēm bet vajadzētu parādīties vnk tekstam bez bildēm!

1271518343.gif

 

<style>
#services {
  	position:relative;
font-size:15px;
overflow:hidden;
   padding-left: 45px;
}
#services .window {
   background-image: url(./Images/Services/window.png);
background-repeat: no-repeat;
background-position: center center;
width:256px;
height:261px;
}
#services .rock {
   background-image: url(./Images/Services/rock.png);
background-repeat: no-repeat;
background-position: center center;
width:256px;
height:261px;
}</style>
<? include "./Language/language-swe.php"; ?>

<?php

$action = $_GET['ser'];
$actions_array = array('window','rock');

if(!$action || !in_array($action,$actions_array)){

   }else {
if($action == 'window'){
	include "./Admin/Service/posted_services_information_windows.php"; //sitas parada tekstu "windows" teksta vieta ir paredzēts ielikt skriptu!
   }
    if($action == 'rock'){
	include "./Admin/Service/posted_services_information_rock.php"; //Šitas parāda tekstu "rock" teksta vieta ir paredzēts ielikt skriptu!

        }}
//parāda 2 bildes ar kurām dodas uz linkiem norādītajiem!
echo "<div id=\"services\"><table>\n";
echo "<tr><td><a href=\"./1.php?ser=window\"><div class=\"window\"></div>windows</a></td>\n";
echo "<td><a href=\"./1.php?ser=rock\"><div class=\"rock\"></div></a>rock</td></tr>\n";
echo "</table></div>\n";
?>

Link to comment
Share on other sites

die;

ieliec aiz include, ja negribi, lai neko vairs nerāda.

if($action == 'window'){
               include "./Admin/Service/posted_services_information_windows.php"; //sitas parada tekstu "windows" teksta vieta ir paredzēts ielikt skriptu!
          }
    elseif($action == 'rock'){
               include "./Admin/Service/posted_services_information_rock.php"; //Šitas parāda tekstu "rock" teksta vieta ir paredzēts ielikt skriptu!

        }else{
//parāda 2 bildes ar kurām dodas uz linkiem norādītajiem!
echo "<div id=\"services\"><table>\n";
echo "<tr><td><a href=\"./1.php?ser=window\"><div class=\"window\"></div>windows</a></td>\n";
echo "<td><a href=\"./1.php?ser=rock\"><div class=\"rock\"></div></a>rock</td></tr>\n";
echo "</table></div>\n";
}}?>

šadi var vēl mēģināt

Edited by waplet
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...