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.

T-G

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    T-G reacted to zed in 'Informal' language on the web - oh dear.   
    "something's broken, go out for a fag" could be next? Then again non-smokers could be offended?
  2. Like
    T-G got a reaction from person4659 in Naming DIV ID's using PHP count   
    for ($i=1; $i == 1; $i++) {
     
    This will cause you problems - you're setting $i to 1, then you're asking it to exit if $i is equal to 1.
     
    Try:
     

    $i = 1; //set the number for the first div foreach($row as $cell){ echo "<div id='part$i'>\n<p>$cell</p>\n</div>\n"; $i++; }
  3. Like
    Instead of worrying what machine you're going to use, just spend the time (and money) getting your design and dev skills up to scratch.
     
    I do all my work on a reconditioned laptop running linux (it cost me £150 - a steep upgrade from my freecycled desktop which I had to retire due to lack of space)
     
    An operating system, like a computer, is a tool. You make it do what you need it to do based on your skills and knowledge. It's like asking what colour shirt you should wear to a web design interview (Ok, not exactly like that)
     
    Although design agencies traditionally used macs, I think you'll find a fairly even split these days. But I reckon most of them use adobe software - so if you're looking for in-house agency work, that's worth brushing up on.
  4. Like
    T-G got a reaction from Durden in Hello from a Noob   
    Good luck!
     
    First tip: put dreamweaver away and fire up notebook (or equivalent)!
  5. Like
    T-G got a reaction from RobbieD90 in What makes a good blog?   
    Content is king. Forget the design and layout (for me as a user at least), it's all about whether it's interesting to read. Good original writing, interesting arguments and ideally a lively comments section. If it's a favourite subject then you should already be well on your way to some good posts.
     
    As far as adverts are concerned, if an article is needlessly split between multiple pages to up the ad impressions then I just close the window or hit the print-version button, it's a self-defeating tactic.
  6. Like
    T-G got a reaction from MWP in Database to update multiple pages   
    What I had in my head was a field called "region" (eg London, Midlands, Northern England etc) and "location" (High Street, Somesuch Village).
     
    Basically, there's lots of different ways to organise the database and PHP and you need to pick the easiest/fastest/most convenient way.
     
    To take your example of the services offered, there's two obvious ways as you suggest:
     
    1: make a separate field for each service, if there's a 1 in the field the company offers it, if there's a 0 they don't (or TRUE/FALSE if you prefer). This is a useful approach if you only have a certain number of services to list. Don't worry about having 20-something fields, that's hardly unusual.
     
    2: Have a single "services" field which contains a comma-separated list, eg "nightman,keyholding,dogs,alarms", then when your PHP retrieves the field contents you can simply do '$services = explode("," , $row->services);' to get a nice array of the services offered. This is a little trickier to search however, you need to do a fulltext search which means you have to use a certain type of database (MyISAM off the top of my head, but I'm not sure)
     
    There's other ways to do it of course, like having an entirely separate table of services and insert the id of the companies which offer it, eg:
     
    table companies
    id - name
    1 - Autosecure
    2 - Betatek
    3 - G4S
     
    table services
    name - companies
    dogs - 1,3
    alarms - 2
    nightman - 1,2,3
     
    If I were you I'd get a test database set up, import your spreadsheet (mySQL can import excel spreadsheets) and have a play around. Don't underestimate the value of a blackboard and some chalk in planning these things!
  7. Like
    T-G reacted to Renaissance-Design in What does your username mean?   
    My name is Chris and I'm an alcoholic.
     
    Oops, wrong thread.
  8. Like
    T-G reacted to Mei Gwilym in PHP or ASP.NET?   
    Like many have said I recommend PHP. I'll try and give some reasoning.
     
    First of all, PHP is everywhere. There are plenty of tutorials from beginners to experts, all freely available. From my limited experience of MS technologies, there are many sites out there who want your money first for any kind of knowledge.
     
    Of course, this is also a bad thing. There are lots of PHP "experts" providing lessons, but many of these have only been using it for a year, and contain many basic errors.
     
    So to start with I'd recommend a good book (try and buy something that's been printed in the last 12 months) and this website: http://www.phptherightway.com/
     
    After picking up the basics, try and move on to one of the many PHP frameworks out there. A good one to start is is CodeIgniter, with its excellent documentation, but there are many more.
     
    Most frameworks these days use the MVC pattern, which stands for Model View Controller. This splits your code into 'departments': the Controller receives the request from the browser (i.e. "get me /blog/2012/may/how-to-learn-php") and decides what to do with it. It may need some information from the database, so it uses a Model ("get me a blog article with the slug 'how-to-learn-php' published in may 2012"). It will then combine that information with a View (usually a HTML template) and send it back to the browser as a complete web page.
     
    PHP has a great community no matter where you look. It's fun to learn programming and it will open doors for you, plus it will put you on your way to learn other languages. You may encounter some with an anti-php view, but haters gonna hate so ignore these for now. It's similar in style to Javascript too, so this will be easier down the line.
     
    Good luck!
     
    Mei

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.