Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Would like to make an output with links... Now I'm stuck

    My site is not online yet. But i have bought the domain filmbladet.se.
    Now the problem.

    I have links from my site who goes to other sites. I would like to make an output for the link.

    Link <-- I click the link now.

    I go from filmbladet.se to codingforums.com. When i have reach to codingforums.com I want the text be like filmbladet?p=output?film?id=exampleidnumber in the browser and not codingforums.com. Do you get it? If not you can go to existenz.se and click on the links and you will be sure what i mean.

    The problem is i have stuck. I don't know how to make an output.

    Index.php
    PHP Code:
    <?php
    include "scripts files/db_x.php";
    error_reporting(E_ALL E_NOTICE E_WARNING);
    switch(
    $_GET['p']) {

    case 
    'filmer';
    $topic ' Filmer';
    $page 'scripts files/filmer.php';
    break;

    case 
    'tv';
    $topic ' Tv';
    $page 'scripts files/tv.php';
    break;

    case 
    'kandisar';
    $topic ' Kändisar';
    $page 'scripts files/kandisar.php';
    break;

    case 
    'pag';
    $topic ' På G';
    $page 'scripts files/pag.php';
    break;

    case 
    'ft';
    $topic ' Filmtipset';
    $page 'scripts files/ft.php';
    break;

    case 
    'investera';
    $topic ' Investera';
    $page 'scripts files/investera.php';
    break;

    case 
    'kontakt';
    $topic ' Kontakt';
    $page 'scripts files/kontakt.php';
    break;

    case 
    'addnews';
    $topic ' Lägg till nyhet';
    $page 'scripts files/addnews.php';
    break;

    case 
    'to';
    $topic ' Tipsa oss';
    $page 'scripts files/to.php';
    break;

    case 
    'donera';
    $topic ' Donera';
    $page 'scripts files/donera.php';
    break;

    case 
    'output';
    $topic ' Filmbladet';
    $page 'scripts files/output.php';
    break;

    default;
    $topic ' Filmer';
    $page 'scripts files/filmer.php';
    break;

    }
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
    <link rel="shortcut icon" href=".//homepage-pictures/favicon.ico">
    <meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
    <meta http-equiv="Content-Language" content="sv" />
    <link href="style files/style.css" rel="stylesheet" type="text/css">
    <title><?php echo"Filmbladet -"; echo $topic?></title>
    </head>
    <body>
    <font bgcolor="red"></font>
    <form>
    <input type="hidden" name="tja">
    </form>
    <div id="logo">
    <font size="7" face="Cooper Std">Filmbladet.se</font><br>
    <font size="5" face="Myriad Pro">Senaste nyheterna inom film.</font><br>
    </div>

    <div id="menu">
    &nbsp;&nbsp;<a href="?p=filmer"><font color="white">Filmer</font></a> |
    <a href="?p=tv"><font color="white">Tv</font></a> |
    <a href="?p=kandisar"><font color="white">Kändisar</font></a> |
    <a href="?p=pag"><font color="white">På G</font></a> |
    <a href="?p=ft"><font color="white">Filmtipset</font></a> |
    <a href="?p=investera"><font color="white">Investera i Filmprojekt</font></a> |
    <a href="?p=an"><font color="white">Jobbannonser</font></a> |
    <a href="?p=ks"><font color="white">Köp/Sälj</font></a> |
    <a href="?p=mf"><font color="white">Manus Feedback</font></a> |
    <a href="?p=podcast"><font color="white">Podcast</font></a>
    </div>

    <div id="senastew">
    <center><font size="4" face="Cooper Std" color="white"><u>Samarbetspartners</u></font><br>
    <a href="http://filmcafe.se" style="color: gold; font-size: 20px;">Filmcafe</a><br>
    <a href="http://moviezine.se" style="color: gold; font-size: 20px;">MovieZine</a><br>
    <a href="http://voodoofilm.org" style="color: gold; font-size: 20px;">VoodooFilm</a><br>
    <a href="http://film.nu" style="color: gold; font-size: 20px;">Film</a>
    </center>
    </div>

    <div id="trailerw">
    <center><font size="4" face="Cooper Std" color="white"><u>Trailers</u></font><br><br>
        <object width="220" height="308"><param name="movie" 
            value="http://www.traileraddict.com/emd/74271"></param><param name="allowscriptaccess" 
                value="always"><param name="wmode" value="transparent"></param><param name="allowFullScreen" 
                    value="true"></param><embed src="http://www.traileraddict.com/emd/74271" type="application/x-shockwave-flash" allowscriptaccess="always" wmode="transparent" width="308" height="220" allowFullScreen="true"></embed></object>
    </center>
    </div>

    <div id="content">
    <?php
    include $page;
    ?>
    </div>

    <div id="footer"><br><br>
    <a href="?p=kontakt">Kontakta oss </a> | <a href="?p=donera">Stöd oss </a> | <a href="?p=to">Tipsa oss</a><br>
    Copyrights Filmbladet - All rights reserved. 2013.<br><br>

    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/sv_SE/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    <div class="fb-like" data-href="https://www.facebook.com/Filmbladet?ref=hl" data-send="true" data-layout="button_count" data-width="450" data-show-faces="false"></div>
    </div>
    </body>
    </html>
    filmer.php <-- The links are here. kalla is the link from the database.
    PHP Code:
    <h1 style="width: 100%; height: 40px; background-color: #F6F1F1;">Senaste om filmnyheter</h1> 
    <?php
    $daten 
    date("Y-m-d"); 
        
    $x mysql_query("SELECT title, forfattare, date, id, kalla, klick FROM filmer where date = '$daten'"); 

    while(
    $rest mysql_fetch_array($x)){
        echo 
    "<a href='";
            echo 
    $rest['kalla'];
                echo 
    "' target='_blank'><h1 style='height 30px;'>"
                    echo 
    $rest['title']; 
                        echo 
    "</h2></a>"
                    echo 
    "<h3 style='height 30px; background-color: 
                    #E3DCDF; color: black; width: 100%;'>"

                echo 
    "Tillagd av: ";
            echo 
    $rest['forfattare'];
            

    echo 
    " Datum: "
        echo 
    $rest['date'];

        echo 
    " Klick: "
            echo 
    $rest['klick']; 
                echo 
    "</h3>";}
            
    ?>
    output.php
    PHP Code:
    <iframe style="display:block" src="scripts files/filmer.php" 
            marginheight="0" vspace="0" hspace="0" frameborder="0" width="100%" height="100%" scrolling="auto">
                <a href="<?php echo $reset['id']; ?>">Klicka</a>
    </iframe>

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,763
    Thanks
    23
    Thanked 548 Times in 547 Posts
    Where does your output.php code go. I see no reference to it in the two php files.

    Not sure if vspace="0" hspace="0" is legal or do anything.
    Evolution - The non-random survival of random variants.

  • #3
    New to the CF scene
    Join Date
    May 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sunfighter View Post
    Where does your output.php code go. I see no reference to it in the two php files.

    Not sure if vspace="0" hspace="0" is legal or do anything.
    script files/output.php.

    or

    localhost/script files/output.php

  • #4
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,763
    Thanks
    23
    Thanked 548 Times in 547 Posts
    Not what I meant. I see in Index.php where you call filmer.php using this code
    Code:
    <?php
    include $page;
    ?>
    in the HTML section. But no where do I see a call to output.php in either file the Index.php file nor the filmer.php file.

    So where do you call this file?
    Evolution - The non-random survival of random variants.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •