Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About Ixzion

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