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!
-
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…
-
h tags not working
You also have a comma after h6 where you are defining the margin-top: 0
-
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
-
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.
-
What is a CDN?
http://en.wikipedia.org/wiki/Content_delivery_network
-
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
-
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'…
-
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
-
How to make send and recieve a formatted Table Form via email ?
You wrap your code in the following tags
-
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?
-
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…
-
php session with checkboxes
How can it return NULL when you said that when you echo $cf['posted_form_data']['checkbox'] it returns Array?!
-
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 …
-
Php post question
Database is your best way forward then. Probably MySQL.
-
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
-
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
-
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…
-
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…
-
php session with checkboxes
I'm a little confused where you're getting $checked from as it's not part of your form....
-
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, …
-
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…
-
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 …
-
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!
-
Php includes and CSS files.
Exactly what @karlpcrowley said. It's the best way to manage your URLs
-
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…
-
.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:
-
.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…