Jump to content

Anders Moen

Members
  • Posts

    866
  • Joined

  • Last visited

Everything posted by Anders Moen

  1. Anders Moen

    Colour

    Haha! The RGB colors isn't those 6 numbers/letters in the (X)HTML/CSS code. Well, congratulations anyway ^^
  2. You only need to buy if you want to save your files as .fla (and then open it in KoolMoves some other time).But if you take export and then easy wizard or something, you get the .swf file.
  3. :)The registration form does not work! It just says when I try to register.And the login page is just blank!OMG! I just figured out what was wrong...I went to the site he found the tutorial on, and it said it was for PHP 4. He could have mentioned that too.
  4. Nice :)I will try it out. I have a simple one now that I made myself, but it's not 100% safe + that I made two echo's for logged in users and sometimes it shows the first echo and sometimes the second one :SBut I will try this one out. Is it for PHP 5?
  5. Ehh...isn't IIS for Windows servers?If you want your own PHP server (PHP, MySQL and some other things), you can download XAMPP which installs PHP, MySQL, and some other things. I'm not sure how you open gate to let other people come and view your site, though. But you can use Awardspace if you do not wish to set up your own server. There you get a free subdomain, like yourname.awardspace.com
  6. You need to make a login script which checks if a user is logged in or not. <?php// if user is logged in:echo 'Hello $username!<br /><br />You can download 10 of our files.';// if not logged in:echo 'Hello guest!<br /><br />You can only download 5 of our files.';// notice that I use echo ''; (single quotes), so you can use normal doblequotes in (X)HTML codes (")?> Of course there are plenty of more things to fill out. I can't open FTP now, so I can't give you my login code but if you search at Google for "PHP login code" or something like that, you'll get a lot of sites with tutorials for how you can make one
  7. Yes, you can use div's instead, but one thing: when you take something out of a database it's tabular data (td) which is gonna be placed in tables.
  8. I wouldn't recommend using marquee because it laggs. You should make it in Flash instead. There are some free Flash programs on the net like KoolMoves. Or the demo version of Macromedia Flash 8.And if I don't remember wrong, marquee won't show up in all browsers. Is this right?
  9. No problem :)And as MrAdam said, you don't have 6 tables to display that. You have 1 table, with 6 fields.Good luck further
  10. Hmm...not everything there is right.Like this: Well, it was red in my browser window and I use Opera. Shame on that site ;P
  11. You have closed them right. He probably thinks you use XHTML since I said so
  12. That's the only thing I have left too for my chats/shoutboxes. So it updates at everyone that's there when a new message comes in the database.
  13. Hm, do you mean that need another font-size in CSS? .element { font-size: Xpx; } // Just change the big X with for example 16.
  14. Hehe, I'm glad I could help. It was thanks to me, right? lol
  15. Well, just to center a div is easy: CSS:body { text-align: center }#container { width: 400px; margin: 0 auto; }XHTML:<html><head><title>lol</title><link rel="stylesheet" type="text/css" href="style.css" /></head><body><div id="container">HELLO!!! margin: 0 auto should work :)</div><div id="container">Remember to use a doctype, or else I don't think it'll work in IE</div></body></html>
  16. <?php$con = mysql_connect("localhost","username","password");if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db("db_name", $con);$result = mysql_query("SELECT * FROM table_name ORDER BY id");echo "<table>";while($row = mysql_fetch_array($result)) {echo "<tr>";echo "<td>";echo " ";echo "</td>";echo "<td>";echo "<h1>" . $row['title'] . "</h1>";echo "</td>";echo "</tr>";echo "<tr>";echo "<td>";echo "Published by";echo "</td>";echo "<td>";echo "<a href=\"mailto:" . $row['email'] . "\">" . $row['author'] . "</a>";echo "</td>";echo "</tr>";echo "<tr>";echo "<td>";echo " ";echo "</td>";echo "<td>";echo "" . $row['content'] . "";echo "</td>";echo "</tr>"; }echo "</table>";mysql_close($con);?> Pretty simple really :)Hope you get it. For each thing you wanna display you write:echo "Hello! " . $row['name_on_thing_in_table'] . "";
  17. I haven't read any books about PHP except the tutorials at W3Schools, but if you're gonna buy a book, remember that it should fit your host. Like, if your host let you use PHP5, do not buy a PHP4 book, because a lot of the codes there will just have errors.
  18. Actually, when I now think about, I can't fix it because its 1024 px so I can't see when it's centered. Sorry
  19. Did you notice that I had written < in the first < in script type="" then? That might have ######ed it up :)Well, anyway, I've corrected it up now.
  20. Just do what I said. It's the best:
  21. I think I know what you've done wrong, but if I'm gonna fix it,you need to post with an image to show me how it's gonna look.
  22. Simple: those browsers don't like hr tags to be like that :)I've tried myself...you need to make a nice little image that's red instead. For example 2x2px and then use like<img src="url_to_image.gif" alt="" style="width: 100%; height: 2px;" />
  23. Oh no! You have that error! Sometimes I have it too, and still I haven't figured out I can validate my site then. Because I put <p><input type="text" name="sf" /></p> but still it doesn't validate. (I put it around all inputs btw)
  24. If you post by the error message you get, it'll be a lot easier. But I think you need to use name="" instead of id="" - I'm not sure.I only use name="" and that validates with XHTML 1.0 transitional, strict and XHTML 1.1 (not tried the others)
  25. You mean that you want to learn (X)HTML or what?Well, if so...read here at W3Schools.My opinion is W3Schools lol
×
×
  • Create New...