Jump to content

1internet

Members
  • Posts

    136
  • Joined

  • Last visited

Everything posted by 1internet

  1. I have site content with special characters that came form Word. However I don't want to convert all the content to htmlentities(), because I need some elements like h1, p, a, img. How can I convert all these special characters but leave the elements when they are all contained in the same string?
  2. I want a simple drop down menu, and when an option is selected I want it to perform an action, e.g. redirect to a specific url. So how can I perform an action like a straight link to another url from a drop down menu, without using a submit button?
  3. The variable is coming from a database. It is actually search results I am trying to contain a snippet to give a brief description of the page. So actually I don't want the tags thinking about it, just the content inside, and I want to limit the characters to e.g. 300. Does that make sense?
  4. I have $content = '<h1>heading</h1><p>page content</p>' in a variable. How can I create another variable just of the p tags i.e. $newContent = '<p>page content</p>'
  5. I want to be able to search my entire site over all the tables, e.g. restaurants, entertainment, hotels, etc. How is this done? Also what if I wanted to search through more than one clolumn, e.g. title and body, and then further, what if I wanted to rank the ones that contained the search query in the title, ahead of the ones in the body?
  6. Nothing really.
  7. I am trying to develop my first e-commerce site, it is going to be really simple, only about 5 different products to sell. Essentially I want to know the easiest way to set this all up. I was thinking that I could use the Paypal API, as this won't require merchant accounts, with payment gateway integration, etc. Does anyone have any suggestions on how I should start?
  8. Oh, well that sure simplifies it, just trying to over complicate things. Thanks
  9. So I want to create a list of suggested/related products, this list size might vary from 3, to perhaps 20. I don't want it to take up too much room, so after e.g. 5 listings, I would like the listings to be contained within a certain height limit, and any more listings would require scrolling. 1. What sort of if statement is required when e.g. listings > 5, to then create a scroll bar? 2. How do I create a scroll bar? And should it be in an iframe?
  10. So which one do I need to represent e.g. 5.4?
  11. I am trying to store integers that contain decimals. When I select the type INT, it will not allow me to use decimals. What type do I need? It's just for numbers like 2.4, or 6.3, one decimal place is fine.
×
×
  • 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.