Jump to content

Kevin M

Members
  • Posts

    173
  • Joined

  • Last visited

Everything posted by Kevin M

  1. Kevin M

    stumped.

    So you're encrypting the username with the md5() function? If you do that, then the md5 hash will be sent to the database as the username, and the database, rather than having the username (d) it would have the md5 hash in it. So to display the username on a page, you would have to decrypt it, which I'm not sure if this is possible with md5. Why not just encrypt the password? A person can't really get anywhere with the username, but with a password they can.I may be entirely wrong on this, but I think you would have to decrypt the md5 username hash to display the name. Whereas if the name was never encrypted in the first place, then the database's records would show d rather than the hash, and you would be able to display the username.I'm not totally sure, and that might not make any sense. I'm sure someone with more knowledge than me will be able to help you more.
  2. Great, I figured it would (be sort of dumb not too). Thanks for all of the help.
  3. Ok, thanks to both of you. I've got a better idea of what template engines are now too, I'll look into them. I have one other question though:If you seperate the PHP into code blocks, is it possible to only connect to the database in one of them? Example: <?php//Connect to Database//Grab Some info?>HTML Stuff<?php//Grab some more info from database without re-connecting?>More HTML Stuff Or would I need to re-connect to the database for each code block?
  4. I think you need to add in position: relative; for floated areas to work in IE at least, not sure about FF though. This probably isn't the answer, but maybe give it a try...
  5. Just want people's opinions. I'm working on a very large PHP/MySQL project. I've never really used databases before, so I'm still learning some things. My question it though, is it better to seperate the PHP from the HTML, or have it together? So would this be better: <?php//PHP Code here?>HTML Stuff<?php//More PHP Code here?> or this: <?php//PHP Code Hereecho 'HTML Suff';//More PHP Code Here?> Or does it not really matter. Basically, would it be better to echo the HTML tags/content, or seperate the PHP into code blocks and have the HTML code display?Thanks,Kevin
  6. <?php//Compare Fieldsif($_POST['email'] == $_POST['email2']) {//Execute some code here}?> Try comething similar to that maybe?EDIT: Forgot the ) at the end of the if statement...
  7. Looks like their domain expired. It happens... I'm sure they'll renew it when they get the chance/find out.
  8. Awesome site! The layout's great. And the portfolio page is amazing with the previews. You've made some great layouts. Just on thing, on the portfolio page, the W3C buttons at the bottom are up a bit too high, so they cover some of the text in the paragraph under the portfolio thumbnails. Other than that, great site. And I like the French option, I could use a brush up on my French.
  9. So change the content of the page without switching the page in the browser? Is that what you're going for. There's two ways of doing this that I know of.1)Frames: Frames are sort of outdated I guess. I wouldn't personally use them, they can be very bug prone, and I've never gotten them to work the way I want. They also aren't very trustworthy in my experience.2)AJAX: I'd definately look into doing it via AJAX/JavaScript. I know this is possible, I've seen it done on sites. However, I don't have a clue how (I tried once and failed miserably). But if you don't have much Java Script knowledge, you could try frames.
  10. I think he means the TryIt Editor. I honestly have no idea how they did it, I believe it was done in ASP though, judging by the urls. As for a CMS, I don't think they use one. It looks to me like they just make the pages in a text editor and FTP them on to the server. I've never seen a CMS that uses the URL's like they do (their's are all /directory/page.asp, most CMS's I've seen are ?page=page or /pages/page) but since I don't work at W3Schools, I may be wrong. Someone who's been here longer or a moderator should be able to help you more than I can.
  11. In the layout I'm currently working on, I want to add an image that lets you go to the top of the page. There's two different navigation bars in the layout (one on the right, and one on the left). I want to have this image floated to the right of the right navigation bar. The only problem is, if I float it, then how can I position it fixed? Everything is inside of a container div, so I want it to stay in there, but also be positioned about 2 pixels from the bottom of the browser. I can't specify a pixel ammount for left or right because the layout is to be centered in the browser, so that would change. I quess I could use Java Script to see what screen resolution is set, but I'd rather save the hassle of that if possible.Any ideas are very appreciated!Thanks,Kevin
  12. Kevin M

    SQL <> MySQL

    Ok, I don't have very much general SQL knowledge, but here's my understanding:MySQL is a database system. SQL is a language to query a database (Like MS SQL, MS Access, Oracle etc.). MySQL is a type of database similar to the other ones stated (MS SQL etc.). SQL is just many different commands to connect, query and then display the information in a database depending on what you do with it. So there isn't a way to compare which is better because they are two differnt things (Just a similar name). MySQL commands are very similar to SQL commands because MySQL databses/commands are based from SQL commands (I believe, but I may be wrong.). SQL can be used to query many different types of databases depending on what you have installed on your server/host, whereas, if you use the MySQL commands, they can only be used for a MySQL database.Hopefully that makes some sense. I can clarify if anyone wants.
  13. Alt is what you'll see when you hover over the image. It stands for alternate text. Also, if the image doesn't load, it will show the ALT text in the area where the pitcure would go (At least in IE, not sure about FF). So if you hovered over that image, it would show a little box with the text "asdf pic" in it. Try hovering over the fast reply/add reply/new topic buttons on this forum. The text that comes up is the alt text.
  14. I don't think the $site variable is really needed. In my experience with quite a few hosts, you don't need to show the domain, just the page/image you want to link to (as long as it's on your website, not another). So eg. /index.php would work instead of mysite.com/index.php (Which would work too.) It's up to you, but I don't really think it's worth the extra time.
  15. I think he means that they go to the same place because that's how you did it right? You said that if you go to the admin.php page without logging in first you were redirected to the index, which is probably what's happening to him would be my guess.I like the new header image, it's nice. The whole thing has really improved a ton since when you first showed it too us.
  16. Kevin M

    Learning C#

    Maybe some time later in life I'll get Visual Studio, but for now I'm sure those will work fine. Thanks for the links.
  17. I don't see the need for SHTML really. There isn't much more to it than including files (as far as I know, but I'm probably wrong), which is done very basically like this: <!--#include virtual="file.html"--> There may be more to it that I'm not aware of though. CGI would be interesting to have though.
  18. Kevin M

    Learning C#

    I'm planning on maybe learning some C# in the not too distant future (a couple of months probably.) I asked a while back what some good tutorial websites were (And I still have the links). But I believe I have to download a framework or something, and that's where I'm confused. I have no idea what to download. I've looked around Microsoft's website, and there seems to be so many different frameworks that I'm not sure which is the right one. So if someone could point me in the right direction that would be great.Thanks,Keivn
  19. That's why we come here I guess. Everyone can always learn more. Even Bill Gates could probably learn a thing or two (Like how to make IE better. )That's why forums like this are great. You can learn from people that have much more experience than you.
  20. Ah, I get it now. It seems every time I log on here I learn something new from you.
  21. I like the new design a lot more than your old one. I think simple templates are really good these days. With a really busy design, it's hard to get the content you're looking for when you visit a site. It also looks a lot more organized than the other one, with the navigation bar at least. I like the gradient where the content section fades into the background colour.
  22. CSS has actually been around since 1996 I believe. As far as I know most (If not all) of that major browsers support CSS. But some users do have the ability to turn off support for CSS, which can really mess up your pages. I read an interesting article yesterday about the em unit in CSS (I had not idea how to use it) and it got into the fact that some browsers don't use CSS, like browsers that use brail to display certain things, or browsers that say things aloud to the user. So the article said that you should try to make your documents work even without the use of CSS, which would be quite a challenge these days since so many developers rely on CSS. There's also the possibility that the style sheet doesn't load properly, which would mess up the page.Anyway, just thought I'd tell you incase you weren't aware, for some reason IE doesn't support transparent PNG images even though I believe most other browsers do. So there are two ways to get around this that I know of. Either use GIF (which doesn't have much colour support, so you will loose quality), or I believe there is some type of code. I can look for a code like that if you wish.
  23. Thanks, I'll have a read through them.
  24. Oh, I figured it was use one or the other, not both. I knew it was possible to pars XML in PHP, but I don't have much experience with it. I will have to look into that more. Thanks again.
  25. For the blog system I'm currently working on, I'm going to use a MySQL databse to generate the XML file and it's contents. My only question is, how would it be possible to have an XML file contained in a PHP file, or vise versa? Or is this already possible? I'm not parsing the XML with PHP, I'm going to use XSLT to make the file readable. Thanks,Kevin
×
×
  • Create New...