Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. As far as PHP types you should read: Types. I also advise you to work on a small project or task either by yourself or from a tutorial to get used to the syntax and PHP itself.
  2. You can use something like LIKE or REGEXP. I would also recommend reading this tutorial: http://www.phpfreaks.com/tutorial/simple-sql-search
  3. No lube maybe?
  4. We're here to help you and by doing your work for you, would be the complete opposite. Help forums, in general, frown upon kids who ask them to do their HW. I suggest you pay attention in class, try to complete your projects in a more timely fashion, and make an attempt yourself.
  5. I believe it's http://www.e-texteditor.com/.
  6. By apply you mean?
  7. It's better to wait and give us the correct information.
  8. I agree. Maybe a smiley with a crystal ball or something?
  9. What in the world are you talking about
  10. In that sense I would agree. But how many people are going to actually figure out the stars effect is related to being psychic? So is it psychic or facepalm? I don't think combining the two would make much sense. In any case, it's not that big of a deal, the smiley looks good regardless.
  11. I agree with ober. The head shake doesn't seem to fit. Also, what's with the star flying off his head? Seems as though he's smacking himself.
  12. Read this tutorial: http://www.phpfreaks.com/tutorial/basic-pagination
  13. A blank screen usually implies a fatal error. You probably have error_reporting turned off, which you should, but first and foremost you should add these lines directly after your opening <?php tag to temporarily turn error_reporting on: ini_set ("display_errors", "1"); error_reporting(E_ALL);
  14. You're not giving the DBConnect() method any parameters.
  15. You have spaces between your array and the associative key.
  16. Echo out your query and see what's being passed. You need to escape and sanitize your data as well.
  17. That's a little hard to believe. There are plenty of example on phpfreaks, let a lone Google.
  18. First of all, do you really need every single field from that table? You should only be selecting the fields that you are going to be using. Second, I meant like this: SELECT REVERSE(kategorizacija) FROM objects WHERE zupanija = 1 ORDER BY kategorizacija DESC Did you want to order from the reversed order? In that case, you would have to modify the query a bit and include the desired fields you're going to be using. Since you're ordering on a VARCHAR the order will be alphabetical. There may be a technique to order numerically, but not that I'm aware of.
  19. REVERSE().
  20. 1. I think you mean, "Assign the variable to the function". 2. You would have to return something. 3. You should be using mutator and accessor (get() & set()) methods to alter variables.
  21. I thought this was hilarious and felt compelled to share. http://www.huffingtonpost.com/2009/07/13/the-9-stupidest-products_n_230821.html?t
  22. CV, j/k, I just had a strong urge to use the new smilies.
  23. Just like you said, elseif. You can also use a switch.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.