Jump to content

liquidfire

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

liquidfire's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks very much  i go it working now ! you  are awesome.  lol anything i can do to make it up to you lol  thanks alot !
  2. lol sorry ok  here is the whole code.. prob noobish how i did everything but oh well i tryed [code]<?php include('global_connect.php'); $info = mysql_query("SELECT * FROM Clans WHERE ID = $_GET['ID']"); $data = mysql_fetch_array($info);   echo '<html> <head> <title>'. $data["claname"] .'</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="Layout.css" rel="stylesheet" type="text/css"> </head> <body  bgcolor="#333333"> <div class="content"> <div class="name">   <div align="center">'. $data["claname"] .'</div> </div> <div class="nav"> <a href="#" class="nav_link" >Main</a><br> <a href="#" class="nav_link" >About Clan</a><br> <a href="#" class="nav_link">Members</a><br> <a href="#" class="nav_link">Skrimish</a><br> <a href="#" class="nav_link">Clan Wars</a></div> <div class="page">   <p>'. $data["about"] .' </p>   </div> </div> <span class="clan_info"> <p>Clan Rankings<br> Ranks :<br> Wins:<br> Kills:<br> Deaths : </p> </span> </body> </html>';   ?>[/code]
  3. ok i changed the code to this thinking it should work <?php include('global_connect.php'); $sql = mysql_query("SELECT * FROM Clans"); if (mysql_num_rows($sql) > 0) {   while ($x = mysql_fetch_array($sql)) {     $id  = $x['ID'];     $name = $x['Clanname'];     echo "<a href=\"display.php?ID=$id\">$name</a><br />\n";   } } else echo "No clans to display!"; ?> i fell the  (mysql_num_rows    is not quite what i need i keep getting this error Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/ldsliqui/public_html/clan_test/display.php on line 3
  4. ok i have i tried everything i can think of so i though of why not ask someone else so here i am, and im sure this is noobish question .... Ok i have this page  "clans.php" which runs a query to get Clannames out my data base.  im needing to link the clan names with thier id *they are in the data base and auto inc.*  but i cant figure out how to link  clans.php to the next  page (Display.php)  and display the infor that is needed for  the selected clan the display page has this query include('global_connect.php'); $info = mysql_query("SELECT * FROM Clans WHERE ID = $_GET['ID']"); $data = mysql_fetch_array($info);   echo but  im lost on how i should do my  $_GET['ID'] for this .. any help would be great.. you can slap the nublet around a few times if you like ..
×
×
  • 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.