Jump to content

nfr

Members
  • Posts

    34
  • Joined

  • Last visited

    Never

Everything posted by nfr

  1. Hello - I am having an issue with the display of certain characters in different output formats. For example, a single-quote character displays OK when the page is displayed through a normal (IE) browser. When, however, the same character is displayed in Outlook or even through the Yahoo! Mail client, the character appears incorrect, i.e. as a sequence of differnet characters. Is there anyhing that can be done to standardise the output of special/foreign characters (other than have to replace every character with the HTML entity by hand)? I have had a play with htmlentities and htmlspecialchars but this does not really resolve the problem. Is it possible to force the browser to use a specific character set? iso or something? Regards, Neil.
  2. Hello - I would like a user to enter data against a date. I thought of having a form with drop down menu showing the next 28 days (4 weeks) followed by a text box for a description. The user can select the date from the 28 days listed and enter the appropriate text in the text area. This data is then inserted into a mySQL database through a form. The question: how can I get the 28 days in a <select>day</select> pull-down menu? Regards, Neil.
  3. Hello - I have had a php/mySQL site up and running for several months now with no problems. I checked the server today and the site was unavailable with the message that one of the tables did not exist. I subsequently went and logged into the mySQL server only to find that two of my databases had been dropped. How can this be? No one else knows the password and I was nowhere near the machine during that time period! Any help/info appreciated as I'd like to avoid the reoccurrance of this problem! Regards, Neil.
  4. Hello - I am trying to build a small accounting system using php/mySQL. What datatypes should I use to store amounts, i.e. monetary values? Also, how can I format the amounts so that they are presented as €xx.yy and not €xx.y if the y value is 40 cents for example? Regards, Neil.
  5. Hello - Is it possible to generate a "form within a form" effect. I'd like to have the following kind of layout all on one page: Static Table <table> <input> <input> </table> Dynamic Table <table> <row1> view, edit, delete <row2> view, edit, delete <row3> view, edit, delete </table> Image Upload Box The static table should not change. The dynamic table should update when one of the rows are deleted or edited. It should also add another row when a new image is uploaded. Is this possible? If so, how would I go about implementing the second part in DMX? Thanks and regards, Neil.
  6. Hi - I'm trying to get a feed from the BBC Sports website (just as a test). Code is below: <? require_once("../inc/rss_fetch.inc"); $url = "http://news.bbc.co.uk/rss/sportonline_uk_edition/front_page/rss091.xml"; $rss = fetch_rss( $url ); echo "Channel Title: " . $rss->channel['title'] . "<p>"; echo "<ul>"; foreach ($rss->items as $item) { $href = $item['link']; $title = $item['title']; echo "<li><a href=$href>$title</a></li>"; } echo "</ul>"; ?> However, I´m getting the following error: Warning: MagpieRSS: Failed to fetch http://news.bbc.co.uk/rss/sportonline_uk_e...page/rss091.xml. (HTTP Error: connection failed (11) in /inc/rss_fetch.inc on line 237 Channel Title: Warning: Invalid argument supplied for foreach() in /news/news.php on line 20 I've tried with several RSS feeds but get the same error every time. Anyone know why? Rgds, Neil.
×
×
  • 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.