Jump to content

tml

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tml's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. well its for my picture page, so instead of have 50 links on left side, then i have like 4 again etc: picture: 2007 (click to show under menu's) <a href="jan.php>jan</a> <a href="peter.php>peter</a> 2008 2009 sry if its the wrong place, after what i have find out so fair, its some <select> but how it works im not sure on.
  2. i need a simple drop down menu system, i dont need info from mysql or other database just normal html links like this. picture: 2007 2008 when i click 2007 then it have to be shown like this picture: 2007 jan feb 2008 if u know what i mean i be happy
  3. i cant find out how to make the link proper i have the same code to open side=billeder and that works so my problem is how to put the next in same link i guess i where index.php?side=billeder?id=kira but wont work code: elseif ($_GET['side'] == billeder) { ?> <div id="billedmenu"> <a href="index.php?side=billeder?id=kira">kira</a> </div> <div id="billedindhold" class="clear"> <?php if ($_GET['id'] == kira)
  4. my problem is, i cant put my div into my script without break it and then rest wont work... <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>vores hjemmeside</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div id="side"> <div id="hoved"><img src="billed/banner.jpg"> </div> <div id="links"> <center> <a href="index.php">Forside</a> <a href="index.php?side=os">os</a> <a href="index.php?side=kira">kira</a> <a href="index.php?side=billeder">billeder</a> </center> </div> <div id="indhold"> <?php if ($_GET['side'] == os) { echo "os"; //indhold af side 1 } elseif ($_GET['side'] == kira) { //indhold af side 2 } elseif ($_GET['side'] == billeder) { // here are the problem when i try inset this div <div id="billedmenu"> <a href="index.php?side=kira">kira</a> </div> <div id="billedindhold" class="clear"> mysql_connect("localhost", "xx", "xx") or die(mysql_error()); mysql_select_db("xx") or die(mysql_error()); $query = mysql_query("SELECT * FROM billed ORDER BY id DESC"); while($row = mysql_fetch_assoc($query)) { echo "<a href='{$row["sti"]}'><img src='{$row["lille"]}' class='foto' border='0' /></a>"; } </div> } else echo "hej"; //forside ?> </div> </body> </html>
  5. i have a code that works to get a picture from my db: echo "<img src='" . $row["sti"] . "' class='foto'/>"; my problem are to make it a link so it open the same picture but in larger view, i have tryid abit and this are what i could think of so fair echo "<a href='" . $row["stilarge"] . "'><img src='" . $row["sti"] . "' class='foto'/>"</a>; but i wont work, i have 3 table, 1 id one, one url like pic/1.jpg(sti) and the last for the large pic (stilarge) so all i need is the link where it select same id but the large picture. needs to open in same window not like target_new
  6. thx alot for that explanation did help alot
  7. hi i cant get my picture from my database, my picture are uploaded at billed/1.jpg and my database have the text in it as billed/1.jpg under id 1 its connected here's my code $query = mysql_query("SELECT * FROM billed"); while($row = mysql_fetch_assoc($query)) { echo <img scr="$row["id"]" . " class="foto"/>"<br/>"; } ?> can u tell me whats wrong?
  8. that worked, have been looking for this, for several days now, i thank you so much. i been told if u use mysql then u should use php and not asp, and since im going to set up my own server then linux are free and windows not hehe thx
  9. i did put the following in my php document i tryid open, then it just report with some text. like i said im new so i just need to copy and paste hehe, but are the not suppose to be a opening line like <?php or something? but thx for u helping if ($_GET['id'] == 1) { <?php echo "hej side 1"; ?> //Display info for ID 1 } if ($_GET['id'] == 2) { <?php echo "hej side 2"; ?> //Display info for ID 2 }
  10. i can try... something like this: i want to make my layout in index.php so my menu are there on all pages like home href=index.php news href=index.php?id1 something els href=index.php?id2 then i make the code so rest only be on the page i want (index.php) index hej index.php?id1 new index.php?id2 something and keep making new sites without change menu and layout. i know i can do it with include page's but i just want one dokument i know the code in asp if u know anything about that. <% id=Request.QueryString("id"): if id="" then id=0 Select case id case 0 ' forside %> page index <% case 1 ' default.asp2?id=1 %> page 1 <% case 2 ' default.asp2?id=2 %> <% case 3 ' default.asp2?id=3 %> <% case else ' alle andre %> <% End Select %> and link would be href=default.asp2?id=1 and so
  11. HI, i where wondering how to make more pages in one like. index.php?page=1 or something like that... if any can help me with the code i be more than happy. im new to php. so i would like the code so i can just copy and paste, and i would like to know how my link should be etc. <a href index.php?page=1....
  12. HI, i where wondering how to make more pages in one like. index.php?page=1 or something like that... if any can help me with the code i be more than happy. im new to php. so i would like the code so i can just copy and paste, and i would like to know how my link should be etc. <a href index.php?page=1....
  13. tml

    all in one

    HI, i where wondering how to make more pages in one like. index.php?page=1 or something like that... if any can help me with the code i be more than happy. im new to php. so i would like the code so i can just copy and paste, and i would like to know how my link should be etc. <a href index.php?page=1....
×
×
  • 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.