Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by Ixzion

  1. What you need for DB_NAME is not 'ask'. That is the name of the table. You need to use the database name, which you said was 'question'. Also, you should never post your username/password publically. I'd recommend changing them.
  2. You are not echoing any error message for the user to see. In your first post, $dateErr is an empty string when it gets to the bottom. You need to echo each variable you want to display a message.
  3. Thanks for the explanation! Cheers!
  4. I was working with something involving !=, which always manages to find some way to trip me up, but I'm finding this one odd and I'm wondering if one of you fine people can shed some light on it. This was the setup: if (($thing != 0) && ($thing != "")) {echo "Hello";} If $thing = 1, then this works.If $thing = 'taco', this does not work. But if $thing == 'taco', then obviously it doesn't equate to 0. The way I figured out a solution to this was by changing it to this: if (($thing != "0") && ($thing != "")) {echo "Hello";} With the 0 in quotation marks. Why did I have to
  5. Ixzion

    FILE Display ERROR

    I'm getting this when check for a post when I submit the form to itself: So I think your code is okay. I don't know what the cause of it is, unfortunately. But here's my full code. Maybe it will help: <?phpif ($_POST) { echo "Image file format: " . $_FILES['imagefile']['type']; //PASTES image/jpeg echo "<br>"; echo "Flash file format: " . $_FILES['flashfile']['type']; //DOESNT PASTE ANYTHING} ?><form action="self.php" method='post' enctype='multipart/form-data'> <label for='imagefile'>Image (.JPG):</label> <input id='form_addgame' type='file' name='imag
  6. I'm not gonna do your homework for you, but I'll give you some pointers in the right direction. Using the php.net manual will help a lot. 1. Look up empty and is_numeric.2. I don't know what this means.3. Use comparison operators (==, >, <, etc).4. You'll probably want something like if ($this && $that && $other) { do something }
  7. You need to show all of your code together. By itself, this is fine.
  8. Thanks for sharing this, MrFish. I don't have millions of records yet, but I will keep this in mind.
  9. As far as I know, you can't run a .exe file on a web page. Whomever gave you that code correctly told you that you would need a flash file in order to run that game. You may be able to convert that .exe into a flash file, but I don't know how.
  10. I'm not sure what kind of way you have the galleries set up, but if you have a lot of images on a single page, then load time will suffer as a result. Off the top of my head, one thing you could do would be to have your first page with links to individual slideshows and then make a different page for each slideshow. That would cut down on the load.
  11. This is a decent site, yo. The following comments are from viewing the site on FF 3.6.16.I like the changing link colors on each page that help reinforce where you, as a visitor, are. I also see the social networking links are all hooked up. I like how each becomes relevant as you navigate the pages. You really used those APIs. I need to get into that.The drop-down list to choose who to send an email do is a great idea. I know there was a whole lot of behind-the-scenes stuff here that's not overtly-present, so good going on that. Just a few notes, though:I'm not the biggest fan of the flat gr
  12. I don't have access to jQuery on the computer I'm using currently, but I'm wondering if this might help the script run faster? It may end up just being moving the issue from one end to another, though. I don't know how fast JQuery applies the .show(). Just thought I'd throw it out there. var collection = $('#divContainer .eachDiv');var search = function ($collection, searchPhrase) { $collection.each(function () { var divText = this.innerHTML.toLowerCase(); this.style.display = 'block'; // This line is thrown out for the .show() below if (divText.indexOf(searchPhrase.toLowerCase()) ==
  13. I'm wondering...instead of forcing the script to look through 1000+ divs, why not put your content into an array and then have jQuery search the array?http://api.jquery.com/jQuery.inArray/
  14. What is this code supposed to accomplish? Why does it need to search all those divs?
  15. Alright, I took your advice and added all that stuff. It didn't cross my mind that someone would turn off CSS like they might JS. Thanks for the info. I use Firefox primarily and use Firebug along with the Web Developer extension (the latter which is likely similiar to Pendule). They've been invaluable.
  16. Oh, thanks for the catch. I had to change the ids for the form fields to classes because the validator wouldn't stop crying about it, even though because of the noscript check, each set would never be up at the same time (technically, they are, though, perhaps). I simply forgot to change those in the CSS after passing the validation. I fixed it and it should be gravy now.
  17. I have no experience in ASP, but am I wrong in assuming there's no option like in HTML for inputting passwords? <input type="password" /> What you sound like you want to do is overly complicated in the case it has a default method for handling sensitive data.
  18. Ixzion

    constant include

    If you're using a CMS, this leads me to believe that WB_PATH is a constant that's set in the CMS' configuration file. It's not requesting that constant from the template file.The concatenation operator is used because everything inside quotation marks is taken literally.For example, let's pretend that WB_PATH is "http://www.yousite.com/cms". require_once(WB_PATH."/include/phplib/template.inc"); This will get you "http://www.yousite.com/cms/include/phplib/template.inc", which is what you want. However, look at this: require_once("WB_PATH/include/phplib/template.inc"); This will get you "WB_
  19. What is the error message that you receive?
  20. Alright guys. I've finally updated the site.3 things:1. Finally, the site looks and can work 100% without javascript enabled. I spent a fair deal of time making the site work without it. Hurrah.2. I went back and compressed the images as much as I could and turned all the image text into regular text.3. It finally validated! Woot.What do y'all think?
  21. I'm sort of confused by this code. For example: if (!file_exists("$uploadfolder$subject"))mkdir("$uploadfolder$subject");move_uploaded_file($temp, "$uploadfolder$subject$name");echo "Stored in: $uploadfolder$subject"; At this point, the move directory is "producten/subjectfilename". Is that supposed to be like that or was it supposed to be "producten/subject/filename"?
  22. Thank you for the replies. I have not stopped work on this portfolio. Actually, I have done a decent bit more work on it. I converted all the graphics to text where applicable and I've been looking into how to make this site work with Javascript disabled and I'm just about done. I was going to post again once I had it online.@Guy,Yeah, I am trying to use it to help myself get a job.BlueKrush is a simple photoshop sketch right now. I haven't created any code for it. The others are a little more complicated. I can access and validate one but not the other. I will probably just throw one of the p
  23. Yes, I asked for constructive critique. As I said in my response to you, I don't need anyone kissing my butt and I didn't have a problem with your suggestions. If you read my post (or checked the site again), you would see that I took your advice and improved the site, for which I am grateful.The problem I DID have: Your tone. You came off sounding extremely rude and it pissed me off. That's really all there was to it.Now, I don't want to continue to derail this topic with this misunderstanding anymore. The next time I post, it'll be because I've made some more changes.
  24. Thanks for the post.I did see some information about @font-face, but I didn't feel like being bothered with it before. But I will go ahead and invest some time in converting that over. It probably will be better in the long run.I do understand the value of backwards compatibility and I have complied with this on commissions I've done in the past. What I didn't figure on was your statement about so many companies still running things on IE6. I didn't think that an HR person hiring for a web position wouldn't understand those terms. I guess I'll look into it.The main point of the site is to be h
  • Create New...