Jump to content
Killersites Forums

grucker

Member
  • Content Count

    97
  • Joined

  • Last visited

Everything posted by grucker

  1. grucker

    Msqli Login

    I was not clear. Eventually I entered mysqli instead of mysql to all the code and it now works. Thanks for your reply and apologies for not responding sooner.
  2. grucker

    Msqli Login

    I have set up a database and a registration form that both work. The log in code I have used for years based on msql will no longer work on my local host. Please point me to a login code which logged in users to the members home page. Any ideas wil be most accepted.
  3. I found 2 working answers and this is the one I used. $name = trim(file_get_contents('../../name.php')); include ("../../../../../accounts/accounts/{$name}/PERIODIC/listofpdfs.php");
  4. I have the following code which works include ("../../../../../accounts/accounts/LINEAR LTD/FIRE EXTINGUISHERS/listofpdfs.php"); I would appreciate any advice on including the company name, e.g. LINEAR LTD from an external file named name.php
  5. I would like to translate a web page text to Bulgarian. How do I get the browser to show the Bulgarian text. I am just getting a series of question marks.
  6. Thank you, just what I wanted/
  7. I need to have a method for explaining a site uses cookies which closes when clicked. I cannot find how. Anyone know any links to information how to do this?
  8. Yes that is the way I normally do it. This time the site requires the owners to update league tables without ftp access and as I will delete obsolete images every month it will not be an overload problem. I will have a look at your link. I know it cannot be difficult. As I said I can get the garbled binary but I am lacking something in the header,(in more ways than one). Will keep looking
  9. I recently added an image as a blob into a mysql database. When I add an image it shows on the webpage required however on return it is gone and asks picture to be added. I have tried several ways to show the image but nothing works. Is this a problem normally? league_1.php
  10. I have a few forms that send to a database and then I pull the information posted to a web page. I have many forms that send an email message. How is it possible to send one form to both database and email. Regards David
  11. So anyone know where I can find out what it means?
  12. Was advised by google my site my have been compromised. a file named external.js contains the following code. function externalLinks() { if (!document.getElementsByTagName) return; var anchors = document.getElementsByTagName("a"); for (var i=0; i<anchors.length; i++) { var anchor = anchors[i]; if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank"; } } window.onload = externalLinks; They say the file contains the following code which I cannot see. What does this code mean and anyone know why I cann
  13. Thanks for your interest, I added the space but it made no difference. The other feeds show correctly without the online code but not this one.
  14. I use various rss feeds on several websites. Similar code is used for all feeds in seperate functions.On one particular site all but one feed are correct the other shows title and date correctly but the description shows with yellow text. <code>function render_products_from_BATLEYRUGBYSMALL() { if ($xml = simplexml_load_file(STORE_XML_BATLEYRUGBYSMALL_FILE)) { $output = "<div>"; // sets loop to 0 $i = 0; // starts looping through products foreach ($xml->channel->item as $item) { $output .= ' <p><a href="'. $item
  15. I understand your feelings. My last few queries have resulted in answering my own poser just as you have done. Wickham is usually helpful. Mainly on html and css but also php now and again. Sorry I can't help. I would have been interested in the answer.
  16. Going back to your earlier point, which asked about clicks and showing new info in the same page. I do it this way. First I make a file which shows the include <?php switch ($_GET['part']) { case 'reports/boxingday.php' : include('reports/boxingday.php'); break; ?> just keep repeating this to point to all other items Then I show the menu to show the link to your item <li><img src="../graphics/osblob.png" alt="blob" style="margin:15px 0px 0px 0px;"/> <p> <a href="?part=reports/boxingday.php">Ostriches Reach Season Peak Early</a></p> <p c
  17. Eventually found this was 2 different problems. The inserts issue was solved by using htmlentities(); Like,, htmlentities($french= strftime("%A %d %B %Y - %H:%M",time())); echo htmlentities($french); The Rss feed issue was one of different coding I am using UTF-8 and the feed was using ISO-8859-1 I found that using iconv() did the trick, like, <p style="margin-bottom:0px;">'.iconv ( 'UTF-8', 'ISO-8859-1', $item->description ). '</p>
  18. If one inserts acute letters, grave letters, ampersands and accented letters in xhtml they show perfectly on the page. However if one uses insert or rss feed they show as � or a square. How does one make them show correctly.
  19. grucker

    Time and Date

    Finally found a way to do this. My wamp server is obviously windows but my web host is Linux. So this goes before the head <?php date_default_timezone_set('Europe/madrid'); setlocale(LC_ALL, array('es.UTF-8','es_ES@euro','es_ES','spanish')); ?> and this goes in the body <?php $spanish= strftime("%A %d %B %Y - %H:%M",time()); echo $spanish; ?> Just change country identifiers for different ones.
  20. grucker

    Time and Date

    I have a time and date using the code echo date("l jS \of F Y H:i:s."); Now I need to show this in several different languages, including French German and Dutch I have tried setlocale(); and echo strftime The date shows but still in English. Any idea how to show the day date and time in Php for the languages suggested.
  21. grucker

    validating xhtml

    Thank you for your help. I use dreamweaver to edit files not notebook. I edited in notebook and followed your instruction but nothing changed. I suspect the browser didnt refresh. Then I noticed when saving this file in dream weaver the following box was ticked non of the other pages had this. Include unicode signature (BOM). I unticked this and saved. Still nothing changed so I deleted the file from the server and opened a new file and rewrote the code uploaded and everything is fine. Your advice has certainly made me check in future before I press save. Thanks again
  22. grucker

    validating xhtml

    I had better start again. The met tag is identical to the one you suggested. All pages on the site are identical except for the title in the head section. All pages except the portfolio page validate. The portfolio page validates with a warning. I just wondered why.
  23. grucker

    validating xhtml

    Thanks for you input. So is the present coding supposed to be ansi? the coding does specify utf-8 but it is the same for all the pages and only this one gets the warning. That was what I needed an answer to but I will look into this ansi thingy.
  24. grucker

    validating xhtml

    I have a php site which validates on every page except one which carries a warning. The head is a php include so all pages have the same code. I realise this is not a problem but I would like an opinion as to why this may be happening. www. sites4eyes .co .uk is the site that validates and www. sites4eyes .co .uk/portfolio.php is the page that carries the warning.
  25. I built a shopping site using the killersites videos. It is reasonably successful but it works well. The only negative. The gentleman who narrated and I suppose made the video is not available to answer any queries so One is left adrift with any false code. However Ben and one or two others did offer valuable advice which helped and Other help was found on google. The site is http://w w w.ultimateskincare .org.uk If you go ahead I will be able to give you the answers to the problems I had. Regards David
×
×
  • Create New...