Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Anth Winter

Members
  • Joined

  • Last visited

Everything posted by Anth Winter

  1. Anth Winter replied to Stuey's topic in Frontend
    If by wrap you mean <div> within a <div> then yes, you can. <div class="parent"> <div class="child"> </div> <div class="another-child"> </div> </div>
  2. Anth Winter replied to Stuey's topic in Frontend
    I'm afraid that feeling occurs a lot in the developing world haha. It can be stressful but also rewarding, just keep at it
  3. Anth Winter replied to Stuey's topic in Frontend
    I'm guessing the image of the blue car and the dates on your screenshot should be positioned on the right of the dark red area? Is that your problem? Do you have somewhere on the web to upload the html and css so I could look at the full code and where its being applied.
  4. Hi JLS and welcome. Could you post links to each page/button on the site so that I could check the code that is being given to the buttons
  5. Anth Winter replied to Stuey's topic in Frontend
    Hi Stuey, could you link to the example of this somewhere? Or provide the code and details which parts of the code have the problem
  6. ok ive managed to use mysqli now, I just had to change a few things after reading up on it. But my original question still stands, any ideas? Id like to find out the reason it might of done this rather than just dismiss it, if anyone is able to help?
  7. mysqli does not work on my setup, i have tried it, hence the reason of using mysql.
  8. resolved this by using the below. But if anyone knows why the previous query wouldn't work then that would be cool. Thanks. $query = mysql_query("SELECT * FROM fixtures WHERE DATE(date) > NOW() LIMIT 1", $connection);
  9. I have a MySQL table where one cell of each row contains the date stored in a date format. e.g. YYYY-MM-DD. On the website, i want to show the "Next Fixture". So I want to pull the fixture from the database that is > "today", then display it. I have this currently: $query = mysql_query("SELECT * FROM fixtures WHERE DATE(date) > ". date("Y-m-d") ." LIMIT 1", $connection); while ($row = mysql_fetch_array($query)) { echo "<p class=\"xsmall uppercase\">".$row['hometeam']." v ".$row['awayteam']."</p>\n<p class=\"xsmall grey\">".$row['date']." ".$row['faceoff']."</p>\n<p class=\"xsmall grey\">".$row['venue']."</p>"; } I have an entry in the database that has today's date 2013-02-09. And the above code is displaying that result, but im not sure why when the query states > today. Anyone help? thanks in advanced.
  10. thanks, your code actually did work, it was just me trying to call data from a table name with a typo in it ha. Thanks for your help
  11. oh and thanks, ill start using the mysqli thing too
  12. thanks for the reply, that makes more sense to use array push! although i have tested your method and its only writing "end end end" to my file. So i tried doing: while ($row = mysql_fetch_row($r)) { array_push($list, $row[0]); array_push($list, $row[1]); array_push($list, $row[2]); array_push($list, $row[3]); } But no luck either, im still trying to look at the problem so will let you know if i find out what it is. Dont suppose you have any further ideas?
  13. Hi everyone. My aim here is to have a database I have in MySQL write to a csv file when the person visits a link via PHP. So they visit the link -> then the PHP calls the data from MySQL -> that is the written to an array -> which is used to create the csv cells. I have the below so far after reading documentation on PHP.net $query = mysql_query("SELECT * FROM my_table", $connection); $list = array ( while ($row = mysql_fetch_array($query)) { array(.$row['first-name']., .$row['last-name']., .$row['email'].), } array('end', 'end', 'end') ); $fp = fopen('file.csv', 'w'); foreach ($list as $fields) { fputcsv($fp, $fields); } fclose($fp); I know the above will not work, but i cant seem to figure out how to work around this using the "while" loop to call all the data. Anyone who can shine some light on a work around would be much appreciated. Thanks in advance.
  14. CSS can do some great styling to form elements. A site i came across for example... http://37signals.com/svn/posts/2609-customizing-web-forms-with-css3-and-webkit/
  15. I've seen translation options available on foreign posts on Facebook, but it does seem its not always there. It must only be if its able to understand the content enough to return a result.
  16. Thanks for the replies, ill try that out thanks
  17. Hi, i have my page setup so that people who visit the site order form are firstly prompted to submit how many guests they are ordering for. Once they have chosen there number, e.g. 4. They submit this and the page reloads and gives them a table with 4 rows (or whatever number they selected) that allows them to enter the guests details: name, starter, main, dessert. This information is then submitted and sent in an email to the restaurants email address. The problem i have is that the restaurant asked me to allow the form to submit upto 40 people if they wanted. So when the email is sent to the restaurant, if it was only for 4 people... it will give them details, but then the rest of the email will have 36 blank entries like so: Person 1: John Doe Person 2: Fred Doe Person 3: Julie Doe Person 4: Frank Doe Person 5: Person 6: Person 7: Person 8: Person 9: Person 10: ....etc up to 40. The solution i need is so that i can make it only send the email with the number of people WITH data, and to not send it with the people WITHOUT data. my code is below. for lack of repeating, i have only used upto 5 people, not 40. The first thing they see is this simple select option form ONLY: <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <table class="guests"> <tr> <td><p>How many people are you booking for?</p></td> <td> <select name="guests" id="guests"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </select></td> <td> <input type="submit" value="Submit" id="submitguests" name="submitguests" /> </td> </tr> </table> </form> Once that is submitted they then see this form: <?php if(isset($_POST["guests"])) { echo " <form method=\"post\" action=\"orderform.php\"> <div class=\"fodiv\"> <table class=\"booker\"> <tr> <td><p>Name of Person Booking</p></td> <td><input name=\"fullname\" type=\"text\" id=\"fullname\" /></td> </tr> <tr> <td><p>Date of Booking</p></td> <td><input class=\"date-pick\" type=\"text\" name=\"bookdate\" id=\"bookdate\" /></td> </tr> <tr> <td><p>Phone Number</p></td> <td><input name=\"phonenum\" type=\"text\" id=\"phonenum\" /></td> </tr> <tr> <td><p>Email</p></td> <td><input name=\"emailaddr\" type=\"text\" id=\"emailaddr\" /></td> </tr> </table> <br /><br /> <p>You are booking for <span class=\"big\">{$guests}</span> people. Please enter your order below. Thank You.</p> </div><!-- fodiv --> <table class=\"people\"> <tbody> <tr> <th class=\"col1\"><p> </p></th> <th class=\"col2\"><p>Name</p></th> <th class=\"col3\"><p>Starter<br /><span class=\"small\">(Choice of Dips if applicable)</span></p></th> <th class=\"col4\"><p>Main Course<br /><span class=\"small\">Please also indicate (F) for Fries & (r) for Rice if applicable</span></p></th> <th class=\"col5\"><p>Any Dietary Requirements</p></th> </tr> "; } for ($i = 1; $i <= $guests; $i++) { echo " <tr> <th>Person {$i}</th> <td><input name=\"person{$i}\" id=\"person{$i}\" type=\"text\" /></td> <td><textarea name=\"starter{$i}\" id=\"starter{$i}\" type=\"text\"></textarea></td> <td><textarea name=\"maincourse{$i}\" id=\"maincourse{$i}\" type=\"text\"></textarea></td> <td><textarea name=\"dietary{$i}\" id=\"dietary{$i}\" type=\"text\"></textarea></td> </tr> "; } ?> <tr> <th> </th> <td> </td> <td> </td> <td> </td> <td><?php if(isset($guests)){ echo "<input type=\"submit\" value=\"Submit Order\" class=\"submitorder\" id=\"submitorder\" name=\"submitorder\" />";} ?></td> </tr> </tbody> </table> <input name="sendto" type="hidden" value="xxxx@xxxxxxx.co.uk" /> </form> This is the PHP that collects form submit data and sends in email: if(isset($_POST["submitorder"])) { $sendto = $_POST['sendto']; if(isset($_POST['person1'])) { $person1 = htmlentities($_POST['person1']); $starter1 = htmlentities($_POST['starter1']); $maincourse1 = htmlentities($_POST['maincourse1']); $dietary1 = htmlentities($_POST['dietary1']); $guestplaces = 1; } if(isset($_POST['person2'])) { $person2 = htmlentities($_POST['person2']); $starter2 = htmlentities($_POST['starter2']); $maincourse2 = htmlentities($_POST['maincourse2']); $dietary2 = htmlentities($_POST['dietary2']); $guestplaces = 2; } if(isset($_POST['person3'])) { $person3 = htmlentities($_POST['person3']); $starter3 = htmlentities($_POST['starter3']); $maincourse3 = htmlentities($_POST['maincourse3']); $dietary3 = htmlentities($_POST['dietary3']); $guestplaces = 3; } if(isset($_POST['person4'])) { $person4 = htmlentities($_POST['person4']); $starter4 = htmlentities($_POST['starter4']); $maincourse4 = htmlentities($_POST['maincourse4']); $dietary4 = htmlentities($_POST['dietary4']); $guestplaces = 4; } if(isset($_POST['person5'])) { $person5 = htmlentities($_POST['person5']); $starter5 = htmlentities($_POST['starter5']); $maincourse5 = htmlentities($_POST['maincourse5']); $dietary5 = htmlentities($_POST['dietary5']); $guestplaces = 5; } $fullname = htmlentities($_POST['fullname']); $bookdate = htmlentities($_POST['bookdate']); $phonenum = htmlentities($_POST['phonenum']); $emailaddr = htmlentities($_POST['emailaddr']); $content = "Booking Form for {$guestplaces} People.\n Name of Person Booking:\t{$fullname} Date of Booking:\t{$bookdate} Telephone Number:\t{$phonenum} Email Address:\t{$emailaddr}\n Person 1:\t{$person1} Starter:\t{$starter1} Main:\t{$maincourse1} Dietary:\t{$dietary1}\n Person 2:\t{$person2} Starter:\t{$starter2} Main:\t{$maincourse2} Dietary:\t{$dietary2}\n Person 3:\t{$person3} Starter:\t{$starter3} Main:\t{$maincourse3} Dietary:\t{$dietary3}\n Person 4:\t{$person4} Starter:\t{$starter4} Main:\t{$maincourse4} Dietary:\t{$dietary4}\n Person 5:\t{$person5} Starter:\t{$starter5} Main:\t{$maincourse5} Dietary:\t{$dietary5}\n "; $headers = 'From: xxxxx@xxxxxxxx.co.uk' . "\n" . 'Reply-To: ' . "$emailaddr" . "\n" . 'X-Mailer: PHP/' . phpversion(); $mailSent = false; $mailSent = mail($sendto, 'Website Order Form Submission', $content, $headers); if ($mailSent) { $msg = "<div class=\"green\"><p>SUCCESS: Thanks {$fullname} - Your order has been sent.</p></div><br />"; unset($_POST['guestplaces']); unset($_POST['fullname']); unset($_POST['phonenum']); unset($_POST['emailaddr']); unset($_POST['bookdate']); unset($_POST['person']); unset($_POST['starter']); unset($_POST['maincourse']); unset($_POST['dietary']); unset($guestplaces); unset($fullname); unset($phonenum); unset($emailaddr); unset($bookdate); unset($person); unset($starter); unset($maincourse); unset($dietary); unset($peoplehere); } } ?> Thanks in advanced for any help able to be offered!
  18. I am designing a website for a client, the products of the website are coming from another company as my client is going to be drop shipping for them. The company has given me .CSV and .XML version of there entire product list. However it does not have all the product information in it, mainly it does not include the description of the item. I queried this with them and they said they don't include the descriptions as it would make the CSV file to large. So i went and looked at their website and they have .html extensions for their product pages, so i don't understand how they can bring in content from a database using a .html extension? I want to make the URL of my clients site search engine friendly, e.g. www.website.com/title-of-the-product.html I just need a little help in understanding the process of doing this as i am only familiar with pulling MySQL information with PHP and displaying on a .php extension page, but therefore ending up with a URL like this: www.website.com/product.php?=3435 I hope I've explained OK and any help would be appreciated, thanks in advanced. I'm hoping to not use any shopping cart software as it will be a simple (as it can be) shopping cart system to send information to PayPal.
  19. Hi, heres a quick take on what you are wanting... posistioning is not ideal but hopefully you can get the idea of how to do it by this and posistion it how you want it. Link: http://www.digitalwinter.co.uk/test/Untitled-1.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="css.css" /> <title>Untitled Document</title> </head> <body> <div id="above"> </div> <div id="footer"> <div id="footer_left"> <p>Copyright</p> </div> <div id="redcircle"> <img src="circle.png" /> </div> <div id="footer_right"> <p>Design By</p> </div> </div> </body> </html> * {margin:0; padding:0;} body {color:#fff} #above {width:100%; height:400px; background:#333;} #footer {width:100%; height:30px; margin:0 auto; background:#000;} #footer_left {width:200px; float:left; text-align:right;} #redcircle {width:50px; float:left; position:relative; bottom:25px;} #footer_right {width:200px; float:left;}
  20. Welcome to WDF, ive seen you helping out round here already. Hope you enjoy the boards
  21. I use dreamweaver but only to code in... I know there might be better ones out there to code in, but im too used to Dreamwweaver and its color coding etc. I would never advise anyone to use design view in dreamweaver. Not even for previewing your code that you've wrote in it.
  22. I checked out your background, I stretched my IE8 browser across two 17" screens and it kept in proportion and still looked fine blending wise think you may have that one sorted.
  23. First thoughts: Background image isnt to bad, but maybe have your main content area less transparent so you can read the text better, i was still kinda focused on the image in the background whilst reading. Navigation is smart, nice use of the football pictures The right column where the "News" section is has some spacing above it (im viewing in IE8) which im not sure i like The footer seems to be scrunched up in the bottom right, its on 2 lines, maybe widen the div width to make it stretch all in one line? Looking at the HTML/CSS... it seems you can posistion your main content better with some extra styling. Always set widths on your <div> id's in CSS. I always tend to set "float:" to my CSS divs too, so that they know where they are meant to be. It looks like "#content" is your container for you main content section.. So you should set the width of that to the width of your site, 895px? Then your "#introduction" should have a CSS value added "float:left" and a "width:" should be set to it (maybe 600px -ish?.. your choice) Your "#news" and "#latest_testimonials" div already has a "float:right" value so all you need on that is edit the value of width to the rest of the space avaialbe on the right (after you set the #information" width) I would also recommend merging "#news" and "#latest_testimonials" into one DIV as there is no need for two (less code you see). Lastly your "#footer" does not need "margin: 0 0 0 510px;" You could add the value "float:right" and set a "width:400px" to it, so that the text fits in on one line. I hope this doesnt mess with your mind and gives you a better idea on DIV posistioning, I have tried to explain best i can.. but if you have any questions about what i just said just ask away...
  24. The design is very good, certainly feels and looks like a wine site. One tiny critique I would have is that the navigation doesnt feel part of the site, its all the way up top and out the way. When I landed on your page my focus point is ur title area with the pictures, so immediatly I was looking down at the content from there. Good job otherwise

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.