treehouse : what would you like to learn today?
Web Design Web Development iOS Development

TT_Mark

  • Define a CSS property in the Meta tag

    The PHP in CSS is quite easy as Chris kindly explained a few years back http://css-tricks.com/css-variables-with-php/ The meta one is completely new on me!
    Comment by TT_Mark May 2012 permalink
  • Drupal vs Joomla in in 2012

    Personally not a fan of Joomla. It was forced onto me in my current job whereby an old employee had built the company intranet in it and no one could be bothered to move it away. Approaching it with no prior experience, I found a number of confusi…
    Comment by TT_Mark May 2012 permalink
  • h tags not working

    You also have a comma after h6 where you are defining the margin-top: 0
    Comment by TT_Mark May 2012 permalink
  • WEB 3.0

    It's a rubbish buzzword that means nothing. The less we use it the more chance it has of disappearing
    Comment by TT_Mark May 2012 permalink
  • Checkout our new tutorial website

    How do I search? Is there categories for tutorials that I can look through? It looks nice, but a fundamental for a tutorial site is the ability to search
    Comment by TT_Mark April 2012 permalink
  • What scripting languages do you have to learn to run a large site?

    Doesn't have to be mySQL, there are many different types of SQL out there. You'll need to pick one of them, but you could try NoSQL, SQL Server (although the license fee for this is mental), SQLite, PostgreSQL etc.
    Comment by TT_Mark April 2012 permalink
  • What is a CDN?

    http://en.wikipedia.org/wiki/Content_delivery_network
    Comment by TT_Mark April 2012 permalink
  • PHP spit table not working

    Try require_once() instead of include_once(). That way your script will die if the file cannot be included. I'd also echo out mysql_num_rows( $fetch ) just to make sure you're actually returning rows
    Comment by TT_Mark April 2012 permalink
  • PHP spit table not working

    Where are the tags?
    Comment by TT_Mark April 2012 permalink
  • Apache ErrorDocument 404 but without the automatic 404 header?

    Yes, that's essentially the way I build my sites. Everything is routed through the index.php or default.php, correct? I recommend creating a static 404 page rather having than a database driven one. Then, when you send the 404 header it'…
    Comment by TT_Mark April 2012 permalink
  • HTML Validator Error

    That's the meta tag to force Chrome Frame in Internet Explorer. It's probably not valid because it's something custom Google have developed
    Comment by TT_Mark April 2012 permalink
  • How to make send and recieve a formatted Table Form via email ?

    You wrap your code in the following tags
    Comment by TT_Mark April 2012 permalink
  • Apache ErrorDocument 404 but without the automatic 404 header?

    I assume you have a custom 404 page setup that all 'not found' pages route to? Surely then, in this page, all you need to do is search for the initially requested URL and, if found, redirect the user to the correct page?
    Comment by TT_Mark April 2012 permalink
  • Php post question

    That depends. Do you know anything about databases? Does your hosting provider give you access to a MySQL database? If not, then maybe for now take a look at reading and writing files. I've always liked the tutorials on http://www.tizag.com/ph…
    Comment by TT_Mark March 2012 permalink
  • php session with checkboxes

    How can it return NULL when you said that when you echo $cf['posted_form_data']['checkbox'] it returns Array?!
    Comment by TT_Mark March 2012 permalink
  • Learn a new language

    I've been tossing a coin between learning Python and Ruby for a while now. Gave Rails a go and wasn't entirely convinced as there seemed like a lot of faff getting a testing environment sorted. Not yet had a go with Django or any of the …
    Comment by TT_Mark March 2012 permalink
  • Php post question

    Database is your best way forward then. Probably MySQL.
    Comment by TT_Mark March 2012 permalink
  • php session with checkboxes

    var_dump( $cf['posted_form_data']['checkbox'] ) ; Put this in your page and copy into the thread what it dumps out
    Comment by TT_Mark March 2012 permalink
  • scalable vector graphic

    I quite like using SVGs, however I don't believe you should embed the code directly in the html file, rather you should reference an external file. That way it doesn't matter how lengthy the code is
    Comment by TT_Mark March 2012 permalink
  • Php post question

    Ok, so session is not the right way to go. Does everyone need to be able to see the content or is it just limited to the user? Is it critical the content remains in place or does it just mean the user has to fill in a form again if they clear it of…
    Comment by TT_Mark March 2012 permalink
  • Truncate article when not logged in?

    You don't want to wrap functions inside if statements otherwise things could get nasty. Just do something like this $description = 'This is the text I wish to either display in full or truncate'; if ( !$user->uid ) { $descript…
    Comment by TT_Mark March 2012 permalink
  • php session with checkboxes

    I'm a little confused where you're getting $checked from as it's not part of your form....
    Comment by TT_Mark March 2012 permalink
  • Php post question

    How long do you want the text to stay there for? If it's a permanent thing then you'll need to look at either storing the data in a database, or storing it in a text file. Otherwise, if it just has to be there until they leave the site, …
    Comment by TT_Mark March 2012 permalink
  • Censor Password in Database?

    Never store your password in the database in a form that can be decrypted as it is a security risk, no matter how hard you think it'll be to decrypt. Always go for 1 way encryption using SHA with a salt in the password string. If a user forg…
    Comment by TT_Mark March 2012 permalink
  • HTML form -> PHP -> Excel

    The way to approach this all depends on how you want it to look. If you just want to dump out line after line of data, then you can quite easily convert your data into a serialized array and then create a file with Excel headers and just write the …
    Comment by TT_Mark March 2012 permalink
  • what's wron in the code

    It may or may not be the correct code, however it depends on what it's supposed to do!
    Comment by TT_Mark March 2012 permalink
  • Php includes and CSS files.

    Exactly what @karlpcrowley said. It's the best way to manage your URLs
    Comment by TT_Mark March 2012 permalink
  • What kind of Degree did you get in Web Dev?

    I have a degree in Interactive Media and Animation. It's not really worth the paper it's written on, but what I did gain from it was a placement at a web development company for a year. Without this I would never have got a job after grad…
    Comment by TT_Mark March 2012 permalink
  • .htaccess beginer

    Ah, you seem to be quite a way off what you want to achieve. At the moment the .htaccess rewrite does nothing because you're not using the URLs properly. Firstly your link should be a link to the 'Friendly' URL. So change:
    Comment by TT_Mark March 2012 permalink
  • .htaccess beginer

    You're typing the wrong thing into your address bar.... You should be typing the URL you want to rewrite to http://www.mydomain.com/index.php?page=1 not the resulting URL because it's a one-way rewrite process e.g. load up http://www.my…
    Comment by TT_Mark March 2012 permalink