Jump to content

The Eagle

Members
  • Posts

    132
  • Joined

  • Last visited

    Never

Everything posted by The Eagle

  1. It continues to write because it's inside of the while statement, moving it above the while statement would fix that. <?php echo "<table> <tr> <td>NAME</td> <td> TIMEZONE</td> <td> SERVER</td> <td> CLASS</td> <td> RACE</td> <td> AA</td> <td> LEVEL</td> <td> EPIC</td> <td> CURRENT GUILD</td> <td> WILLING TO TRANSFER SERVERS</td> </tr> <br /> "; $result = mysql_query("SELECT * FROM users WHERE looking='yes'"); while($row = mysql_fetch_array($result)) { echo "<tr><td>" . "<a href=profile.php?ID=" . $row['ID'] . ">" . $row['user_name'] . "</a>" . "</td><td>" . " " . $row['timezone'] . "</td><td>" . " " .$row['server'] . "</td><td>" . " " .$row['class'] . "</td><td>" . " " . $row['race'] . "</td><td>" . " " . $row['aa'] . "</td><td>" . " " . $row['level'] . "</td><td>" . " " . $row['epic'] . "</td><td>" . " " . $row['guild'] . "</td><td>" . " " . $row['transfer'] . "</td></tr>"; } echo "</table>"; ?>
  2. You can set it with mysql_set_charset(). <?php $con = mysql_connect('localhost','1234','1234'); mysql_set_charset('utf8', $con); ?>
  3. If I remember correctly, Twitter switched to 0auth awhile ago from their API, so you'll need to look into Twitter's 0Auth and work from there, I haven't really messed with it at all to help you out but just to give you some insight.
  4. After further reading into the website they actually have a function where you can just add a piece of code to say any page and it will require them to log in or be already logged in. <?php include 'dbc.php'; page_protect(); ?>
  5. <?php include ("pagetitles.php"); ?> <HTML> <HEAD> <title>MyWebsite | <?php echo $page1; ?></title> Then in the pagetitles.php, <?php // page titles $page1 = "Home"; $page2 = "About"; ?>
  6. If you'd like to develop your own forum board, you must first realize this may take months of long hours and a lot of frustration as it will have security exploits, bugs, errors and messy coding. If you're a newcomer to PHP, it'll be even longer since you first have to work your way around it learning what and how it works and the functions. I suppose getting a degree would help a lot since that's great, doing online tutorials, buying books also help just as much, you should look into those as well. Forum boards take time to build, you'd require pretty much [*]Profiles [*]Categories [*]New Topic/Posts I can probably go on forever, allowing users to upload avatars, edit their own signatures, have their own little "blurbs" or about me's, their own locations, own ranks. It's a long process. A quick solution if you don't want that is looking at the vast majority of forum boards that are already developed and have been out for quite some time, which are for example, phpBB, MyBB, SMF, vBulletin (costs money). All are great. Good luck.
×
×
  • 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.