- Strength to Increase Rep
- +9
- Strength to Decrease Rep
- -2
- Upvotes Received
- 170
- Posts with Upvotes
- 133
- Upvoting Members
- 83
- Downvotes Received
- 12
- Posts with Downvotes
- 11
- Downvoting Members
- 9
For some reason, I love to run and go mountain biking (I'm also a keen photographer!).
- Interests
- Computer Science, Business, Astrophysics, IT, Athletics, Cycling
- PC Specs
- A Quad-i7 (16GB RAM) with a linux / windows7 ultimate partition
431 Posted Topics
Re: You have to learn the rules of the game. And then you have to play better than anyone else. ~ Albert Einstein | |
Re: > Some people are incapable of feeling good about themselves unless they are looking down on others. Too true... I hate how the geeks in films can hack into anything the baddie wants within seconds. They always try to use big words like "server" and "firewall" or "protocol", just to … | |
Re: > Drinking lots of coffee. Went to bed at 11pm, awoken at 1am the mobile phone of my partner. Long story short, son-in-law taken to hospital in ambulance, drove partner over to look after sleeping granddaughter, have been at the kitchen table working since 2am. Boys to get to school … | |
![]() | Re: The other week I saw **The Inbetweeners 2**, very funny but for a very select sense of humour! |
Re: It also uses font awesome for the icons, not images @gentlemedia, so: add `<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">` to the `<head>` and replace `<img src="icon-2.gif" alt="Icon 2" />` with `<h1><i class="fa fa-globe"></i></h1>` Hope this helpes :) | |
Re: Because the evidence you've got here definitely looks very good, is there any way you could contact Google and flutter your eyes at them, and they might be really nice? And maybe DaniWeb should *consider* a tighter moderating system, not to re-write posts but to step in with stupid things … | |
Re: Only 4% of the energy in a standard light bulb is light, the rest is heat West Virginia (USA) holds an annual "Roadkill Cook-off" Abraham Lincoln's Gettysburg address was only 237 words long A typical bed houses over 6 billion dust mites *.. could go on forever ..* I pick … | |
Re: A friend of mine did his BA In software engineering at Oxford, then left for Harvard to do the masters in computer science, and finished with a PhD from the MIT, where he is now a Professor ;) Im about to do my last year of MCompSci at Oxford, maybe … | |
Re: Add this somewhere in your stylesheet, or find it in the bootstrap CSS file (usually line 5 of bootstrap.min.css) and change it there. .navbar-default { background-color: #f8f8f8 !important; border-color: #e7e7e7 !important; } | |
Re: Note: read http://php.net/manual/en/faq.passwords.php#faq.passwords.fasthash sha1 is not safe, do not use it! Have a read through [this](http://php.net/manual/en/book.password.php) and at the very least use the `crypt()` function. Lau has sort of narrowed down how to do the login system: hash the corrct password when saving the user, hash the entered login password … | |
Re: phpBB 3.0.12 is (and can have mods to make it even better) pretty good at stopping spam, so maybe still worth looking at. Other free ones could be SMF or MyBB, but really phpBB is the most established and is known to handle much larger forums. If you're really despirate … | |
Re: ^ Read what they are saying: this is garbage, start looking at a server-side language. | |
Re: ^ Agreed :) BTW - a little off-topic pointer: Because `if(){}` looks to see if a statement is true, and will do an `else` if not, you do not need `== true` (PHP will do this automatically) So this: if(mysql_connect("$dbhost", "$dbusername", "$dbpassword") == true) Will do the same as this: … | |
Hi All, I've just tried to get going with Django using MySQL, but linking them has been a nasty headache. I am using Python v3.5, Django v1.9 and MySQL 5.6. I've definately got MySQL/Python talking, but Django always has the problem: File "X:\Program Files\Python\lib\site-packages\django-1.9-py3.5.egg\django\db\backends\mysql\base.py", line 25, in <module> import MySQLdb … | |
Re: Nothing worse than bad grammar, simply just makes the person look like an idiot. My Mum always used to stop us and make me and my brothers say everything again if we couldn't word things properly. I wish parents could take that up again! | |
Re: > Any one there to help no one is helping me I am stuck up please some one help me out Since you're not paying me (and everyone else here), we will respond when we can. Demanding help to just come isn't going to work, I'm afraid. If only one … | |
Re: **[Copy](https://www.copy.com/page/home;section:landing)** - I've used it for a little while now and can't fault it. It's an excellent site **15GB of FREE space, plus another 5GB for refferals**! Includes sync, no file limits and 30 day history & recovery. As with dropbox, two users can share data between two accounts. | |
Re: In the nicest possible way, ` ` characters were never going to display correctly. Yes tables are bad practice, but the correct alternative involves a CSS grid system. By all means give [this](http://purecss.io/grids/) a go and see how you get on. The beauty of grids is that, once you get going … | |
Re: You users table is fine. (Make sure you're using the right datatypes - varchar(X)/int() - and A_I/PRIMARY_KEY for the ID) Item Desc: ID,NAME,TYPE,ATTACK (again with correct datatypes) Inventory: ID, USER_ID, ITEM_ID, [.. anything else you might need] (all int() datatypes, with A_I/PRIMARY_KEY for the ID) Use a new row for … | |
Re: I think what you're doing here is either weird on unclear. So my understanding is, you add a row (ID = 1, TIER = 1, PARENT = 0) then when you add another row the TIER should increment (ID = 2, TIER = 2, PARENT = 1). This should happen … ![]() | |
Re: I think your DB is pretty much there (indiviual opinions may differ), but you know your application best. You can do a PHP/SQL loop like: $date = time(); // today $days = 10; while($days > 0) { // SQL-> "SELECT COUNT(*) FROM tblbreakups WHERE breakondate='".date('Y-m-d', $date)."'" if($result_count == 0) { … | |
Re: Remove the ` ` in your HTML, and set your margins in css: @media screen and (max-width: 320px) { .menubar1 > a { box-sizing: border-box; display: block; font-family: arial, helvetica, sans-serif; padding: 0; margin: 10px 0; } } **Notes:** * There is no need to repeat your code in the @media … | |
![]() | Re: Any news on this guys? Looks really good! To tell the truth, I'm very jelous of this partnership. |
![]() | Re: I have been using phpStorm for a little while now, and it has grown on me enough to invest in other JetBrains tools for other projects. The thing I like, is that it seems JetBrains have crafted the IDE to fit a "by developers for developers" concept. Project handling and … |
Re: **Well if you have a two week deadline and a pressing client you should not have taken on the work without telling your employer you have no idea what you're doing. Simple as.** It all depends on the clients specifications and wireframes, to the point where generic plugins may not … | |
Re: Agreed that maybe the `if` block needs sorting, and please PLEASE put a [real escape](http://php.net/manual/en/mysqli.real-escape-string.php) on those variables: (line 5) `$pkgname = mysqli_real_escape_string ( $connection , $_POST["pkgname"] )`. Additional validation would be a good idea, but isn't necessarily essential. After line 16, add a new line with `print_r($_POST["pkg_detail"]);`, so we … | |
Re: Firstly, **`mysql_*` is dead now** - `mysqli_*` should really be used. Also, there's no housekeeping here!! Your query is a lovely advert for SQL injection! `session_start()` should be the very first thing on your page: before output of any kind. You also have several messy `<option>` tags: only one can … | |
Re: Sorry I've just accidently half-mentioned this [here](https://www.daniweb.com/community-center/daniweb-community-feedback/area-51/threads/496094/chat-popup#post2176435). I haven't got any other windows open, and with every new page I have to do the same again to close it. | |
Re: Please tell me that you have a `<head>` and that you've just randomly decided to show the end of the page and not the start. Also, please, PLEASE, indent your code properly and only put a neccessary amount of gap lines in to keep it readable. Frankly, your code is … ![]() | |
Re: 3D in photoshop to create an animated GIF would probably be easiest - I can't think of any other way without using CSS transformations, but to be fair, if your users are still using IE8 than they're already doomed. Maybe suggest they upgrade, or have a static IE8 fallback alternative? | |
Re: If it's that good, why sacrifice it for Blogger? Why not invest in some cheap hosting that would allow Wordpress? Personally, I don't find many Blogger templates that exciting, because most decent designers/developers have realised the power and versatility of Wordpress, so don't bother looking at Blogger. If I were … ![]() | |
Re: > https://www.daniweb.com/web-development/php/threads/435023/read-this-before-posting-a-question How many times that has to be quoted to people around here incapable of common sense. | |
Re: You should *always* make a habit of keeping up with newer versions, mainly because these versions are released for a reasib (security patches, bugs etc.) I think PHP v5.3+ should cover it, but we are currently on v5.6, so you really should've upgraded a long time ago. MySQLi is a … ![]() | |
Re: Start by building some simple queries, most of which can be done by replacing functions (like L21 `mysql_query()` with `$insert_row = $mysqli->query();`). You should slowly see the transformation as not too difficult as soon as you're used to the `mysqli_*` functions. Take a look at these to get going: http://www.sanwebe.com/2013/03/basic-php-mysqli-usage … ![]() | |
Re: So you are having problems overruling css rules to change the background image on the odd few pages? If so, have that code in your style.css file or whatever, and then on the pages that need a different background image use the `<style>` tag in the `<head>` or embedded CSS … | |
Re: Going on what @Gideon_1 first said, here is the `mysqli_*` version of his example (I haven't had a chance to test it at all yet, but I think it should work). Hope this helps: <?php session_start(); // database connection $mysqli = new mysqli('host','username','password','database_name'); ... Check connection ... //if form is … | |
Re: My rates are $5,000 per hour. Show some effort, **Google it**, try some code, then stop spamming us with your email address - why would any one email you when we can collectively help here? | |
Re: A Formula 1 world-class racing driver who hasn't passed his driving test | |
Re: So basically there aren't any real pros and cons other than how the people needing to use the languages find them. As @rubberman says, PHP is far more neutral. If you use ASP.Net, you are committing to using Windows servers to run your site, which can be more costly. If … | |
Re: Have you even Googled it? Where did you get? Because I googled it and the top result ([here](http://www.sitepoint.com/the-mvc-pattern-and-php-1/)) is an amazing tutorial. I assume you already understand OOP in PHP, as that would be very helpful. There are loads of tutorials availible should you need. | |
Re: My copyright thief alarm is screaming. Why would we help you write something that is going to crawl around other peoples websites and nick all of their content? Sounds very dodgy indeed. I think it is fair to say, lets not carry on with this thread until a very good … | |
Re: 30% of people would prefer to buy something via the internet on a tablet, and nearly that again would prefer mobiles. The age of desktop browsing has long been replaced by that of the mobile world, where 57% of people use their phones to regularly browse the internet. Yes, you … | |
Re: We need to see the array in `$row`, and how you are placing this into your `$data['graph']` variable. How can we show you how to manipulate an array if we don't even know what we're starting with aha? | |
Re: bootstrap.min.css, line 9: `.navbar-inverse .navbar-inner` is the one to change. Or a quick fix would be to overwrite it with this: .navbar-inverse .navbar-inner { background:#00ccff !important; } | |
For the last month (and the preperation weeks before that) it's been tough getting 19 exams out of the way, my worst being four 1hr 30min exams on one day! Revision has been tough, leaving no time for DaniWeb :( Now we've got until september to relax, before starting 6th … | |
Recently I've stumbled on a nice tool that I really quite like, so I thought I'd share it: Personally, I love the power behind PHP. I find it a very simple to use yet possesses the techniques seen in the more complex desktop applications such as Perl/Python/C/C++/C# etc. PHP has … | |
Re: Remember you need an ORDER BY to get them in date order, and a LIMIT to get the specified amount as well. Nearly there on the foreach, change it to this: foreach($result as $row) { echo $row['Title']; echo "by: " . $row['Author']; echo "<br>"; echo $row['Content']; echo "<br><br>"; } <!-- … | |
Re: There's no way to access a return value from `window.print()` I'm afraid. However, IE5+ and Mozilla 6+ both have the `window.onafterprint` method, which would do exactly what you require (calls a function after printing has taken place). This is achieved in the following way: function myFunction(){ ... } window.onafterprint = … | |
I was looking for something similar myself a few days ago, and found the odd example of a CSS based monopoly-type game board. To be honest, they were all shabby examples made with code that left my eyes bleeding. I decided to make my own board and get it right … |
The End.