
godster
Members-
Posts
28 -
Joined
-
Last visited
Never
Everything posted by godster
-
Any suggestions anyone? Hair is depleting rapidly! I can post some more of the code if that would help?
-
Sorry guys have updated the link to thepage in question: http://www.godster.co.uk/index_main.html Please help, as i'm now starting on my fingernails!
-
Hi there. I'm in desperate need with some help getting my website off the ground. This is something i've been developing between project, so i'm afraid the code could be a little dirty. I have put this live at: http://www.godster.co.uk/index.html and whilst it redners fine in IE8 and Firefox, i'm getting a number of problems when displaying using IE7. The two main issues i'm having are: 1. On the homepage, the centre box is shifting down the screen. I have tried all cominations of floats, but cannot seem to figure out why its doing this and why only in IE7? 2. On both the homepage and projects page, I have some containers (with blue borders) that feature image links. When displayed through IE7 these images have dissapeared and you are just left with the black container. IE8 and firefox show the image links as expected. You can access the style sheet at: http://www.godster.co.uk/css/DDI.css Please help, i'm tearing my hair out here and cannot dismiss that a share of my potential visitors would still be using IE7. Many thanks.
-
Apologies, no code to hand. I have managed now to change the opacity by using the relevant CSS commands for IE and Firefox, but am still not able to fully create the style i was hoping to achieve. It must be relatively simple to create a semi-transparent container/div over which I'd ad text for example. Have tried doing this with a 2x2 PNG-24 image with 70% opacity from Photopshop repeated across the contained to no avail. Are there any tutorials that might help me figure out what I'm doing wrong?
-
Hi guys. I'm trying to create a navigation which is initally semi transparant but on hovering over the link, displays full opacity. I was attempting to do this in Photoshop with no success. I have tried again and again to create both tiles as PNG-24, which i'd repeat across the Div in CSS, or preferably the transparant section slices that will form the completed navigation (primarily so that I can retain the rounded edges). I have seen this implemented on some sites but cannt for the life of me figure out how i'd do this. Am I doing something wrong in Photoshop or the CSS itself? When I preview my web slices in Photoshop they are showing as solid and not transparant. Some step by step tutorial would be great. Thanks in advance.
-
Yes apologies guys...was hoping you'd be able to have a stab, but I understand that is very difficult without the code. At work now so will update this evening. Thanks in advance.
-
Hi all. After much hair pulling I have finally been successful in implementing a working sticky footer for the site I am developing. There are two problems that It still seems to be exhibiting, that are specific to browsers other than IE. Firstly, in both IE and Firefox, my footer is displaying correctly at the bottom of the visable area, unless there is sufficient content to push this further down the page. In Chrome however, I get blank space underneath the footer where for some reason its not sitting flush with the bottom of the visable screen. The other isses I seem to have in both Firefox and Chrome is that on my products page (pulling data and image location from the database) I have a floated the image (within the content container) so that it sits to the left of the product description and price. The problem is this float in Firefox and Chrome seems to be positioning the images all over the place and breaking the layout. Please any suggestions in both respects would be very helpful. Cross compatability is a bit of a nightmare.
-
Thank Hybride. I did manage to sort this in the end. It was to do with the height properties of my body and html elements.
-
Hi guys. I seem to have a re-occuring problem with backgrounds (colour or image) that is an attribute of my page body, wherby I can never seem to get it to span the entire height of the page i.e. seems to cut off before the end of my wrapper and above the page footer. If I look at the page in something like IE developer toolbar, the page body seems to cut off about two-third down. Any suggestions please? I've finally wrestled my page footer into submission, but now I cannot get my background displaying correctly.
-
On the plus side, I'm finding quite a lot of these "stick footer" tutorials. Is there a consensus on which is the best/most recent technique for a footer that a. sticks to the bottom of the visible area with minimal content and b. floats to the bottom of the scroll on fuller/dynamic pages? Pulling teeth at the moment for what I thought was a fairly simple layout requirement.
-
To add to this, I also now seem to be struggling between having an absolute or relative footer. Absolute seems to appear correctly at the bottom of my shorter pages, fantastic.....but on a longer page, where scrolling is required, it sits up the page overlapping the content. If i switch to relative, for my scrolling page, fantastic...but on my shoter page, the footer moves up about 100 pixels from the bottom of the page. This is so frustrating....please guys help!.
-
Hiya guys having some CSS page layout issues which i'm hoping someone can help with. I've tried to fix the footer to the bottom of the page, which seems to be working. The problem i'm having is that the bottom of the content/wrapper is not meeting the footer. I can see this when I apply a different background colour to the wrapper....there is about a 100 pixel gap between the bottom of the wrapper and the start of the footer. Furstratingly, I seem unable to resolve this, but do want the wrapper, irrespective of the size of the content it contains, to always meet the footer flush. In terms of the HTML, the content sits within the wrapper, but I have moved the footer outside of this wrapper to give it full page width and fix it below. Please help! body { background-color: #000000; margin:0; padding:0; height:100%; } #wrapper { min-height:100%; position:relative; width: 900px; height: 100%; background-color: #000; margin: 0 auto; } #content { width: 425px; margin-left: 210px; float: none; margin-bottom: 25px; height: 100%; } #footer { height: 95px; width: 100%; text-align: center; font-size: 8px; font-family: 'Calibri', Arial; float: left; background-color: #202020; background-image: url(Images/footerpixel.gif); background-repeat: repeat-x; background-position: left top; display: block; position: fixed; bottom: -3px; }
-
[SOLVED] Problems with data param function...please help
godster replied to godster's topic in PHP Coding Help
Think i've resolved this with you help thanks guys. Just wanted to check though, when using the form to upload an image, its placing a file in my 'uploads' directory as I would expect. The corresponding field in the database has the correct file name, yet in the file folder containing the file it is simply named "1", with no file extension. Is this correct? -
[SOLVED] Problems with data param function...please help
godster replied to godster's topic in PHP Coding Help
Thanks Dathremar...this is starting to make more sense. I guess I need to check the format of the columns in my database and ensure that these match the bind parameters. I also only have 4 values to bind so only need 4 corresponding parameters. $pn = product_name so it think this is 's' $p = price so possibly 's' again....can someone explain what is meant by 'double' and 'blob'? $d = description so definitely 's' I would say $i - image_name....'s' again? The result would be: mysqli_stmt_bind_param($stmt, 'ssss', $pn, $p, $d, $i); ....is that right? -
[SOLVED] Problems with data param function...please help
godster replied to godster's topic in PHP Coding Help
Anyone got any suggestions on this please? Its really frustrating me, especially since i'm following a working script... -
[SOLVED] Problems with data param function...please help
godster replied to godster's topic in PHP Coding Help
Line 68 is: mysqli_stmt_bind_param($stmt, 'isdsss', $pn, $p, $d, $i); AwptiK, have tried adding the quotes as suggested, but still recieving the same error. Any other suggestions welcome? -
Hi guys. Trying to follow a script that would provide an form for adding new products to product table in my database. I followed the script through exactly and bug fixed all but a binding issue with the bind-param function. Keep getting the following error when attempting to add products: "Number of elements in type definition string doesn't match number of bind variables in...line 68" Script is as below....please help and suggest where i'm going wrong. <?php # Script 17.1 - add_print.php //This page allows the administrator to add a product. require_once('mysqli_connect.php'); if (isset($_POST['submitted'])) { //Handle the form //Validate the incoming data... $errors = array(); //Check for a product name: if (!empty($_POST['product_name'])){ $pn = trim($_POST['product_name']); } else { $errors[] = 'Please enter the product\'s name!'; } //Check for an image: if (is_uploaded_file ($_FILES['image']['tmp_name'])) { //Create a temporary file name: $temp = 'uploads/' . md5($_FILES['image']['name']); //Move the file over: if (move_uploaded_file($_FILES['image']['tmp_name'], $temp)) { echo '<p>The file has been uploaded!</p>'; //Set the $i variable to the image's name: $i = $_FILES['image']['name']; } else {// Could'nt move the file over. $errors[] = 'The file could not be moved.'; $temp = $_FILES['image']['tmp_name']; } } else { //No uploaded file. $errors[] = 'No file was uploaded'; $temp = NULL; } //Check for a price: if (is_numeric($_POST['price'])) { $p = (float) $_POST['price']; } else { $errors[] = 'Please enster the product\'s price!'; } //Check for description: $d = (!empty($_POST['description'])) ? trim($_POST['description']) : NULL; //Add the product to the database; $q = 'INSERT INTO products (product_name, price, description, image_name) VALUES (?, ?, ?, ?)'; $stmt = mysqli_prepare($dbc, $q); mysqli_stmt_bind_param($stmt, 'isdsss', $pn, $p, $d, $i); mysqli_stmt_execute($stmt); //Check the results... if (mysqli_stmt_affected_rows($stmt) == 1) { //Print a message: echo '<p>The product has been added.</p>'; //Rename the image: $id = mysqli_stmt_insert_id($stmt); //Get the product ID rename ($temp, "/uploads/$id"); //Clear $_POST: $_POST = array(); } else { //Error! echo '<p>Your submission could not be processed due to a system error.</p>'; } mysqli_stmt_close($stmt); } //End of $errors IF //Delete the uploaded file if it still exists: if (isset($temp) && file_exists ($temp) && is_file($temp) ) { unlink ($temp); } //Check for errors and print them: if (!empty($errors) && is_array($errors) ) { echo '<h1>Error!</h1> <p>The following error(s) occurred:<br/>'; foreach ($error as $msg) { echo " - $msg<br />\n"; } echo 'Please reselect the product image and try again.</p>'; } //Display the form.... ?>
-
Hi guys. Would anyone be so kind as to recommend a good PHP shopping cart tutorial that provides a basket type summary that updates as products are added? It would also be extremely useful if the the tutorial explained each section of code as it helps with my studies. Many thanks in advance.