431 Posted Topics
Re: Which elements are you talking about specifically, as some have overrides and stuff to cause problems. Maybe worth posting a browser screenshot so we can see what you're seeing. BTW: it says in your signature "Never allow just anyone access to your database", but your code is soo vunerable to … | |
Re: Is the span tag even likely to change CSS class? Because if not, why are you storing the whole tag? Why not just the time (and class)? Good practice not to store unnecissary stuff in your DB when it can be done later. | |
Re: As long as England beat France this year then I'm cool aha. It'll be interesting if Wales can turn things around in their game with Ireland in a couple of weeks. | |
Re: I think I can sort of see what you're asking, you mean do something like this? ([ref](http://php.net/manual/en/language.variables.variable.php#50912)) $type = '123'; $name_123 = 'hello'; echo ${"name_$type"} . "\n"; // prints "hello" When @MDUK says "quite messy", he really wasn't joking. Thats a complete mangled mush, and very awkward to work with. … | |
Re: Important to note: You've got `$result` containing the query results for an entire row that matches the username, not the password. Also, avoid md5() at all costs, you need to be using another encryption method (since md5 is old, outdated and insecure). Loot at the PHP [hash()](http://php.net/manual/en/function.hash.php) function. | |
Re: In addition to Laravel, since it seems to be having a few "teething problems" with version 5, consider other frameworks. IMHO, CakePHP is the leading PHP framework for novices. It has amazing docs, and is a very constrictive framework. While this may be a tad awkward for some experienced developers, … | |
![]() | Re: I haven't actually built anything with v5 yet to showcase yet, but judging by the [release notes](http://laravel.com/docs/5.0/releases), there shouldn't be too much of a problem with rolling with 4.2. Naturally this will change as bugs and security glitches are found... To me (as a relative newbie to laravel), the docs … |
Re: Well it might be helpful to see your directory structure and upload script..? Common sense. | |
Re: Dont forget to take a look at the [font awesome](http://fortawesome.github.io/Font-Awesome/icons/) library! To use it, shove this in your `<head>` section: <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> Then do this wherever you want to use an icon: <!-- Instead of this --> <span class="icon-home"></span> <!-- Use this --> <i class='fa fa-home'></i> Then you can … | |
Re: Well I'm certainly no moderator and I had the same problem a few weeks ago (and was the one that mentioned it to Dani). Does that mean it's now fixed for normal members too? | |
Re: If the child theme has been changed or had any work done on it by a person (which it probably has), therefore the changes/work/theme is copyrighted to them. It will be very clear from the author if you are allowed to use their theme (and if you need to pay … | |
Re: If you are building a product in PHP on this type of server setup, you need to be sure you're happy with this. Its quite a rare configuration, therefore knowledge, upgrading and support will become difficult. Generally (as @JorgeM points out), ASP.Net is the more common choice for this sort … | |
Re: CMS'/frameworks have vast ability differences. We can talk about generalized pros/cons all day, but the biggest influence should be your ability. If you've written a fairly decent PHP application before, with maybe some experience in OOP, frameworks are an option. If you want to keep it simple and problem-free CMS' … | |
Re: Try using the `«` or `«` and `»` or `»` HTML codes. These show the double arrows as one character, rather than two `<` characters - which is a common reason why arrows like this don't match. [ASCII Reference here](http://www.ascii.cl/htmlcodes.htm) [Unicode Reference here](http://unicode-table.com/en/#00BB) | |
## Introduction ## Ever since the dawn of programming, we have had the luxury of variables, OOP, functions and other lovely tools within our languages. CSS is arguably the easiest language to ever pick up, with everyone having to learn it’s basics. However, it lacks any power, as we have … | |
Re: Your link doesn't work? I'm finding it quite difficult to understand what you mean, but I'm guessing that you've changed some CSS or something and the site doesn't look the same. If so, this has nothing to do with cookies. Theres clearly a problem in your CSS. What exactly were … | |
Re: Feel better soon happygeek! (I'll be nice, as diafol was trying so hard to make you feel better ;P) > last night, I bought a laptop!!!!!!!!! Here we go, Dani's bought another $8,000 monster with 64GB of Ram just to show off ;p | |
Re: Here is a link to the [OSWASP Top Ten](https://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project). They provide a few simple steps to securing your application. Personally (if you haven't already done so), write a function to sanitize something like XSS. Then go through your code (unfortunately line by line) and call the function every time code … | |
Re: Very good advice on storing the data. > How can i switch between questions? Well that depends on what questions you would like to ask. You need to come up with a diagram of all the questions you could ask, depending on what answers you get. For instance: Name? --> … | |
Re: What about park the old domain on your new server? | |
Re: Also, don't forget to look at [Google Fonts](http://www.google.com/fonts/)! They make insterting fonts easy, and theres a massive selection of all types of fonts. | |
Re: Just as a warning that many people forget: Port forwarding and suchlike is **extremely dangerous** in terms of security, and should only be done if you know what you are doing. Generally speaking, hosting companies have specialist ISPs, so there is no need for a standard ISP to deal with … | |
Re: It's personal choice. You can go to `facebook.com/index.php` and to `google.co.uk/imghp`. Both respectable sites that obviously rank very highly on search engines. To be honest, the world would've taken a nasty turn if bots were going to penalise you for something so small. Social media interaction, quality of code/content, up-to-date … | |
Re: Sorry my magic ball is in the shop for repairs, so please at least try to give us a clue to what you're on about. How do you mean generated? Have you saved a HTML file and you've opened it in a browser and found that? Are you certain it's … | |
Hi All, I've used CakePHP for ages and as a framework I really like it and it works nicely. However, it has a nasty snag. Say you wan't CakePHP to be your main application in the website root (`/`), and you wanted a Wordpress blog in a subdirectory (`/blog/`). In … | |
Re: Well we can't suggest a logo for you aha! The idea of a logo is an image that is unique to you! If you wan't a custom logo you would have some graphics software, such as Illustrator or Photoshop - we can help you with those if you're stuck. Maybe … | |
Re: Well have you got any PHP experience at all? What have you tried? Effort helps. But because I'm a pretty nice person I will give you some ideas: This URL is of a dictionary so would have a fairly simple core structure. You would have a big database, probably with … | |
Re: Font Awesome, as the name suggests, is a *font* library of SVGs, so behaves very differently. Ideally you want to actually use font awesome for something like a plus icon. If not, you can look at things like this: [click here](http://css-tricks.com/using-svg/) (scroll down to the bit about **inline SVGs**. Things … | |
| |
Re: Try this: RewriteCond %{QUERY_STRING} (id=(.+?)&)(category=(.+?)&) [NC] RewriteRule ^page.asp(.*)$ page.asp?%1category=%2 [R=301,last] | |
Re: prit is right about the format, because if MySQL has a "date" field, it wants it in `yyyy-mm-dd` and will reject anything else. Also, why on earth are you storing a) a password with no apparent hashing or encryption??? Major security problem. b) the repeat password? You won't ever look … | |
Re: *dumbo question moment* So was it something stupid like guessing her passwords to get into only her accounts on both networks? or is there a more complicated way they can break in? | |
Re: Well for a start you need to specify the WHERE bit in youur query: $result = mysql_query("SELECT * FROM wp_uvmj_participants_database WHERE zip='abcd123' AND specialty='abc123'", $db); You will also need to put quote marks here: echo $row['company'].""; While we're here, there are slightly neater ways of writing this: while ($row = … | |
Re: Your link is to the wrong location, **working link [here](https://www.daniweb.com/software-development/c/threads/489642/how-can-i-print-name-of-files-with-the-same-month-of-creation)** Why on earth did you post your code in the first place if you're not allowed? You need to flag it to a moderator, but as far as I'm aware it's not common practice at all to be deleting stuff. | |
Re: No, MySQL does not create new rows unless you tell it to. Either you are using the wrong query to get your data or something is seriously wrong with your installation (unlikely). Can you show an example of a query you're using and how it affects the db? | |
Re: This is because you've got your head and body tags in a muddle: <html> <head> Page information goes in the head, like a title, favicon and styles <style type="text/css"> ... </style> </head> <body> All visible page content. All div tags (or any HTML that the user is going to physically … | |
Re: I am not invincible. I cannot reply to everyone instantly, because I have an extremely busy social life. Sorry that I couldn't respond to this within 24 hours. *Joke over, I'll stop lying.* If it's urgent, you're in the wrong place. If not, learn patience. You haven't even asked a … | |
Re: You can get this information in the javascript [screen object](http://www.w3schools.com/jsref/obj_screen.asp). Then you can apply CSS classes from there. | |
Re: If you don't want to open the persons email client, the only way is serverside scripting (PHP/ASP) once the form is submitted. In php, you just use the mail function: http://php.net/manual/en/function.mail.php | |
Hi All, I am working with a Magento (v1.8.1) site, which until a week or so ago, was working perfectly. I am using the SM_AMAZ theme, and have no plugins which could interfeare with performance. Everything will be fine, then something in the admin panel will get changed, and the … | |
Re: So let me get this streight: You have a wordpress site (using a theme) that is hosted with GoDaddy. You have Dreamweaver on your PC, and you want to edit the template files locally and have them sync'd with the ones online? or edit the ones online directly? It sounds … | |
![]() | Re: Managing your own email server is understandably a nightmare, but have you ever looked at [MS Exchange Server](http://office.microsoft.com/en-gb/exchange/hosted-email-for-business-exchange-online-FX103739072.aspx)? It's about £2.50/user/month+ VAT, so it's much cheaper. They also boast the following: Work smarter, anywhere, with hosted email for business. * Get business email, calendar, and contacts on your PC, phone, … ![]() |
Re: > over and over again. Agreed 100%! Other than that, maybe really simple CMS site or corporate ones for local business etc. | |
Re: Hi there, What you're talking about is something called **responsive** design. It is usually done by placing your content into a *grid system*. Take a look at [Pure](http://purecss.io/grids/). ([Include links here](http://purecss.io/grids/#want-to-just-use-grids)) It explains here how things work in detail, but simply, arrange your code like this: <div class="pure-g-r"> <div class="pure-u-1-3"> … | |
Re: Yup, you need a wrapper and some CSS magic. Try something like this: <style> .google-maps { position: relative; padding-bottom: 75%; // This is the aspect ratio height: 0; overflow: hidden; } .google-maps iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; } </style> <div class="google-maps"> … | |
Re: I'm a big fan of the mobile view, as I nearly always get article updates by email, go to look at them on my phone and it doesn't work. Especially as things like IPS4 are developing their efforts in responsive design, it's an ever-increasing feature that is only going to … | |
Re: Code answers require code questions. Simples. Try a bit harder and answer @Broj1. > i know session > but i dont know what it means actually Well you clearly don't know what it is then, and haven't been bothered to google it like most people. For someone who is suposedly … | |
Re: The thing is, is that nothing is private any more. There will always be someone sat 1,000 miles away who knows everything about you. I completely agree, we have every reason to worry, it won't be long and our entire homes will be ran over the internet. My biggest worry … | |
Re: Agreed with @hericles, mobiles wouldn't bother with a `:hover`. Instead, you could use something like [this](http://jsfiddle.net/9e8z28zk/), and intergrate it with what you've done already. If you wanted the hover for browsers and jQuery for mobiles, all you need to do is do some basic responsive design and merge the examples … | |
Re: I've had a little go, based on what's been said already: http://jsfiddle.net/2nphygu1/ It's a really basic CSS(3) example, and hasn't got any links or anything attached. Hopefully it's easy to see how this can be expanded on and developed how you wish. Play with it to get it looking how … |
The End.