Jump to content

AyKay47

Members
  • Posts

    3,281
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by AyKay47

  1. I'm not disappointed, but you should be. http://jsfiddle.net/twcwU/
  2. I try to run a page in the browser I get a message to open the file or save it. yeah, you haven't installed WAMP
  3. Sure, but you're not giving us the context in which this styling is nested. That little example you posted is incorrectly written and clearly doesn't reflect the actual code.
  4. You didn't read my reply thoroughly, re-read it, then re-read it again.
  5. what do you want to find the total of?
  6. intval or cast the $_GET variable to prevent SQL injection. Use Count() in the query to find totals.
  7. That will work, you must have set the table columns to a specified width or something?
  8. The browser decodes the string automatically, PHP doesn't. Warning: getimagesize(uploads/cakes/CreamCakes_%2810%29.jpg) [function.getimagesize]: failed to open stream: No such file or directory in the error is pretty obvious, do you have a file named 'CreamCakes_%2810%29.jpg'? And yeah, keep your file names simple to avoid this all together.
  9. which is why I made a note of it in my reply.
  10. AyKay47

    PHP PDO

    On that note, SQL injection is still possible while using PDO if the query is built with user defined data. Something to look out for.
  11. I see the picture, but I don't see the correlation of that in the code. Just post the css and the html of the relevant data for the left and right columns.
  12. well, what does the css for the other div look like atm? Something like this should work: div.other-div { position: absolute; left: 2px; top: 5px; z-index: -1; } remember, the z-index property will only work on elements that are positioned.
  13. There is no reason to be using table references, you are using 1 table. This is occurring because the where clause in one of the queries is not being satisfied. Why not have something like this instead: select count(distinct id) as id_count, id from users where id = 1 or id = 997
  14. Typically bool values should be used simply for logical reasons as Requinix mentioned. Integers should only be used when you actually need an integer value to do something. Also, if you assign an integer type 1 or 0 for TRUE or FALSE, you have to be careful of which comparison operator you use should you have to compare the value to another. Adds an extra layer that could potentially cause silly errors that can be avoided.
  15. As I have stated before, you don;t need the foreach loop, and it shouldn't be there as it is a waste of resources. $get_info[0] will contain the value of the column `staff`.
  16. I have already given you the answer, post the updated code.
  17. Can you show us an example.
  18. Why are you guys still necroing this old thread.
  19. Third time that you have posted an off-topic post on someone else thread. Having a bit of fun or something?
  20. Again, don't necro old threads, create a new thread in the proper forum with your question.
  21. Start a new thread in the proper forum with your question.
  22. $.ajax({ url: "artist_title.php", data: "imgid=" + imgID, success: function(data) { $("#myDiv").html(data); } });
  23. I like is_null But for a session value you can use isset
  24. Any specific environment that you know of that causes the rendering issue? I plan on helping you out a bit by forking the code later on this evening.
  25. SELECT staff FROM flight_survey WHERE staff IN ('good', 'fair', 'poor'); EDIT: There is no need to use a foreach inside of the while loop, $get_info[0] will hold the results set value.
×
×
  • 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.