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.





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 Complete Forum Thread with Replies

Related Forum Messages:
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 !
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 !
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 !
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 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 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 !
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 !
Simple Script For Doing A Simple Photo Album And Journal?
I'm looking to quickly get a photo album online. Very simple, thumbnails,
a few pages, maybe a description, but hopefully a small script that's easy
to edit and work into my existing site. I know about hot scripts, etc. but
I was wondering if any one could recommend one?

Secondly, I also want to setup a journal. It's not really a "blog"
although I guess blog software may work. But it isn't going to be a
message board or anything like that. Just a place to put out random bits
of news. Once again, same premise, I'm trying to find the most simple
script possible that could basically traverse a directory of simple
textfiles and produce a list.

I know all about Blosxom and stuff like that, but I'd like a script that
just did the above and didn't overtake my site like PHPNuke or something
like that. I'll probably roll my own, but I thought I'd check first.

View Replies !
Simple Simple String Question
When I take the input from a textarea and insert it into a mysql-base and then retrieve it and show it, all the line feeds/breaks are gone.

It is shown as one giant string. How can this be fixed, so the text will be shown as it was entered? Does it have something to do with stripslashes/addslashes or am I way off?

View Replies !
Simple Row
I have this code that doesn't work - all it does is display "5 products returned" i want it to display the 5 records that are in my database - can someone tell me what stupid thing i've done wrong?

<?php
$query="SELECT * FROM products";
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
echo "<p>$num_results products returned</p>";
for ($i=0; $i <num_results; $i++)

{$row = mysql_fetch_array($result);
echo "<p><strong>".($i+1).". ID: ";
echo $row["ID"];
echo "</strong><br>Product: ";
echo $row["Product"];
echo "<br>Description: ";
echo $row["Description"];
echo "<br>image: ";
echo $row["Image"];
echo "<br>Cost: ";
echo $row["Cost"];
echo "</p>"; }?>

View Replies !
Simple PHP IF, ELSE IF
the levels staff and member have been defined on another page to determine a users access level. What i want to do is pretty obvious, if a staff member has logged in then it shows different content to when a member is logged in, and if nobody has logged in, it shows a generic login message.

<?php if ($_SESSION['level'] == "staff") { ?>
<p><b>Welcome staff member <br />
<a href="../chooseupdate.php">
<?php echo $_SESSION['username']; ?> </a>
you're logged in.</b>
<? } elseif ($_SESSION['level'] == "member") { ?>
<p><b>Welcome user member <br />
<a href="../memberspage.php">
<?php echo $_SESSION['username']; ?> </a>
you're logged in.</b>
<? } else { ?>
<p><b>You are not Logged in!</b> <a href="../login.php">Log in</a> to check your messages.<br />
Do you want to <a href="../login.php">Log in</a> or <a href="../register.php">register</a>?</p> <? } ?>

Now when i add to this a page, i get the error "Parse error: parse error, unexpected $end"

Happens with this one aswell

<?php if ($_SESSION['loginFlag'] == 1) { ?>
<p>Would you like to log-out? <a href="../log-out.php">Log-out</a> </p>
<? } else { ?>
<p>Please <a href="../login.php" class="style2" accesskey="6"><strong>[6]</strong>Sign in</a> or <a href="../register.php" class="style2" accesskey="7"><strong>[7]</strong>Register</a></p><? } ?>

Now, I'm positive this worked on my colleges server, so it's got me thinking that maybe my php.ini file is messed up? Because this is also happening with my log-out file also, which is;

<?
// you must start session before destroying it
session_start();
session_destroy();

sleep(1);
header( 'Location: login.php' ) ;
?>


On my college server it works perfectly, at home it just loads the log-out.php page and doesn't redirect back to login.php, it also doesn't destroy the session.#

My php.ini is basically the default one, i got with WAMP. Except i enabled the header command to be used.

Thanks in advance.

View Replies !
Simple If/else
I know, it's sad, but I can't figure it out for the life of me. The update works if you comment out the insert statement; if you comment out the update, the insert statement works. If you combine both, then only update works. I know it's with the if/else (or the actual placement/naming of the query), but I can't figure out where to place it.

         <input type="hidden" name="submitted" value="TRUE" />
        <div align="center"><input type="submit" name="submit" value="Submit" />
   
<?
ob_start();
session_start();
include ('./marketing/includes/post.php');

$date = date('m.d.Y');

if (isset($_POST['submitted'])) { //Handle form
if(empty($_POST['name'])) {
echo '<br /><i>Please insert an artist name. </i>';
......................

View Replies !
Simple Bit Of PHP - HELP!
I have a site for use by some freinds, its basically a privacy proxy,but I want it to be password protected and have to get them to agree to terms and conditions. I have an index.php page in a subdomain, that has a short list of terms and conditions. I want them to have to check a box to say they agree & then also enter just a password to continue. It doesn't need to be secure. The password can be one for all.

It would be good if it was all contained in the one Index file. Then when both the tick box and checkbox is checked it takes you onto a difficult domain that can't be remembered. Does that make sense? It would be good if a pop up said that you need to agree to the terms if the check box is not checked and a different message is a password is not entered or is incorrect.

View Replies !
What Is The Best Way To Use Simple Templates In PHP?

What is the best way to use simple templates in PHP?

header, footer, etc, not parsing code

1.require
2.include
3.not using php but only HTML instead
4. Fast templates
5. other?

where I can find a well explained tutorial on this?

View Replies !
Get Localhost - Very Simple
This is a very simple question I think, but I can't find a straight answer from the php documentation. What is the function or variable that I can use to get localhost information?

View Replies !
Simple Script
what i am doing is when a user goes to mysite and let's say that he is looking for a friend. Then he selects gender,country,age(selections). I have three categories to choose. Whatever a user select, the results comes from my database. If the results are 10 datas, it is 2pages.

That's what I am trying to do but I got an error. PHP Code:

View Replies !
Simple Mark-up For CMS
I'm designing/coding a content management system in PHP and am
currently considering how the users will add textual content. I would
like them to be able to use some kind of simple mark-up, like a very
limited subset of HTML, probably with a more friendly naming scheme.
Does anybody have experience of such a thing? I'm thinking an XML
application is the proper answer but when I consider the DTD and
parser it seems like an overkill solution if I'm starting from
scratch.

Does anybody have any advice or suggestions on this? I'm sure it's
been done before but I don't know where to look, is there something
existing I can use or adapt? Has anybody tried this kind of thing
before?

View Replies !
Simple URLs
I want to have a lot of control over my short urls. My site has guitar lessons and articles and I want to have short urls of the form:

mysite.com/guitarlessons-scalelesson.html

The original url is of the form:

mysite/modules.php?op=modload&name=mainlessons&file=index&req=view_fulllesson&lessonid=8

In this case $lessonid 8 refers to scalelesson. All short URL examples I have seen take the original URL and directly translate it. In may case, the short URL scheme would have to query the database. I would like my forum to function similarly. That is, forum posts and forum pages would have forum category and post title in the short URL. Anyone know how to do advacned simple URLs of this sort?

I really like how this forum does short urls actually. I can't imagine this is done with mod_rewrite() since the simple urls appear to be generated dynamically based on database calls.

View Replies !
Simple Redirect?
I've been searching through the forum, and the only solution offered for redirecting to another page seems to be this:

header("Location: http://www.thispage.com ");

Apparently, this doesn't work if it is not in the absolute beginning of the page. My question is the following: Isn't there a more simple command in PHP to tell this simple thing:"Go to this or that page now!".

View Replies !
Simple AJAX Example
Several times some members even me post for simple AJAX example with PHP.
Some of experts will give URL of  tutorial. Now with this attachment I send my simple test of AJAX +PHP with the help of w3schools. There is no alternative to study  good tutorial but this simple example may give the fell of AJAX ...

View Replies !
Some Simple Security
I want to be able to add some simple security to one of my pages, basically
my page allows users to submit a text field which gets parsed into MySQL db
and displayed on other pages. At the moment anyone can submit text which
opens the page to abuse. I don't want to implement a user login system. I
had envisaged the addition of a password entry box which the Submit button
checks against the db before proceeding, so if any user has the correct
password then they can submit.

Having never done password stuff before, could somebody please point me in
the right direction?

Also, if I have the config data to connect to the mysql db in a PHP file on
my server, can anybody just open it?

View Replies !
Simple If Statement
How come this doesn't work?

What am I doing wrong?

$type = $_GET['functionType'];

if ($type == 'Add'){
$AddSQL = "INSERT INTO...";
echo $AddSQL;
}elseif ($type == 'Update'){
$UpdateSQL = "Update ...";
echo $UpdateSQL;
}elseif ($type == 'Delete'){
$DelSQL = "DELETE FROM ...";
echo $DelSQL;
}

View Replies !
Simple Opt-in Script?
I'm looking for a most simple but save opt-in mailing list script in
php (linux Apache CGI, but shouldn't matter)

best:

* all in one single .php file; different functions by input vars /
passwords; config vars on top of script

* uses MySQL or a plain file (still no doubles) next to the .php
(best both options)

* double opt-in not necessary but nice

* good would be "default topic" and at least up to 5 different lists/topic

* takes directly my web forms like email=...&listname=...&sign=in ;
repsonse page can be very simple.

* I can read out the lists plain formatted also by web through the same
..php & password like: cmd=getlist&listname=...&password=...

* hopefully no extreme installation tricks (thus php4, ..)


looking at more than 10x google'd ones, always something was wrong, big
or jerky or not as is should be...

View Replies !
Simple String
Heres my code: Its the result of a simple AJax login form. The problem I am having is with the & sign in the $page variable. Keeps coming up with the following error:

"A semi colon character was expected. Error processing resource " Im sure I just need to escape the & sign but not sure how. Code:

View Replies !
Simple Parser In PHP?
I'm coming to the end of a large and exhausting project, done in my
new favorite language PHP, and its time for a diversion.

I'm wondering if anyone has experience with writing simple parsers. I've
never done it myself, but I know they are not as mysterious as they may
seem, it's a matter of finding the tools.

The idea is to take something like CSS format, except that it allows
nesting, and turn it into associative arrays, such as:

anykey {
property: value;
property: value;
nestedkey {
property: value;
property: value;
}
}

could be processed by a command like:

<?php
$parsed = ParseMyFile(...)
?>

and $parsed would hold the same as if we'd done this:

$arr = array(
anykey("property"=>"value",...

View Replies !
Simple Include
I have an include file called "my_inc_file.php" located in a subdirectly called "inc_files". I have a file both in my root directory, and in another subdirectory called "subdir", that uses the include file. My include is called in a template common to both, so has to have the exact same file structure. My local pc uses Windows, and my remote server uses Linux.

How can I change my include statement so it works for both cases and both operating systems? include_once '/inc_files/my_inc_file.php'

View Replies !
Simple Counter
After a process opened, read and unlocked the counter.txt, some other process would open, read and even write its own count value. So the first process will write a count value less than the right value. And I guess it needs more exception handling codes. Code:

View Replies !
How To I Do A Simple Redirect?
How to I do a simple redirect? I just want people to come to one page and have it automatically kick them to a different page.

View Replies !
Simple Search
I 'm developing a site consisting of 5-10 html/php pages. I want to add
a simple keyword search in my site. I can't seem to find any simple
script, except risearch which can't search my Greek pages (el_GR.UTF-8).

View Replies !
Simple Stuff
i am really getting confused with php's curly brackets ok how do i assign a variable and then assign a value to it from a form parameter send to it..like below if i dont add the @ then i get errors, so how do i assign a value to $actionvar, and if $actionvar is empty then condition ?

If (@$actionvar =="")
{ echo ("<b><FONT COLOR=#804040>Rates in RM</b></font><br><br>");}
else{
echo ("<b><FONT COLOR=#804040>Converted to $cname</b></font><br><br>");}?>

when i doing somthing like this:
<?php
if ($wed =="")
{$wed =="not selected"}?>

it is giving me error in the last "}" why ?

View Replies !
Simple XML Parser
I am trying to write a simple XML parser with PHP. What would be the best way to assign the string/text stored in between <TAG> … and … </TAG> to a variable? The 'content' between the XML tags can have multiple lines and may contain other html tags.

View Replies !
Simple Date
i just want to automatically add a date field to a mysql database everytime an entry is made. the date wont even be used, its just for my reference. i was wondering if i have to do this through php when i submit the other variables to any new table row....or if there is a command to do it in mysql.

View Replies !
Simple Ereg Help
I need two ereg expressions in my PHP code. One of them needs to check
that a string only contains letters, and the other needs to check that
the string only contains letters and commas (only one comma at each
time).

I thought that the code for only containing letters would be:

eregi("^([a-z])", $keywords);

But this only appears to be checking the first character.

I also have no idea how to do the one that also allows commas (though
not for lack of trying - believe me!)


So, basically, I want one expression that only lets in letters:
ie. hyasdlhlasdhl but not fhdilfd7800asdads;'

and one expression that only lets in letters and commas (one at a
time):
ie. hasiaks,asdas,adsads but not hdasl,,ahodsa,ads

View Replies !
Simple $variable
I'm trying to fill in a form to insert info into a database. There are two fields to be filled out - one for the root of a thumbnail image, and one for the root of a full-size image. Since the names of the files are always the same, I would like to only fill out one text field in the form and have the code do the rest. Code:

View Replies !
Simple Idea For ERP - Please Help
I'm starting project.First stage is for my school work, but i want to
develop it to the end.

I want to create a ERP based on php for small company's

I want to use as many as possible created opensource applications.

First i need to choose some framework, maybye someone think that php is
not a good idea..I'm waiting for propositions:)

I need to add to this framework some graphic database manager. If it
possible for all databases, but I did't found any ..I want to start with
postgres and mysql., maybye firebird.

Second I have to add soe functionality witch is needed for company
worker, mayby webmail,small cms for documents...

I also need to add sometching for making automatic
documentation.(phpdocumentor ?)

Thats the first stage.I need it in the short time :(

Second i will be developing modules for all departments in small and
medium company.
More details on the webpage(i'm designing it ) and next posts..

View Replies !
Simple Test
Why does this test as not true.

if (!1==2) echo 'true' else echo 'nottrue'

It seems like it should be true.

View Replies !
Simple Question !
I want to know how many entries there is in a table : is there a simple
function to do that ?

By the way, does anyone know how to make an autorun on a CD rom, so that
when the CD is inserted, it opens the user's internet browser (in full
screen if possible).

View Replies !
Simple Php Problem...
I've just started learning some stuff about php and have been
following a couple of tutorials. At the moment I'm stuck with this small
piece of code which gives me an error "mysql_fetch_array():supplied
argument is not a valid MySql result"

<?php
include 'config.php'
include 'opendb.php'

$query="SELECT cname, csubject, cmessage FROM contact";
$result=mysql_query($query);

while($row= mysql_fetch_array($result,MYSQL_ASSOC))
{
echo
"Name :{$row['cname']} <br>" . "Subject : {$row['csubject']} <br>" .
"Message : {$row['cmessage']} <br><br>";
}
include 'closedb.php'
?>

This should just display the content of a table..

View Replies !
Simple Php Queston
I have a multi select pick list in an html

<FORM ACTION="/progs/read.php" METHOD="POST" target="_blank">^M

<label for="CATEGORIES">Select one or more categories</label>^M
<SELECT MULTIPLE name="CATEGORIES" size="10" id="CATEGORIES"
class="select">
<option value="41">Auto Manufacturers</option>
<option value="27">Biodiesel</option>
<option value="38">Component Suppliers</option>
<option value="39">Conversion Companies</option>
<option value="40">Dealers</option>
<option value="28">Electricity</option>
</select>

in read.php i try to read the value by:

$categories=htmlspecialchars($_POST['CATEGORIES']);

then try to print out the value and all I get is the last value.

I tried to put in an array like:

$categories=array($_POST['CATEGORIES']);

and still got the same result.

View Replies !
Simple Sql Join
This is a simple join but I am having trouble with it. I feel like such
an idiot.

I start with this select statement, which works fine:
$query =
"SELECT a.auction, a.winner, b.id
FROM PHPAUCTIONXL_winners a, PHPAUCTIONXL_auctions b
WHERE a.auction=b.id";

Now I only want the results from auctions with ids that are not listed
in the 'archived' field of the PHPAUCTIONXL_archived table. So I added
another table and an AND to the SELECT statement. Now I don't understand
why it doesn't show the auctions which are not archived.

$query =
"SELECT a.auction, a.winner, b.id
FROM PHPAUCTIONXL_winners a, PHPAUCTIONXL_auctions b,
PHPAUCTIONXL_archived c
WHERE a.auction=b.id
AND a.auction !=c.archived";

View Replies !

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