Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Calender Change The Background Colour


im have made a calender that i want to tie into a sql database , and depending on the value in the database will change the background colour of that day in the calender, the problem im having is with the following:

$colour = "#FF0000"; // this is just to test whether the background colour changes
$cal_event_opentd = "<td align=center bgcolor=#<?php echo $colour;?><b>"; 

but for some reason the backgroud doesnt change,can anyone tell me where im going wrong.




View Complete Forum Thread with Replies

Related Forum Messages:
Change Background Colour
I want to display my query results using alternate background colours like the screen shot attached. Code:

View Replies !
Background Colour Not Showing
I need to use a coloured background for a page which contains tables. Using
Frontpage 2k I can create the background colour OK and it views correctly;
but when viewed using apache, there is no background colour, it is just
white.

View Replies !
Background Alternating Colour Code
Im having problem making my background alternate between colors.  Following is my code, the result alternates 2 colors ok, but prints each entry from my database 30 times. Code:

View Replies !
Use Session Variables To Pass The Background Colour Of A Page
I am trying to use session variables to pass the background colour of a page loaded into a frame using session variables. I declare tyhe colour in the main page which loads first, this is the content in the main page and echos OK.

$_SESSION['content_color'] = "#E9E9E9";
echo $_SESSION['content_color'];

However if I echo the session variable in my loaded page in another frame I don't get anything at all.

View Replies !
How To Update Form Input Field Background Colour On Validation Error
I have been searching for form validation scripts for ages and all th ones that I like are far too complicated and inflexible so I decided to stick with my own which is easier to understand.

The only thing I don't like which i have seen on better form validation scripts is that and fields with errors are highlighted.  i can only presume that they have used php to set the background color of the input field or textarea.

How would I add some code to change the background colour of form elements if an error is found? Here is my code which validates the form but doesn't change form elements colours. Code:

View Replies !
Cell Colour Change!!!
I am trying to change the colour of a cell depending on what page the
user is on..

I have View.php the is loaded into every page!

This is what I was trying to do but I got no clue how it goes

If page is "home" Then cell colour should be blue
If page is "register" Then cell colour should be Red
If page is "contact us" Then cell colour should be yellow

View Replies !
Change New Topic Colour
I just installed a mod and now when theres a new post made somewhere, when your on the mainpage instead of it just telling you who posted it and the date, it now tells you who, were and the date. Heres a preview of it:

http://img210.imageshack.us/img210/6...ictitle1lm.jpg.

View Replies !
Comments Php Script Colour Change
i have just got a free php comment script of the net. but the defualt theme is black text on white back ground.

Wile on my web site i have a dark back ground and white writing, so after many hours of php code readying and learning i have finaly managed to change most of the text into white exept for the last 3 text pices.

1. the "Name/ tilttle" of the comment/s

2. the "date and time" of when the comment was posted

3. the " comment/ text" which the user posted

from what i have found i belive i need to set the colour in this part of the script here but everything i have tryed hasnt worked.

1.  $COM_LANG['header'] = "Comments";

2.  $COM_LANG['months'] = array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");

3.  not sure where the code is for this :| i have just started with php.

View Replies !
How Do You Change The Colour Of A Menu Drop Down?
Could somone please help me with changing the colour of a default menu dropdown? The border / dropdown arrow. Code:

View Replies !
Using Sessions To Change Background Color
I am trying to use session to store the background color throughout each page by session variables. I think the problem comes from the structure of my site. each page is accessed by ?topic=home or ?topic=tutorials It is setup as: example not actual code:

View Replies !
Change Background Color In Table From 2nd Row Onwards?
i am displaying data in a html table with five rows of five columns each, the first row is a title row with blue background, and the 2nd row onwards is the data rows with a radio button.

When a user click first row, nothing should happend, but when the user clicks the radio button or any column of the row, I wish to select the radio value (clicked) and set the background color to silver for the entire row of five columns.

Here is my javascript code which is working fine, except it removed the first row style background color, which I don't wish to remove. Code:

View Replies !
MS Outlook Calender To Web Calender
Does any one know of an open source calender sync that will take my appointment in outlook and post them to a web calender. I schedule alot of meeting and it would be great to have this feature made avialable so I don't always have to work so much at tring to schedule a time using emails.

View Replies !
Calender
I am creating a PHP calendar from when I can click a specific date and save the date in the database together with the user who click the the date in the calendar.

View Replies !
Days In A Calender
I am trying to write a calender display that shows the days of the month accross the top of a table, and people's names down the side. One of the things I would like to do is to change the colour when the days are Saturday or Sunday. PHP Code:

View Replies !
Simple Calender
I am developing a very simple calendar that displays links to classes that fall within a given month. To have the page display the current month's classes, I have used: PHP Code:

View Replies !
PHP / HTML Calender
im looking to make an events calender in PHP/HTML. The calender would be simple with a link on each date, once you click on the link it would post the date value to a detailed info page using the GET method, i would then use the date value to search mysql and display that days events on a seperate page.

Now i have been looking around the net and came across a few javascript generated calenders, but i cant seem to find a solution that will allow me to control the calender content using PHP. Has anyone ever tried this?

View Replies !
Popup Calender
In php how to popup Calender and on click date ,month and year its value store in textfield and those value store in database.

View Replies !
Creating A Calender
I would like to create an online calendar for a friend. It needs to be able to add notes on each day and if possible highlight the boxes. That's all.

I promise, I have checked all the posts on this site. I have gone through Google. I have done everything I can. I'm looking for a link to a tutorial, a script that needs little customization or some sort of magical dwarf that could come and do it for me.

I really have no clue on anything practical in PHP yet, and what's more I have a horrible feeling that this task could include mySQL and database-y things....

You people have been so helpful before, any chance you could be again??

View Replies !
Date Calender
from where can i get the Date Calender just like in Phpmyadmin where user selects date from a calender page and the result returns in a timestamp ? you can see it when u select a date data type and insert the record thru phpmyadmin's INSERT option , you get this java script popup calnder.

View Replies !
How To Get The Calender Onto One Of My Pages.
I created a web calender using php and it is tied to sql. I am using yahoo for hosting but I cannot figure out how to get the calender onto one of my pages.

View Replies !
Login & Calender
I'am wondering tha is benifit off creating loggin class instead of function? is there eny? and my next thought is about calendet. I ll have 3 calenders (for 3 diff month) on page with ll show week, day, and they ll by clickble. is there any benefits to writte class instead of funktion? I mean if I writte class so I have to create 3 object with ll take more place in server memory. but if I have one funktion wich I call 3 times it ll by faster( ).

View Replies !
Specific Calender
I'm a designer by trade so PHP can sometimes be a little out of my comfort zone, but thats always a good place to be, right? I have a specific and I should imagine very easy thing i need to set up. I'm making a website for a band who play a lot of live shows. I wonder if anyone has the best solution to make a list of their shows that automatically deletes a show once it's date has passed. You know the way, say, the Myspace live list works. I don't need any fancy calender graphics or anything like that. Just a self-updating list.

View Replies !
Row Colour
I have a table and would like the row to change colours. The table uses two colours white and green. The frist row in the table should be green then white then green then white and so on.

How would i go about doing this thanks. I am using while() tio get the rows and storing it in a variable.

View Replies !
Converting A Calender Date
I am converting a calender date..i got a example from PHP Manual. the code is PHP Code:

View Replies !
Calender Script/Schedule
Does anyone have any recommendations or tips on where I can go to find a good scheduling script or a tutorial to make one? I'd perfer to make my own for security reasons so I know the code and for later addons.

Basically I need to re-create something like http://radio.virtualdj.com/schedule/schedule.php where djs can login to book a time on the online radio and then it blocks the slot off.

View Replies !
To Display The Events In Calender
I have designed a event calender in which i have to display an anchor for the dates on which events are added. the calender is getting displayed but the event dates are not getting displayed within the calender.

View Replies !
Online Booking Calender
I wanted to put a calender on my website to allow people to see up coming clasess we have and allow them to booking/pay for them also. I would add them in the back end and how many spots are availble and when someone clicks on to pay for the class and checks out all the way it would subtract it from the total amount.

I would also like it to show on the date when all spots are gone Sold out and when only one is left only 1 spot left. I would like to see if there is a script out already that does this now. I am new to php/mysql so it would be great to find this.

View Replies !
Calender - Availability Chart
I have availability on my site in an calendar and I manually introduces if available for that day or not. But I want to do it autmatically. At the moment I have the reservations in an database table, I have arrival in one column and departures in another column, both date types.

View Replies !
Table Row Colour
I have a table and would like the row to change colours. The table uses two colours white and green. The frist row in the table should be green then white then green then white and so on.

How would i go about doing this thanks. I am using while() tio get the rows and storing it in a variable.

View Replies !
Convert HEX Colour To Rgb
Im trying to convert a hex ref to rgb to use with the gd image manipulation. try:

$rgb = chunk_split('ff0000', 2);
// convert hex values to decimal
$r = hexdec($rgb[0]);
$g = hexdec($rgb[1]);
$b = hexdec($rgb[2]);
echo($r);
echo($g);
echo($b);

gives:

15150

where id expect 25500

View Replies !
Displaying Files In A Folder Using A Calender
I have excel sheets generated daily and weekly in this format for filenames..for daily sheets the filename is Jan-10-2002 (mmm-dd-yyyy) and weekly Week-39-2002. I have a script that uploads to a constant folder all the excel sheets.

Is there a script that can display the daily scripts in form of a calender. I.E a user can choose to view or download the sheet by choosing the date? Also another for displaying weekly excel sheets in a weekly format.

View Replies !
Calender / Date Picker Script
I have been looking for a script to display a calender / date picker within my web page to be able to select a date from.  Different from the ones I have found, I want to be able jump back and forward through months / years without having to reload the page.  I guess this will probably done using somthing client side such as javascript or CSS?  Can anybody give poitn me to one or give me something to start from?

View Replies !
Selecting Colour Problem
I have a dynamic part of the page where the user can select what colour they want the bottom and top table colour to be, the thing is, on the bottom part of the table i have my advertisment link, which if someone is cunning enough they could make the colours the same colour as the link in an attempt to hide the advertisment PHP Code:

View Replies !
Colour Top 3 Results In A Table
I'm currently trying to make a poker league whats seem to be going well.

I have populated a table with the league results, but would like 1st position in gold, 2nd in silver and 3rd in bronze. These will be the first three rows of the table, as the data has already been arranged in the correct order.

I'm a little unsure how to go about doing this, and wondered if anyone could point me in the right direction. Code:

View Replies !
Changing Text Colour
i had this script down but have modified it, somewhere along the way and can't see where, what i had was, if there were messages in the users inbox the word "Inbox" would go red, if there were unread messages in there the "Inbox" would go blue if there were no messages it would simple be black Code:

View Replies !
Changing An Images Colour
I have an image containing 3 colours. Is there anyway using PHP i can change these colours, one at a time, to whatever colour is selected via a dropdown menu?

View Replies !
Make A Colour Transparent
I would like to do is grab an image, determine what colour is at a certain pixel (maybe 10, 10) and then set that colour to transparent for the whole image. Basically it is so that I can dynamically place an image on various backgrounds for previewing. I am not worried about perfection (anit-aliasing, matte, etc).

View Replies !
Alter Font Colour Within Text Box
I have been trying to change the font colour within a text box. I have used a hidden box with echo but want to display within the box to continue the theme of my forms. I am stuck and been trying different methods, but with no joy any help would be greatly appreciated. current code this not working is PHP Code:

<? echo "";
if ($percentage >= 87.5) {
    $color = '#00FF00'
} elseif ($percentage >= 37.5) {
    $color = '#ff9900'
} else {
    $color = 'red'
}
?>
<input type="text" name="percentage" value="<? echo '<b style="color:' . $color . '">' . $percentage . '</b>' ?>">...

View Replies !
Replacing A Colour With An Other In A Truecolor Picture
would anyone know the most efficient way to replace a colour with an other in a truecolor picture?

For the moment, I'm doing it manually, looping though the pixels and using imagecolorat() to test the pixel and imagesetpixel() to change its colour if needed, but it's slooooow: a 900x800 picture takes 10 seconds or so to convert one colour, and I will need to convert up to 50 colours.

View Replies !
Colour Selected Columns Using Sessions?
i have this code that creates all these columns using checkboxes,

if (isset($_SESSION['checkbox2'])) {
fwrite($handle,'<td><xsl:value-of select="county_UA"/></td>'."
");
}
if (isset($_SESSION['checkbox3'])) {
fwrite($handle,'<td><xsl:value-of select="pop_code"/></td>'."
");
}

<td><xsl:value-of select="county_UA"/></td>
<td><xsl:value-of select="pop_code"/></td>

i want be able to have the ability to give the user to colour the columns they require using dropdownlist for the fields and radiobuttons for colours: Code:

View Replies !
Cell Colour Based On Field Data
I have a mysql database and i am using php to display some field data in a table cell on a page. The field data is either 'failed' or 'passed', how can i make the cell colour change depending on the field data result?

View Replies !
Paste Colour Coded Scripts Into This Forum?
i noticed alot of people paste their scripts colour coded, what editor do you use to do this? I have PSPad but I dont think it has the feature of copying script with forum colour tags...

View Replies !
Image(jpeg) Upload & Resize Loses Colour?
I am uploading an image to a server and resizing the image then saving it to a directory,I had it working fine on my local machine (windows) but when i uploaded the code to the server (linux) - same directory structure etc, it didnt work the colour appeared to be removed from the image, as though the number of colours in the image was reduced to 2 or 4 or something?

has anybody come accross similar problems with GD or image functions in php?

View Replies !
Change Field Content After Select Change
Having looked but can not find a solution, can this be done.

I have a table (airports) that contains 2 fields.

field 1 = airport_name
field 2 = iata_code

I have a form which has a dropdown list which gets its content from the airports table using field 2 (airport_names).

What I am trying to do is when a user selects the name of an airport, field 2 (iata_code) is updated to the corrosponding record. Code:

View Replies !
PHP "Calender Like" Pop Up To Select Date And Store As Variable In Mysql Format?
I use to have this feature on my site about two years ago when i hired someone. It would allow the user to select between two different dates, via a small calender, save it as a variable then query the database.

Does anyone know where I can find the script for the small calender? I think it must of been populated by an external clock since all the dates were accurate etc. July 21st was on a saturday.

View Replies !
In Background
Here's my situation. I'm creating a website (basically a store) and in the admin section users will want to download zip files of images or products added in the last 7 days, last 2 weeks and the last month.

I have scripted a cron to run every 24 hours to zip all the images and this process takes over 1 minute (there's over 6,000 images!!) and the size of this is 250MB. This has now taken me to my quota on my webspace of 500MB (including all the individual images)

I have decided the only way to do this is dynamically create the zip when the user requests it. As PHP times out after 30 seconds it needs to do it's stuff in the background and display a message saying something like' We'll email you with the zip file in 5 minutes or so'.

View Replies !
Run In The Background?
I have a script on my website that takes a long time to run, and it's slowing down my pages. Theres nothing I can do about the wait time on the file.

Is there a way to use include or fopen or anything along those lines, to have it execute my file in the background; without having the file that's executing it waiting for it to finish its thing? Or to have the expected output redirected to another file (as mentioned in http://ca3.php.net/manual/en/function.exec.php)?

View Replies !
Running Background Job...
Is it possible to get a php3 script to check what day it is, and then do some stuff, If it’s let’s say Monday?
This without you doing anything. Like a background - or cronjob…
I guess you would use perl or something to do this, but that is not an option I have.

View Replies !
Background Processing
What is the technique you use for background processing? Like when user submit a task, the user could then wait for the result by email or through a result page.

I'm wondering how would they do that?

View Replies !
Background Color
I am totally baffled by what is happening in my code. I have a section
of code (shown below with two comment lines inserted). They are
essentially identical text boxes (names and variables different). Yet,
the first comes up with a white background and the second comes up with
a yellow/gold background....

View Replies !
Run Process In Background
I want to run process from my php script in background.
I try different functions from functions list but all of them whaiting for
process ending. How can I run `wget -b ...` and finish my script, but wget must still working? I use PHP5, Linux, Apache2.

View Replies !
Background Processes
I'd like to know how to send an external process to the background, so that I can run multiple instances of the same process at one time. Any tips, links.. etc?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved