Easily, Instead of echoing out everything, save them to a variable (minus the tr and /tr) and then at the end if completed == 1 then do an echo with a different tr color.
I don't know what BLOCK_WIDTH and BLOCK_HEIGHT are set to but the easy way is to do it using specialized math similar to this:
if ($image_width > $target_width) {
$scale = $target_width/$image_width;
$new_image_width = $image_width*$scale;
$new_image_height = $image_height*$scale;
} else {...
Assuming that this file format stays perfect and no errors come up it should be easy using these functions.
fopen,fclose,fread,explode
Read up on these functions and you should be able to create your page in no time at all.
There is no function to do this, you must manually program the GD library function (which I've done several times). It's not easy for a beginner to do but after a couple of times you get the math down and it's a cakewalk. Give it a shot if you feel adventurous (it pays off in the end) or find...
First, it appears that you have register_globals set to on, this is a security risk in itself and should be turned off. Turning off register_globals will probably break your pages until you properly code it using the $_GET and $_POST superglobals. After that is done you probably should use...
Generally for something like this instead of saving the time it was put in in XX/XX/XXXX format I just use the unix timestamp. The timestamp is completely numeric and so you would then just subtract the known constant (how long in seconds 2 weeks is) from the the current time and if the value...
It sounds as though your hosting company has disabled the ability of PHP to access files that are not on the server. I believe it's called the fopen wrapper. I do not know of any ways around it other then using direct port connections, which, would be very difficult. Hopefully someone else...
another way is to just use HTML tags
ie
<table border="1">
<tr>
<td>column 1</td>
<td>column 2</td>
</tr>
</table>
This will create a table in excel using the table's TR as rows and TD as cells just like in html.
URL is unavailable at the moment for reasons I cannot go into. I might dive into tearing out some of the code a little later if my next idea doesn't work. Firefox appears to be affected but not IE. I've no idea why unless IE is correcting it automatically. Thanks for pointing me in a...
This seems to be a firefox only problem. The background image appears fine when viewed normally in firefox, but, when I print it the image shrinks to a very small size. Any ideas?
div.month4_logo
{
width: 400px;
height: 50px;
background-image: url(logo.jpg);
background-position: center...
Try using command.com (ms dos prompt) and get yourself to the php folder. Now type in php.exe -i. If php is able to run properly then it'll spit out a bunch of html into the ms dos prompt.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.