Jump to content

spiderwell

Members
  • Posts

    1,008
  • Joined

  • Last visited

Everything posted by spiderwell

  1. looking closer at the code it does look like it already does
  2. as you have stated, the server side check does give the security you need. You could store the userid into the session object and avoid it apearing in the form altogether
  3. one way to approach it would be to put the order items details enquiry in the loop of the first query, so as you iterate through all the orders, make a call to the details part as you loop through the recordset of the orders. first query here for list of orders while (looping through the orders) { use the second query here to get item details by passing the id of the order. }
  4. you can do it that way if you wanted, but that is often the case in programming that theres more than one way to approach it.
  5. why dont you just echo the <ul> outside of the loop, or did i miss something obvious here?
  6. php 5 has scandir, which will do this for you. check it out here
  7. how about using the mysql_num_rows() function? $query = "SELECT pid FROM products WHERE productgroup = 'Some Group'"; $result = mysql_query($query); $num_rows = mysql_num_rows($result); I havent checked this snippet for typos so it might not run from cut n paste
  8. I would suggest the error is pretty self explantory
  9. and as far as i can tell from some bench marks that thorpe posted somewhere, zend is a bit clunkier all round than symfony
  10. so essenetially you want to split a 24hour period equally and show it as a timestamp? or something like that? although your example does exclude the first minute of said period. I am guessing this split could be 2,3 ,4 or more? thus becoming 12hr,8hr,6hr etc periods?
  11. hit up you tube and use my playlists, which seem to be all classical these days! but then sometimes i will be like today is iron maiden day and rock them out ! i guess it depends on the mood. i have yet to code to Barry White
  12. Despite your example, I still have no idea what you mean. are you looking to split the date up into month,year,day? by divide what do you mean? as this is also a maths function. please clarify further thanks
  13. html 5 <input type="email"> job done. however you can't rely on that sadly!
  14. first thing i would do is look up the function on php.net and see what that suggested as a replacement/alternative
  15. spiderwell

    ||

    SQL uses the word OR not the double pipe
  16. isset() is to check if the variable has been set, regardless of its value, the first post will tell you if the variable has a value of null.
  17. i gave up on bing when it was unable to give me a result when i typed the domain name directly into their search bar!
  18. thanks for the response giz, a nice indepth answer wwas more than i hoped for!
  19. i think he wants to grab a webpage with php and stuff it into a variable to echo out at his leisure
  20. not if you dont show it to us, or explain exactly what bugs you are stuck with
  21. if you are trying to repopulate the textarea, you need to put it inbetween the textarea tags not into a value attribute <textarea name="example"> <?php echo $_POST['example']?> </textarea>
×
×
  • 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.