Menster 38 Junior Poster

The only way you can do that is with computations, rest easy though, the computer takes care of the actual math for you:

$bytes = $_FILES['my_file']['size']; //Size of file in bytes
$kbytes = $bytes / 1024;
$mbytes = $kbytes / 1024; //Size in Mega bytes

Nice and simple :)

Menster 38 Junior Poster

"Time is an illusion, lunch time doubly so." - Ford Prefect

Menster 38 Junior Poster

The suffix "?type=x" isn't irrelevant it's just that the code in your if statement, inside your foreach block, you are comparing the values to basename($_SERVER) which will always be "fruit.php" without parameters, you need to compare it to basename($_SERVER) which brings the parameters along with it.

Venom Rush commented: Thanks for the help ;) +2
Menster 38 Junior Poster

Now students in computer science, engineering and medical sciences, that are used to writing their own programs, are more inclined to use Linux.

I'm sorry maybe I'm confused, but please show me one med student that knows more about a pc than how to switch it on and Google porn

jephthah commented: ahahah. i thought the same thing, but couldnt think of a clever way to say it. well done! :) +13
Menster 38 Junior Poster

Try changing "$row" to "$row[0]" and see if you still get nothing.

Menster 38 Junior Poster

Pfft, hearts is for Kids. Minesweeper, now thats a real mans game ;P

William Hemsworth commented: mhm +13
Menster 38 Junior Poster

FireFox is King!! It would take about 5 times longer to do my job if it wasn't for Firebug (the plugin, if you've never heard of it check it out!!)

But due to the resounding majority of pc users sticking with the stock standard IE, my boss requires me to re-check all my work in that fetid pair of dingo's kidneys

jephthah commented: bloody wankers! :) +12
shadwickman commented: Fetid pair of dingo's kidneys! Haha :P And Firebug is truly amazing eh? +4
Menster 38 Junior Poster

"Never trust a computer that you can't throw out of a window" - Steve Jobs

"Windows, because like cars, not everyone wants to build theirs from scratch" - Unknown

ahihihi... commented: nice sigature +1
Menster 38 Junior Poster

The human race will be destroyed by de-evolution:
Where stupid people outbreed smart people (as is currently happening) to a point where the human gene pool is reduced to the depth of a teaspoon at which point they'll all stab/bite/set fire to/blow each other up -or- due to the lack of genetic variation and the amont of genetic defects on the rise, a disease (like bird-flu) will pitch up and wipe them out.

Menster 38 Junior Poster

Hi there, have you tried:

<div id="blah" onclick="window.location = 'Your reference here'">
<a href="You can leave this blank">Your text here</a>
</div>