Jump to content

dossie

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dossie's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Took some time but found it out, it had to do with divs.
  2. Hi, thanks for reading this! I need some help with my pagination, maybe the answer is very simple but I've tried a lot of coding including work with tables but it didn't work It's about my page (in Dutch) where I show images of collections. A page looks like this: http://www.verzamelaars.net/mobach/index.php Now I want the name of the collector under the image, but every time I get this: http://www.verzamelaars.net/mobach/index2.php The code I use now is: <?php while($row = mysql_fetch_array($result)) { echo "<table><tr><td><a href='{$row['mijnlink']}'><img src={$row['thumb']} hspace=1 vspace=4></a></td></tr>"; echo "<tr><td><a href='{$row['verzamelaarlink']}'>{$row['verzamelaar']}</a></td></tr></table>"; } ?> I've been playing with the table but so far no good, hope you can help me with this! Kind regards, Arjen van Dorsten
  3. And to be a little bit more specific: Before I said: // this include doesn't work include('../dbaseincludes/metainclude.php'); ..That's not totally correct, the include does work for the css, the divs and all the written content but not for the dbase fields.. The include looks like this: <title>{$rij['name']} in {$rij['town']}</title> <meta http-equiv=content-type content=text/html; charset=iso-8859-1/> <meta name=description content={$rij['name']} in {$rij['town']}./> <meta name=robots content=index, follow /> <meta name=author content=vandorsten /> <meta name=design content=vandorsten /> <meta name=copyright content=vandorsten /> <meta name=language content=Dutch /> <meta name=country content=The Netherlands /> <meta name=revisit-after content=7 /> <meta name=keywords content={$rij['name']},{$rij['town']}/> <link href=/default.css rel=stylesheet type=text/css /> </head> <body> <div id=logo> </div> <div id=page> <div id=content> <div id=welcome>
  4. Hi, i'm busy with a site which shows information out of a dbase. No problem with making a connection to the dbase or getting the information from the dbase to the site but it goes wrong when i try to get the fields into an include. I want to break my page into different includes so I might be able to change text for all pages at once. Does anybode know where I go wrong? <? include('../dbaseincludes/connectioninclude.php'); include('../dbaseincludes/doctypeinclude.php'); $query = 'SELECT * FROM affiliates WHERE id="4"'; if ($result = mysql_query($query)){ echo ""; } else{ echo "Something went wrong, possibly you don't see all information"; exit; } while ($rij = mysql_fetch_array($result)) { // this include doesn't work include('../dbaseincludes/metainclude.php'); // this echo gives the good information but when I try to get it into an include it doesn't work echo "{$rij['town']}"; // these things I need in 3 different includes echo "<h4>{$rij['name']}</h4>"; echo "adress: {$rij['adress']}<br>"; echo "website: <a href={$rij['siteUrl']} target=_blank>{$rij['name']}</a>"; echo "<br><br>"; echo "<h4>Opinion</h4>"; echo "<a href={$rij['siteUrl']} target=_blank>Click here for opinions</a>"; echo "<br><br>"; echo "<h4>Is {$rij['name']} not what you're looking for?</h4>"; echo "<a href={$rij['more']}>Click here for more opinions</a>"; // this goes allright include('../tip.php'); echo "</div>"; echo "<!-- end #welcome -->"; include('../onderaan3.php'); echo "</div>"; echo "</body>"; echo "</html>"; } ?> Thanks! Arjen
×
×
  • 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.