Jump to content

mrjoaopereira

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mrjoaopereira's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi guys, sorry for the beginner issues here. after following a tutorial i come across a little problem! Everything works just fine, no errors but my page source only shows the xml tags and not the actual products <?php $link = mysql_connect("localhost","Joao","password"); mysql_select_db("brimelow_store"); $query = 'SELECT * FROM products'; $results = mysql_query($query); echo "<?xml version=\"1.0\"?>\n"; echo "<products>\n"; while ($line = mysql_fetch_assoc($results)); { echo "<item>" . $line["product"] . "</item>\n"; } echo "</products>\n"; mysql_close($link); ?> source = <?xml version="1.0"?> <products> <item></item> </products> I have checked the database names and they all match... im confused. can i get some help pls?
  2. no no! the source starts with : <?php $page="index.php"; include("includes/header.php"); ?> the navigation coding you see in the include file. im going to leave it as it is though without the class as i am getting late to present this site done on wed...
  3. #header #navigation li a.aktiv { color:#000; font-family:Arial, Helvetica, sans-serif; font-size: 25px; cursor: default; } thats my css for the class it does make a diference, but in any case im just bugged why i cant make it work css correct, xhtml correct, php seems correct yet it doesnt work, aha!! if u wanna check if for some reason it doesnt work only for me www.ojoao.com its under construction so most of the links arent working but you should see the home page
  4. problems with the validation were fixed, ty so much for helping a newbie as for the php it doesnt work and it seems correct... i almost feel bad about insisting
  5. i dont get any errors... i do get the error i updated above on validating the page on http://validator.w3.org Error Line 18, Column 13: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified <li class=aktiv ><a href="index.php">home</a></li> erm... if the php is right why doesnt it work? Here goes full code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Joao Paulo Vieira Pereira</title> <meta http-equiv="content-type" content="text/html;charset=utf-8"/> <meta name="keywords" content="Joao Pereira, Personal Website"/> <link rel="stylesheet" href="css/style.css" type="text/css"/ </head> <body> <div id="background"> </div> <div id="page-wrapper"> <div id="content-wrapper" class="clearfix"> <div id="header"> <ul id="navigation"> <li <?php if ($page=='index.php') echo 'class=aktiv'?> ><a href="index.php">home</a></li> <li class="trenner">/</li> <li <?php if ($page=='gallery.php') echo 'class=aktiv'?> ><a href="gallery.php">gallery</a></li> <li class="trenner">/</li> <li <?php if ($page=='portfolio.php') echo 'class=aktiv'?> ><a href="portfolio.php">portfolio</a></li> <li class="trenner">/</li> <li <?php if ($page=='about.php') echo 'class=aktiv'?> ><a href="about.php">about</a></li> <li class="trenner">/</li> <li <?php if ($page=='contact.php') echo 'class=aktiv'?> ><a href="contact.php">contact</a></li> </ul> <h1><span class="bauhaus gray-222 mega bold">Joao Pereira</span></h1> </div> this is for my header include. the php is minimum but i am learning that is the way right?
  6. <ul id="navigation"> <li <?php if ($page=='index.php') echo 'class=aktiv'?> ><a href="index.php">home</a></li> <li class="trenner">/</li> <li <?php if ($page=='gallery.php') echo 'class=aktiv'?> ><a href="gallery.php">gallery</a></li> <li class="trenner">/</li> <li <?php if ($page=='portfolio.php') echo 'class=aktiv'?> ><a href="portfolio.php">portfolio</a></li> <li class="trenner">/</li> <li <?php if ($page=='about.php') echo 'class=aktiv'?> ><a href="about.php">about</a></li> <li class="trenner">/</li> <li <?php if ($page=='contact.php') echo 'class=aktiv'?> ><a href="contact.php">contact</a></li> </ul> Followed by: <?php $page ="index.php"; include("includes/header.php"); ?> on the source stopped working and i cant figure it out. possible to get some help i get this error on validating : Error Line 18, Column 13: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified <li class=aktiv ><a href="index.php">home</a></li> being a sort of a noobie i cant figure it out... ty, joao
×
×
  • 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.