Jump to content

kanala

Members
  • Posts

    113
  • Joined

  • Last visited

Everything posted by kanala

  1. Thanks, but when I do order by Price, it does not actually order them but sorts them out into the prices e.g. £12.99 £12.99 £10.99 £10.99 £15.99 £15.99, they are not in order from low to high. How would I make it order to low to high? Note, the numbers do not include the £ sign, e.g. 12.99.
  2. How do I change the ORDER BY of a search query?Example When clicking a link, how do I change it so that it changes to ORDER BY Price?
  3. I don't have any white space, I even used notepad to edit it, but I am still getting this error.Warning: Cannot modify header information - headers already sent by (output started at /home/www/icegifts.co.uk/redirect.php:4) in /home/www/icegifts.co.uk/redirect.php on line 6 What else is the cause of this error?
  4. Sorry but it works now, it'e because I wrote == false but it only works when you do ==false (no space).Thanks
  5. But the problem with onclick is that once you uncheck the box, it will still work. I need to know how you can find out if the box is checked.
  6. How would I check if a check box has been checked. The name of the form is "return" and the name of the checkbox is "agree".Is this how you do it?
  7. kanala

    PHP formmail help

    It shows everything that it should, my email (to), the email content, from email and subject.
  8. kanala

    PHP formmail help

    Which value would I echo?$body $subject etc?
  9. kanala

    PHP formmail help

    Sorry I'm not very good at PHP, how would I print the values?
  10. kanala

    PHP formmail help

    What's wrong with this? When I post it, it redirects to the success page, but I don't receive any emails.This is the form This is formmail.php
  11. kanala

    Query doesn't work

    Yea that's what I thought, I just can't get the right design.
  12. kanala

    Query doesn't work

    Thanks so much, it works now.my website (wip) is www.icegifts.awardspace.com, was just wandering what you think of it. to view items, you have to do a blank search, then it will come up with 2 products. click on one to view it.Thanks
  13. kanala

    Query doesn't work

    The code is inside an iframe which has URL www.icegifts.awardspace.com/?id=CM001SO will the $_get['id'] function actually work, or does it only work for urls in the address bar?Edit: oh maybe it should be between ' ' as its not a number, i will try it tommorow. Thanks
  14. kanala

    Query doesn't work

    please help, this is my php query I keep getting the error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/icegifts.awardspace.com/product.php on line 17What's wrong with it?
  15. kanala

    $_GET for iframe?

    I'm getting this error everytime:Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/icegifts.awardspace.com/product.php on line 15
  16. kanala

    $_GET for iframe?

    No that's not what I mean. What I mean is when using PHP to make a query to a mysql database, I have to use the ?id in the URL e.g. icegifts.com?id=5, to look up the database with. But the query is being done inside an iframe, which means icegifts.com?id=5 does not actually show up in the address bar, so I can't use $_GET to retrieve it. The URL of the iframe is hidden. I want to know how to actually retrieve the URL of the iframe, to find its 'id'.
  17. kanala

    $_GET for iframe?

    I need to use $_GET in PHP, to get the ?id after the URL, but how would I do this for the URL of an iframe?
  18. No i need to know what to put in the action box. ThanksEDIT: OHH, I have solved it, I must put the full URL.
  19. So how would I submit the search form so the results show up inside an iframe. What should I put as the action? When I put search.php (which is the page inside the iframe), it just opens up a new window.
  20. I don't understand what all this is about: Surely this still opens up a new window for the form?
  21. So what should the action be? Because if I use search.php then it goes to the page, but I need it inside the iframe.
  22. Thanks, but the form doesn't seem to be able to post it. Here is the form: And this is the search engine bit. You see the bit where it says <?php echo $ItemName ?>, when I do the search, nothing shows up as ItemName, which probably means that it did not get posted.
  23. Hi, I have a search engine (php) for my site, but I was wandering if it was possible to make the results appear inside an iframe. Here is the form for the search: I'm not sure if it works yet, but am I heading in the right direction?
  24. Sorry, I figured it out by using onclick instead of href.
×
×
  • Create New...