Jump to content

Kevin M

Members
  • Posts

    173
  • Joined

  • Last visited

About Kevin M

  • Birthday 05/06/1993

Previous Fields

  • Languages
    XHTML, CSS, PHP, SQL, JS, C

Contact Methods

  • Website URL
    http://
  • ICQ
    0

Profile Information

  • Location
    Canada

Kevin M's Achievements

Member

Member (2/7)

0

Reputation

  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.
×
×
  • Create New...