Jump to content
Killersites Community

antpower26

Member
  • Content Count

    27
  • Joined

  • Last visited

Everything posted by antpower26

  1. antpower26

    .php with html 500 error

    Hi, I've studied PHP and am now building a project with a mySql database, PHP, SQL, PDo, Ajax etc....... This is a really basic and practical question, I have PHP code in my registration form page, firstly this page was HTML, but since adding the PHP for the form validation, I've figured out that the best idea is to change the filetype to .php, I'm not sure whether it is a good idea to embed php in a .html file? However sending all this across to the server when I type in the url on the testdomain I get a 500 error. So what are the best practices, if I want to have php and html co exist, say for form validation, or dynamically changing the html based on something changing in the database and outputting that. Should the whole site be .php, or can you have some html pages linking together with .php that also outputs html. If all pages are .php, because the whole site is working with the server side, is there some configuration setting (ht access?) that needs to be changed in order for the browser to render the html, and consequently the css, jQuery etc........ I know PHP the language well, and I can write programs with it, its just getting all of it working in a browser application:))))))) Thanks Ant
  2. antpower26

    .php with html 500 error

    Hi guys thanks for all your help, the 500 error occurs when there is a fatal error in the PHP, the server stops reading the code. To figure that out you can go to the error logs in the cpanel with your hosting provider. Like firebug but for php....... Anyway that's what I learnt yesterday:))))) Ant
  3. antpower26

    PHP Validation

    Code attached........ register1.php
  4. antpower26

    PHP Validation

    Hi any PHP experts would like to take a look at my code and figure out how I can get the PHP to output the error messages, on a user attempt to submit the form. Also should I assign variables to the print statements, so I can then embed them in HTML, and consequently stylize and position the error messages with CSS. Code attached You can view it here also : http://www.cambrianvacation.co.uk/vpc/register1.php The JS validation is all fine, so maybe turn JS off. Ant
  5. antpower26

    Google custom search

    Hi, I had a chat with my client today, and my SEO on her site is pretty good, however she uses an Android phone from T-Mobile, and the search bar, there is something called Google Custom Search, her website doesn't appear on this form of search engine, although if you search from a different toolbar on the phone it comes up just fine. Does anybody know anything about Google Custom Search, why it exists, and how do I get the website to appear there, I have submitted everything, asked google to crawl, implemented webmaster tools and google analytics, and I've got good results, so why am I not appearing in this mobile search engine. All help appreciated Ant
  6. Hi, I'm building a site and using image replacement, for the navigation, as opposed to using some CSS. In the sites current condition, the image replaces the original image using onmouseover and onmouseout events to create the hover. On the page that that website is on There is no onmouseout, so once hovered the image replacement sticks. However I don't think this is robust enough, as the hover states done with these events, won't naturally activate when that page is active, if the mouse doesn't hover. Does anyone have any better ideas? I'm definately sticking with replacement images, is there are a good JavaScript program, that can activate the image replacement on hover and on active. Thanks Ant Ps Merry Xmas
  7. antpower26

    Pinch zoom problems on Ipod touch/mobile

    Hi, I am currently developing a site for a client, and testing on the Ipod touch, a problem I am having is with the pinch zoom capability. The content on the mobile is too small to read when the site loads, so when I pinch zoom to test the legibilty of the content the background image, doesn't stay constant and the content is unreadable. Here is my code for the body selector in the css : body { background-image: url("images/background.jpg"); background-position:center; background-attachment:fixed; background-size:100% 100%; background-repeat:no-repeat; margin-bottom:500px; } Is there some code which can fix this problem and keep the background more fixed when the pinch zoom is being used. Here is the url of the test site if anyone is kind enough to take a look: http://www.cambrianvacation.co.uk/rosettafire Thanks:) Ant
  8. antpower26

    Pinch zoom problems on Ipod touch/mobile

    Yeah it's fine in iOS but actually the problem is there is android. I have a htc desire to test with running 2.2 and when I pinch zoom with this the user experience isn't that great Also in comparison to the iPod experience Androids webkit seems to render the site smaller, for example the homepage looks good with iOS but looks odd with Android, is there any way you can change the viewport for the android to render the site bigger, and is there any way to solve the said problem of pinch zoom non static background with Android. Thanks Ant
  9. antpower26

    Pinch zoom problems on Ipod touch/mobile

    Thanks Ben through your link I came across this jQuery hack : //stick the footer at the bottom of the page if we're on an iPad/iPhone due to viewport/page bugs in mobile webkit if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod') { $("#footer").css("position", "static"); }; Seemed to do the trick:))) I just changed #footer to body. Ant
  10. Hi If anyone could take a look at my test site http://www.cambrianvacation.co.uk/rosettafire and go to the gallery page. I have built a jqquery fade for the content wrapper as you can see on the other pages on this particular page I have just implemented a jquery gallery fade in, fade out, both are contained in divs, however the slideshow div is collapsing, and not filling out the content div, as normal content would, like on the other pages. How do I get the jquery gallery to not collapse and work with the content div. I wrote the content jquery fade myself, but the gallery fade I copy and pasted from a tutorial. I haven't learnt Javascript fully yet, so don't fully understand the syntax this might be my problem. Thanks Ant
  11. antpower26

    HTML5 Audio

    Hi all Im in the process of building a band website, and one of the pages is entirely audio, I have 5 tracks all of which are mp3, this works in IE9, chrome and safari. I have made copies of the tracks, and want to change the mime type to wav, so firefox and opera users can also listen, does anybody know how I can change the mime type in windows 7. Also for non html5 enabled browsers nobody can listen so as a fallback I'm planning to put a link to the bands myspace page and also suggest politely to users that they might want to update their browsers to say google chrome, so they don't have to go the myspace page. Does anyone have experience of using html5 audio and have any better ideas? and how to change the mime type from mp3 to wav? Thanks Ant
  12. antpower26

    Jquery fadeIns

    Thanks Ben that works great:)
  13. antpower26

    Jquery fadeIns

    Hi I am just coding in jquery for the first time :script type="text/javascript"> $(document).ready(function(){ $("#appearingduo").fadeIn('slow', function () { // fade has finished }); }); </script> </head> The syntax is a little confusing, for that reason. on my current build I am trying to fade in an image, it is working, but I would like the fade in to slow down to say around 2 seconds, I am having trouble making this happen, please help:)))) Ant
  14. antpower26

    Div's overlapping other div's

    Hi, I am trying to finish my first website, however have had problems with the navigation. It is slipping down into the next div/container. Initially I used negative margins to make it visible, however on some machines Firefox 3.6 on Ubuntu. It wasn't visible at all. If I use negative margins also it appears higher up in firefox/ie, but lower in Chrome, so inevitably on some browsers it won't be there at all. The question I have is why is the content of one div appearing in the lower div? I've used z-index to show what is happening and enclosed is the HTML and the CSS. Ive created a nav/div which I've colored red temporarily to show where it is appearing, the menu itself needs to be positioned properly once this problem is solved. So ignore that they are all over the place. I want to solve this problem without resorting to negative margins, as it is not a compete solution. Any help appreciated. Thanks Ant Cambrianvacation.css Day2.html
  15. antpower26

    Div's overlapping other div's

    Thanks very much, I really appreciate you taking the time to have a look, and make comments.
  16. antpower26

    Div's overlapping other div's

    Ok the website has been launched, cambrianvacation.co.uk however it is not finished:) I've been making it responsive and have just finished the mobile version and will launch again. However the problem is the same I used negative margins here, and a developer friend of mine said he couldn't see the nav/menu at all, on firefox 3.6, maybe on Ubuntu. It was ok on Windows7. Yet there seems to be that the content div is overlapping the header div, and I have no idea how to fix it. When I create the menu, it needs margin-top:-#; to appear. However to make this work everywhere isn't the right solution. If you look at the css source code you'll see for .Home there are negative margins and so on. To stop the menu from dissaperaing beneath the content div. Thanks for your help. Ant:)
  17. Hi, I have just about finished my first website, however I need to do some more testing, I already have the means to test in IE all the way back to 5.5, and I have the latest version of Chrome, Safari, and Opera, and also Firefox. Regarding the latter I have been advised to test my sites on older versions of Firefox. I tried to download them, however the last version downloaded replaced the previous version. So how do you test your site on old versions of Firefox, is there some software available, or do you even have to buy some software to enable you to do this. I think its the most popular browser, and I guess many people don't have the latest version. Any help is welcome. Thanks Ant
  18. antpower26

    Testing Website in old versions of Firefox

    Thank you so much, I was searching the web for a good hour few hours to try and sort this out:)))) Also, as there are many versions, which ones should I download, that are the most popular? I have been advised to back as far as version 3. I also run Windows7 64 bit, so I guess there's a limit to what I can actually use. Thanks again Ant
  19. antpower26

    IE Conditional commens

    Hi All I am just trying to write IE conditional comments for IE 6/7, the code is working as in both browsers the specific stylesheet coded fixes the various problems with the CSS. However the problem I have that some of the conditional comment is appearing in the top left of the browser only in IE. The code I am using is: <!--[if (IE6) (IE7)]><link rel="stylesheet" type"text/css" href="IE6.css><![endif]--> The code appearing is before and after the stylesheet code. Any help appreciated. Ant
  20. antpower26

    Fluid layouts

    Hi Everyone, I am currently trying to build a responsive/fluid website. The problem I have is that the content within the container div drops out of the bottom of the div as I shrink the browser window. Is there any way to code your font size to allow it to resize, as the browser resizes. The layout of the site is done in %, apart from the height of the container div, which is set to pixels. Everything is reshaping nicely, as I shrink the browser, apart from the actual text which is falling out of the bottom of the container div. The point of the site is to be responsive, and work nicely across different devices/screen resolutions, but just need some help in solving this problem. Thanks Ant
  21. antpower26

    Fluid layouts

    Thanks for your responses, and sorry for the late reply, the solution I came up with in trying to build a responsive site, was to make the layout fixed, but use media queries to target tablets and smartphones etc, and change things with those. The problem I had in making the whole site fluid was I was using a fixed gradient background for the main content created in Gimpshop, from what I've learned to build a responsive fluid site, the background for the container would need to be more flexible, then you could proportion everything in your site to resize, then target your major layout changes with media queries. A slightly unrelated question I have is, is it ok to specify the height of your container/main content div when designing your page, I was told by a friend that this isn't how you generally go about it. However I like to do as I can see from the outset what I am working with, it works in the browser ok, and I can always adjust it later if I need to. Also are there are any tutorials on designing seperate mobile specific websites?
  22. antpower26

    CSS Layouts

    Hi its Ant. I have just completed the CSS tutorials, both on w3schools and here. This question is about sizing our layout, and which layout is preferred, for more effective results. In the tutorials here, both fixed and liquid layouts were taught. However as I composed my fixed layout targeting 960 width in the main div container, I noticed in the browser view, there was a fair amount of empty whitespace outside of the content. So my question is how do we layout our pages successfully, filling the entirety of the screen, however big or small, and which type of layout is the best way to go, now and for the future.
  23. antpower26

    CSS Layouts

    Thanks very much, that helps a lot:) A question I have actually, how do layouts work with smartphones, when you zoom in and out and everything resizes. Is that something that is built into the hardware? Or is it a case of creating extra code using the @media rule and specifying handheld, and maybe creating a liquid layout specifically for those devices and that market? Thanks again. Ant
  24. antpower26

    Drupal

    The Hwa site, has to be one of the nicest navigation menu's I've seen. Was it easy to create? I have to learn a cms at some point, looks like Drupal might be my port of call. All the best Ant
  25. antpower26

    Silverlight

    Hi Everyone, I am just canvassing peoples views on using Silverlight in building web sites. I have been given Expression Blend to learn how to use Silverlight, along with some tutorials. I am very impressed with what I have seen, and am quite excited about learning it, and using it as part of my web design skillset. I have only been learning web development for 5 months, so I only know so much, like how Flash is not as prominent due to its non use with Apple products, which are going from strength to strenght. So what are peoples views on using Silverlight, and do you think it has a strong future? Is there anything better as a competitor? Thanks in advance. Ant
×