Jump to content

frost

Members
  • Posts

    136
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

frost's Achievements

Member

Member (2/5)

0

Reputation

  1. Just a note on this: SELECT book_id, book, book_display FROM books WHERE book_status = 'active' ORDER BY FIND_IN_SET(book_id, '13,4,5,6,7,8,9,10,2,3' ) LIMIT 0 , 30 this is returning a strange set, the book_id it is returning are (in order given back): 1,12,11,13,4,5,6,7,8,9,10,2,3 To get the proper result I had to provide all 13 book ids, this returned them in the proper order. Hopefully that will help someone else.
  2. The order will be saved as part of there account settings and will be set on login so no worries there. Thanks again.
  3. perfect, thanks for the help guys.
  4. something to try at the top of your file: print_r($_POST); This will spit out everything that is posted so you can see it. Also try: $suffix = $_POST['suffix']; //removed brackets from above echo $suffix;
  5. I ran into a similar problem recently. "view-listings.php?live&id" is the issue, you need to give live a value of some kind. "view-listings.php?live=1&id" would work.
  6. How will that work? If a user sets his account to 1,4,5,6,7,8,9,10,2,3 how can I select those in that order from the table?
  7. Hi, I have a table set up with 10 items in it, I want to allow users to customize the order of the items when they are logged in. How can I call the items from the table in the order set by the user? Thanks for any help.
  8. Hi, I am currently working on a site that was built in html, I am installing wordpress to replace the current page. To minimize down time I would like to install wordpress and then let the client build up the site and then set it to live by removing the html files (301s of course). The problem is that the server is set up to read PHP files before HTML files. So as soon as I upload wordpress the index.php file takes the place of the index.html file. Is there a way to change that using htaccess or some other magic?
  9. I am putting the tring into a mysql database and it is converting the daggers to - ‡ Any idea why that would be?
  10. The problem is that this is coming from a private XML feed that I can't share. When I copy/paste some of the code to work on it seems to work just fine. For example: <? $str = "17‡48‡97‡3820‡FREE†"; $str = str_replace(chr(134), '**', $str); // dagger (a second footnote) $str = str_replace(chr(135), '***', $str); // double dagger (a third footnote) echo $str; ?> This works! But when I do this: <? $str = $pPGA_response; $str = str_replace(chr(134), '**', $str); // dagger (a second footnote) $str = str_replace(chr(135), '***', $str); // double dagger (a third footnote) echo $str; ?> It spits it out with the daggers intact.
  11. Tried those but it says 134/135 here - http://ca2.php.net/chr
  12. Hi, I am having some trouble and I hope it is somthing obvious I have just missed: I have a string that contains dagger and double dagger characters, here is a sample: 17‡48‡97‡3820‡FREE† I am trying to run a str_replace on them as I understand they are bad characters to use - http://www.cs.tut.fi/~jkorpela/www/windows-chars.html I have tried all kinds of things with no luck, changing the charset, trying to replace chr(134) chr(135) etc etc. Any help would be apprectiated. Cheers!
  13. I am dealing with some permission issues and was wondering if exec can be used to write files?
×
×
  • 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.