Everything posted by Chris Day
-
One.com Is it legit?
Yea after the first year the domain renewal is £9 per year. Bellow is my last bill from them Product description: Amount in GBP: Web Space Small (15 GB) - 12 months GBP 13.80 Annual domain fee - renewal (.net) GBP 9.00 +20% VAT GBP 4.56 Total invoice amount in GBP: GBP 27.36
-
One.com Is it legit?
I used them for 3+ years for my first ever website (i think i still use them for another site). There admin panel is limited but for a basic website it is great. Never had an issue with downtime, any issues i had the customer support handled very quickly. Plus when i started there they offered 1GB storage + the domain then it went to 3GB, then 5GB and now 15GB. And the prices have stayed the same. One are one of the best hosts ive used if not the best.
-
problem in Encoding the special character & for getting result in php
it is because you are using & in the url this acts as a seperator, try using %26 inplace of the & i.e. mysite.com/index.php?s=html %26 php
- 70 manhours = how many days?
-
How do I convert DIV content into an image
I have used this before and worked well for what i wanted, but we only supported the latest browsers as it was an internal piece of software.
- Need some on twitter bootstrap web form
-
Can I use a contract if i don't have a business and I don't plan to charge the client
I would say use a contract, this will give you valuable experience actually writing up a formal contract for when you actually start getting paid work. Your first few contracts you may miss out vital parts but as it is free work it wont be as bad as if you has a client who was paying for your service
- Twitter names
- How to create an unsubscribe link in Gmail
-
Small PHP code help
where i have: <div class="box" style="background-color: <?php echo $settings["color"]; ?>;"></div>You could change that to <div class="box"> <img src="<?php echo $settings["color"]; ?>.png" alt="color" /></div>Then you would make your images yellow.png, red.png and green.png.
-
Small PHP code help
Try this: -- -- Table structure for table `settings` -- CREATE TABLE IF NOT EXISTS `settings` ( `name` varchar(32) DEFAULT NULL, `value` text ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `settings` -- INSERT INTO `settings` (`name`, `value`) VALUES ('color', '#009900'), ('password', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8'); This is a mysql export of the table so should work.
-
one page websites
I used the hamburger icon on mobile devices for http://cdcoding.com/new/ but it would always stay in the view-port. Once clicked the whole page would turn into the navigation. There may be a few bugs with the above site as i still need to finish it, but as im doing so much coding at work when i get home i have no motivation to finish it lol
-
Small PHP code help
Sorry for the poor indentation of the code, WDF removed the tabs/spaces.
-
Small PHP code help
The SQL code to run in phpmyadmin (or SQL server): CREATE TABLE settings ( 'name' VARCHAR(32), 'value' TEXT ); INSERT INTO settings (name ,value) VALUES ('color', '#009900'), ('password', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8'); -- The default password is password and the default color is a darkish red Now make a file called color.php (or index.php if you want this to be the homepage) <?php /* Change these values */ $DBhost = 'localhost'; $DBname = 'name_of_your_db'; $DBuser = 'name_of DB_user'; $DBpass = 'password_for_db'; /* Leave everything below this line as it is */ $db = new PDO("mysql:host=".$DBhost.";dbname=".$DBname, $DBuser, $DBpass); $settingsQuery = $db->prepare("SELECT * FROM settings"); $settingsQuery->execute(); $settingsArray = $settingsQuery->fetchAll(PDO::FETCH_ASSOC); $settings = array(); foreach ($settingsArray as $val) { $settings[$val["name"]] = $val["value"]; } if (isset($_POST['color']) && isset($_POST["password"]) && sha1($_POST['password']) == $settings["password"]) { $update = $db->prepare("UPDATE settings SET value = :color WHERE name = 'color'"); $update->bindParam(":color", $_POST['color']); $update->execute(); $settings["color"] = htmlentities($_POST['color']); } ?> <!DOCTYPE html> <html lang=""> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title></title> <link rel="stylesheet" href="style.css" /> </head> <body> <div class="box" style="background-color: <?php echo $settings["color"]; ?>;"></div> <form method="post" action="#"> <input type="color" name="color" placeholder="color" /> <input type="password" name="password" placeholder="password" /> <input type="submit" /> </form> </body> </html> make a file called style.css, this you will need to edit to get the style you want html, body { background-color: #555; text-align: center; } .box { width: 200px; height: 200px; display: inline-block; } Please note that this is very un-tested and should give you a base to work from
-
My Invoice Builder let me know what you think
I have to make something very similar to this for a project im working on, but it would automaticly generate them form values stored in the database Overall it looks nice and is easy to use, but i would add the ability to add the addresses for both businesses.
-
adding opacity to table only and not to anchor links. How?
It looks like you have only posted part of your HTML. If you are trying to add a semi transparent background you can use background: rgba(RRR, GGG, BBB, OOO);
-
adding opacity to table only and not to anchor links. How?
Can you post the code here or provide us with a link? JS Fiddle if a handy tool
-
Does anyone else notice something slightly odd...
A different word in a different location each day ... kind of like a treasure hunt
-
Always hiding div until Event
Sur just PM me the link
-
Always hiding div until Event
Why not set the orange element hidden from the page by giving it a negative x000 top position. I have updated your script: http://jsfiddle.net/uL8z4p1h/2/
-
2 Beginners Problems
No problem
-
2 Beginners Problems
This will fix the issues with the new line on the navigation, just replace Emma.css with this: .nav a { color: #5a5a5a; font-size: 14px; font-weight: bold; padding: 14px 20px; text-transform: uppercase; } .nav li { display: inline; } /* no Pull left was added */ .pull-left { float: left; } .pull-right { float: right; } .jumbotron { background: url(Emma3.jpg); height: 1200px; background-repeat: no-repeat; background-color: black; padding: -10px; /* add this to fix the float issues */ clear: both; } .jumbotron .container { position: relative; top:10px; } .jumbotron h1 { color: #fff; font-size: 48px; font-weight: bold; text-transform: uppercase; } .jumbotron p { font-size: 20px; color: #fff; } .cc { font-size: 11px; color: #5a5a5a; float: right; }
-
How do I use jquery/ajax/javascript to reflect changes
I don't have flash active on chrome so it must of fell back to a html/php script. There are two ways you can do this. 1) Use PHP GD Libary to load the image and then add the text. and use html to send the text 2) Use JQuery to add the text over an image like this example or this (same as other example, i just added the ability to move the text)
-
Advanced image search
How many photos are you wanting to search throgh?
-
Weekend Projects!
For what languages? I.E. for javascript you could make a simple game like cookie clicker or 2048 Or if you want to learn a server side language like PHP build a text based game. I like to make games as you learn alot more rather then just doing the regular "build a guestbook" tutorial, plus at the end you get to play a game