Home made PHP and SQL Calender

I'm making a PHP calender which will output the contents of a
database via SQL. At the moment ive got heading (just a quick over
view of whats happening), event (more detailed info not shown
during the standard calender view), importance (this will simply be
a cel colour which I can do very easily without help) and date
(day, month, year) as my fields. I'm trying to figure a way of
putting something in each field and getting it to come out on the
appropriate date on my finished calender.
It's VERY early stages so SQL development hasn't begun yet, I
wan't to do this completely by hand (I'm aware theres calender PHP
scripts already). I was thinking of making a database containing
each month, day and year and if theres something in the specific
fields then outputting whatever I've wrote in it, however this will
make the database HUGE! Whats the simplist and easiest way to do
this.
P.S I also want to be able to have multiple entries for one
date

"slowpoke115" <[email protected]> wrote in
message
news:fa99a0$asi$[email protected]..
> I'm making a PHP calender which will output the contents
of a database via
> SQL.
> At the moment ive got heading (just a quick over view of
whats happening),
> event (more detailed info not shown during the standard
calender view),
> importance (this will simply be a cel colour which I can
do very easily
> without
> help) and date (day, month, year) as my fields. I'm
trying to figure a way
> of
> putting something in each field and getting it to come
out on the
> appropriate
> date on my finished calender.
>
> It's VERY early stages so SQL development hasn't begun
yet, I wan't to do
> this
> completely by hand (I'm aware theres calender PHP
scripts already). I was
> thinking of making a database containing each month, day
and year and if
> theres
> something in the specific fields then outputting
whatever I've wrote in
> it,
> however this will make the database HUGE! Whats the
simplist and easiest
> way to
> do this.
>
> P.S I also want to be able to have multiple entries for
one date
Did a calendar extension for ASP once, for data storage it
used a simple sql
table containing a EventDate and EventTitle column, the
display logic was
something like below
retrieve Events WHERE Date >= first day of month AND Date
<= last day of
month
for each Week in the Month
begin table row
for each day in the Week
begin table cell
for each event in selected Events
If(EventDate == day) Print EventTitle
next event
end table cell
next day
end table row
next Week
I hope you get an idea about how to avoid creating a row for
each and every
date
Joris

Similar Messages

  • PHP and SQL Server with DW

    Hi,
    I have a problem with DW. I´d like to develop a site
    using PHP and SQL Server. Anyone knows if is there a extension to
    do this kind connection inside DW?
    I´ve tried to use the string that DW generates to
    connect with MySql and change it to connect with SQL Server,
    however it doesn´t work.
    I´ve already found a extension that do this, but it
    doesn´t work with DW CS3.
    Anyone can help me?
    Thank you,
    Luciano Fernandes
    PS: I have a original DW CS3

    "lucianopopo" <[email protected]> wrote in
    message
    news:ff7k9h$euc$[email protected]..
    > Hi,
    >
    > I have a problem with DW. I?d like to develop a site
    using PHP and SQL
    > Server.
    > Anyone knows if is there a extension to do this kind
    connection inside DW?
    >
    > I?ve tried to use the string that DW generates to
    connect with MySql and
    > change it to connect with SQL Server, however it doesn?t
    work.
    > I?ve already found a extension that do this, but it
    doesn?t work with DW
    > CS3.
    >
    > Anyone can help me?
    >
    > Thank you,
    > Luciano Fernandes
    >
    >
    > PS: I have a original DW CS3
    There used to be the PHAkt servermodel supporting multiple
    databases in PHP
    with Dreamweaver,
    unfortunately Adobe dropped the product after acquiring the
    company that
    produced it before the release of CS3, so
    it's not compatible with Dreamweaver CS3.
    Previous versions are available at
    http://openphakt.sourceforge.net,
    you can
    help development of a CS3 compatible version by posting bug
    reports for the
    error messages you encounter.
    Joris van Lier

  • PHP and SQL trouble

    Hi there,
    Im currently creating a login system using php and sql. At the moment i have it that when the user registers their information (i.e username,password) it gets stored in the database. The part that i am having an issue with is that when the user logs in, I want to retrive the relavant data from the database and compare it to what they have entered into the login section. I persume i have to use an sql query something like (SELECT username, password FROM Users) but not sure how to compare it to what the user has entered.
    Any help you be greatly appreciated.
    Thanks,
    Barrie

    Hi,
    does it mean that you´re not using Dreamweaver, which comes with a Login User server behavior which would do all the heavy lifting and generate a correct query ? Just asking, because you posted in the Dreamweaver Application Development forum

  • Help with Flex - PHP - and SQL Server

    Good afternoon,
    I have been working on this problem for over a week and am at
    my wit's end. I am trying to create an application that will allow
    me and my fellow statisticians to share code easily. The
    technologies at my disposal are Flex, PHP and SQL Server 2005. The
    web server is IIS. I have downloaded and installed the PHP driver
    for SQL Server 2005 and am able to query the database and generate
    XML. The problem I'm having is that I can't return the XML from PHP
    to Flex.
    If I execute the php code in a web browser and view the
    source, it looks like XML. I can then cut and paste the exact same
    code into an xml file and read it in from the harddisk and the tree
    will populate. Can anyone please help me? I don't have flex builder
    so I it's hard for me to use trace and view what is going on.
    Thanks in advance,
    Eric Graves

    Thanks for the suggestion. I have tried every permutation of
    e4x path notation I can think of. You're right, you're not supposed
    to need the root level as that's supposed to be returned in the
    result. So you should only need to reference first level after the
    root. When I do this and launch the .SWF I get a completely empty
    tree.
    I think the problem lies somewhere in my understanding of
    what format Flex needs returned from a HTTPRequest. It's my
    understanding that it just needs to be XML. As far as I can tell,
    that's what I'm sending it. On the PHP side, does it have to be
    cast a special way? Everything I've seen just shows people using
    ECHO to output the XML data.

  • Http service component working php and sql data

    hello i'm using that componet. i have trouble. now i want in my home page
    i have 2 title from my localhost/phpmyadin. and i want when click title 1 it will link to a detail.mxml  and display content of title 1
    and when click title 2 it will display content of title 2 in detail.xml
    i don't know transmission parameters . Can u help me please. I'm need it

    These links are good for showing how to use Flex + PHP + HTTPService + MySQL:
    http://www.switchonthecode.com/tutorials/using-flex-php-and-json-to-modify-a-mysql-databas e
    If this post answers your question or helps, please mark it as such.
    http://www.switchonthecode.com/tutorials/flex-php-tutorial-transmitting-data-using-json
    http://www.switchonthecode.com/tutorials/flex-php-json-mysql-advanced-updating
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • PHP and SQL

    Is it possible to use php to display records from an SQL (not
    MySQL) database hosted on a separate server? I don't need how-to
    details at this point, just whether or not it is possible.
    Thanks

    BrianArena wrote:
    > So is there a difference between Microsoft SQL and
    (non-Microsoft) SQL. The boss didn't mention "Microsoft" SQL, just
    SQL.
    Microsoft SQL Server is just one of many database systems
    that use SQL
    (Structured Query Language), the standard language for
    communication
    with a relational database. SQL is a common standard used by
    MySQL,
    PostgreSQL, Access, Oracle, Microsoft SQL Server, and many
    other
    database systems.
    Unfortunately, although SQL is a standard, each database
    system uses its
    own dialect. The basic commands are the same, but the finer
    details
    differ according to the database system.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Home made component and Look'nFeel

    I would like to create a new component (and probably some new component UI) that can change it's appearance depending on the LAF.
    How should I proceed?
    Thanks for any help.
    Eric

    Please take a look at my Calendar components at http://web.ukonline.co.uk/mseries I have done the very thing you seem to be asking for. The CalendarPanel is an example of a component with a pluggable look and feel

  • A difficult problem with php code and sql code

    it's good place to visit(Paged Result Sets with PHP and Oracle)
    http://www.oracle.com/technology/pub/articles/oracle_php_cookbook/fuecks_paged.html
    maybe below part php code could not be used in above address's php code.
    if((isset($l_company) and $l_company != $rows['COMPANY']) or empty($stmt) and empty($total_pages) ) {
    echo "<tr bgcolor='#CCFFCC'>";
    echo "<td colspan= 3 align='center'>".$l_company."</td>";
    echo "<td >".$totalcomany." </td>";
    $totalcomany = 0;
    echo "<td > </td>";
    echo "</tr>";
    $l_company = $rows['COMPANY'];
    because the same company in one page could calculate sum while if
    the same company in two pages could not do that.
    and what do you think of ?
    thanks !

    Hi,
    this is because your sql-statement selects only the rows, you need to build this one page.
    Neither php nor the given result from your query knows about data wich will be part of the result of another page.
    Greetings from Hamburg
    Thorsten Körner

  • I have looked through the video tutorials for CS6 and cant find any help for PHP using SQL.

    Where is a good place that I can go to learn more about using dreamweaver and different languages than html.  Is there a service that adobe offers that I could buy that would take me from rookie all the way to professional with a good easy to use structure such as adobe tv but more advanced and thorough?  I am trying to build a website with a log in page and registration.  I have the HTML part down well enough but need help writing the php scripts and using SQL to store the user info

    I'm moving this to the main Dreamweaver support forum.
    In answer to your question, you need to be aware that the PHP server behaviors in Dreamweaver CS6 use the original MySQL functions that are scheduled to be removed from a future version of PHP. The server behaviors have already been removed from Dreamweaver CC. If you are planning to create a site using PHP and MySQL, do not rely on Dreamweaver's server behaviors. You must use either MySQLi (MySQL Improved) or PDO (PHP Data Objects) instead.
    If you're looking for video tutorials, you might be interested in the courses I have created for lynda.com. As a beginner, a good place to start would be PHP for Web Designers or Introducing PHP (there are several sample videos that you can watch for free on my website). Both courses were recorded on Dreamweaver (PHP for Web Designers on Dreamweaver CS6, Introducing PHP on Dreamweaver CS5.5). PHP for Web Designers shows how to connect to MySQL with MySQLi. You need a subscription to lynda.com to watch the complete courses, but you can get a seven-day free trial by following the links on my website.
    If you don't want to commit to a subscription service, I have also written a book called PHP Solutions, which covers MySQLi and PDO in depth. It also shows how to build a login system. At the moment, the second edition is available, but a revised third edition is due to go on sale in December.
    There are also a lot of free resources on the web that you can find. The important thing to beware of is that a lot of old material relies on the original MySQL functions. Whichever resource you use, make sure it shows how to use MySQLi or PDO.

  • Using the In port.vi and Out port.vi in LabVIEW access my the Cards(Home made)

    Hi Everyone,
    I have got the Cards (home made 8 bit and 16 bit ) plug in at slot ISA my PC (I am using the commands inport and outport (addressed with 318-31A Hex) in C language to access very good).This now,I want to use LabVIEW language to access data directly to Port at my the Cards. In LabVIEW, Can I access data to port using the In port.vi and Out port.vi located in the Advance?
    My English is poor, you don't laugh when you read it.
    Thank you a lot.

    SachaE wrote:
    > LabVIEW 7.0 cannot use the built-in In/Out Port VIs with a 32-bit
    > address. Instead, you will have to use the versions of these VIs found
    > in previous versions of LabVIEW.
    Are you talking about physical memory access here? If so that is
    something entirely different. The Intel x86 architecture uses a separate
    IO address range which is entirely separate from memory space.
    And at least up to the first Pentium models it was definitely never
    possible to address more than 16 bits for IO address space.
    This of course has gotten a little more complicated nowadays with many
    PCI boards being actually mapped into memory address space instead of IO
    address space. So eventhough a PCI board is more like an IO device it
    often is accessed in the memory space.
    > Actually, the In Port and Out Port VIs are intended for 16-bit port
    > I/O and not for writing to arbitrary addresses in memory. For this
    > reason, writing to 32-bit addresses never should have been allowed.
    I think the VIs to access physical memory addresses were different than
    the ones to access IO addresses. And yes it is definitely not a good
    idea to have an application poke into physical memory as it could
    completely screw the system to the point where you couldn't start it
    anymore. Also IO devices mapped into memory address space are almost
    always typically plug and play devices, so their address is not really
    fixed and you need to do quite some more work on OS level to enumerate
    your hardware and find the resources used before trying to access it.
    This is something not really suited to try to do in LabVIEW and
    therefore should be at least implemented as DLL but in fact anything but
    a device driver is a very bad kludge.
    > One possible work-around would be to use NI-VISA to perform
    > register-level programming. NI-VISA gives you access to any PXI/PCI
    > board, not only NI boards, and can be used to access the board's
    > registers.
    >
    > http://zone.ni.com/devzone/conceptd.nsf/webmain/ADF3152837E2B4A486256B5600642AC7?opendocument
    Thanks for this. Didn't now this existed in NI-VISA. Will check it out.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • I'm using Windows 8.  I have 2 folders in my videos library - movies and personal videos.  When I try to import a movie into iTunes, it puts it in the Home Video section and if I import a personal video, it puts it into the home video section.  what up?

    Im using Win8.  I originally had all my ripped movies in a movie folder listed in the videos library.  This imported into iTunes movies with no issue.  I later added a second folder t my library - personal videos where i put all my home videos.  I was able to import this into iTunes and it showed up in "Home Movies" - very cool and exactly what I wanted.  Now, if I add a new ripped movie and put it in my movie librairy and try to import it into iTunes, it places it in Home Movies.  And if I put a new personal video, it will also import into iTunes under 'Home Video?.  What is going on here??  Any help would be greatly appreciated - it seems like this is a bug in iTunes 11.

    I thank you for the response.  Apple does some assinine things sometimes and this is one of them.  Ask the planet the difference between a movie and a home video and with the exception of Apple, you'd get 100% consenus on the what difference is.  A home video is something that I shoot, like my kids birthday party.  A movie is something I urchased either via download or a DVD that I ripped.  Unbelievable!   The fact that Apple has chosen not to distinguish based upon which folder I tell it is Movies and which folder is Home Videos is really hard to fathom - sounds like something Windows would do. I find it funny that in my iTunes movies sub-section of the movies section, the movie icons have a cloud icon in upper right corner to distinguish it as bought from Apple iTunes versus no cloud icon for movies that I have ripped - so the distintion was already made and clearly visible.  Now - everything just defaults to "home videos" if I try to import a new ripped DVD - why even bother to have this distinction on the iTunes bar?  WOW!
    As for your direction, I do not understand what you are telling me - what Media Kind and what Options tab are you referring to?  I see no Options tab in iTunes.  Right licking on the movie icon does not yield media kind or options as well.  Gping to the source file does not yield these options either.
    Thanks again for your help.
    Clay

  • How does iMatch treat my own home-made recordings with high emotional value?

    The question speaks for itself. I am cautious of using iMatch, because I am not sure what it will do with my precious home-made recordings (with performances of some of my deceased family members) of which there is no 'match'. Is it smart to make a back-up of these files first before sending them away in the cloud? Will it back up these files and make them available for all of my devices for my family when they log in under my name?

    Hi,
    Match will not change your files. If they meet match requirement regarding file type, size and bit rate they will be uploaded as is. If they are aiif, WAV or lossless they will be transcoded to 256 Kbps.
    You should maintain a separate back up of all your music - do not rely on match.
    The music will be available to stream or download on other devices and computers whilst signed into your Apple ID but be wary of the authorization rules. http://www.apple.com/uk/support/itunes/authorization/
    Jim

  • How to find out who made inserts/updates/deletes made to a SQL Table

    I want to know WHO MAKES INSERTS/UPDATES/DELETES TO a particular SQL Table. Bascially I want to AUDIT ANY Edites made to a SQL 2008 TABLE. I need info such as WHO AMDE THE Updates i.e. the user first/lastname, When update was made, what row was updated etc...How
    can I do that with SQL 2008?

    One way to achieve that would be to use triggers to detect when a change is made to the table, and then insert a record into another table/database detailing what changed and who by.
    You'd need three triggers, one for insert, update and delete respectively, and for each of those you use the "inserted" and "deleted" tables (system tables maintained by SQL) to retrieve what has been done. To retrieve who made the change you can query IDENT_CURRENT
    which returns the last identity value for a specific table.
    See :
    Triggers -
    http://msdn.microsoft.com/en-gb/library/ms189799(v=sql.100).aspx
    Inserted & deleted tables -
    http://technet.microsoft.com/en-us/library/ms191300(v=sql.100).aspx
    INDENT_CURRENT -
    http://technet.microsoft.com/en-us/library/ms175098(v=sql.100).aspx
    There may be better / more up to date ways to do this, but I've used this method successfully in the past, albeit a long time ago (on a SQL 2000 box I think!).

  • Unable to install Windows on an 2010 iMac with home-made Fusion Drive

    Hi there,
    I've been very happy using mi iMac eversince I installed the SSD alongside the HDD.  Only recently I tried to install Windows 7 but it doesn't seem to work.  The installer runs, it seems as though Windows is installing but it doesn't ever seem to be able to boot.  I've tried countless times.  Everytime it boots to Windows it shows nothing but just a black screen with the cursor blinking at the top left corner.
    Now, when I home-made the Fusion Drive the Mac OS was only 10.8.2 or older and I know that with 10.8.3 Apple has made improvements towards boot camp and especially the 3TB HDDs.  I wonder if this could have anything to do.
    Anyway, please enlighten me as to what is it that I need to do to make it work.  I've been reading something about the position in which the Windows partition resides compared to GUID and EFI but honestly I have just the tiniest idea about all that.  Just for the record, the following is what shows in the Terminal after diskutil list command:
    diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *256.1 GB   disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:          Apple_CoreStorage                         255.7 GB   disk0s2
       3:                 Apple_Boot Boot OS X               134.2 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.0 TB     disk1
       1:                        EFI                         209.7 MB   disk1s1
       2:          Apple_CoreStorage                         942.3 GB   disk1s2
       3:                 Apple_Boot Boot OS X               650.0 MB   disk1s3
       4:       Microsoft Basic Data                         57.0 GB    disk1s4
    /dev/disk2
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS Fusion Drive           *1.2 TB     disk2
    Hope you can help..!

    Hello again, by reading a couple of posts I learnt the steps and so, using an external OS I repartitioned the two internal drives making sure the Windows partition wasn't part of the Fusion Drive.  I was very excited as I was sure it would work and went ahead and started the Win7 installation even before the MacOS was restored into the iMac.
    No good news though.  The installer run as expected however, when the time came for the iMac to boot from the newly installed Windows7, all I saw was a blank screen and a blinking dash at the top left corner of the screen.
    Lastly, this morning I woke up to see that my old system was fully restored from Time Machine external back up.  I also leart that using the Boot Camp Assistant I could remove the Windows partition that I created on Terminal from the external OS, which was surprising, I honestly thought that that partitioning arrangement would be off-limits for the Boot Camp Assistant.
    Still, I haven't been succesfull installing Windows back to my Mac, can anybody help?

  • Linked Server error: Login Failed for user 'NT AUTHORITY\ANONYMOUS LOGON' between sql server 2005 32 bit and sql server 2012 64 bit

    Hi All,
    Here the linked server is created between sql server 2012 64 bit and sql server 2005 32 bit. I am getting the below error  when i try to access linked server from third server. I have created linked from Instance 1 to Instance 2. When i access it from
    instance 3 i am getting the below error. SPN setting has been done between these 2 servers. Also the option 'Trust the delegate' is enabled for the both the service account. 
    'Login Failed for user 'NT AUTHORITY\ANONYMOUS LOGON' 
    Appreciate your quick response. 
    Vikas.M.S

    Hello,
    Please read the following resources:
    http://www.databasejournal.com/features/mssql/article.php/3696506/Setting-Up-Delegation-for-Linked-Servers.htm
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/ea26de43-4c6b-4991-86d7-e1578f107c92/linked-server-login-failed-for-user-nt-authorityanonymous-logon?forum=sqldataaccess
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

Maybe you are looking for

  • Can't delete ftp content

    I was trying to delete all my files from the ftp server, but when I drag my files to trash, it appears a message says it can't delete, with error code -61. I tried making an empty folder and upload to it in order to delete its content but also failed

  • Why can't I get the iPod Touch in color with 16 GB?

    Hi! Happy Thanksgiving. So I really want to get the iPod touch 5th Generation for christmas/birthday (they're pretty close to eachother) however the one I want, which is the pink one, is about 70 $ more than the black one. After searching around for

  • Execute Immediate. Insert from materialized view.

    Hi, I'm using Execute Immediate in a function to insert rows into a table. (Oracle 10G) The function in tern is used in a materialized view. So, effectively the view does an insert. When I just had a regular insert statment the view would not compile

  • Which slot do I take the ram out and put the new in?

    I have a 24" iMac 2.33GHz with 2 gigs of ram. On my imac I can only put a total of 3 gigs. So Currently I have (2) 1GB modules each in both ram slots on my imac. So that means I have to remove pone of the 1GB chips and put in the new 2GB module I bou

  • Cannot run loadjava on Solaris 10 64-bit server - wrong ELF class error

    We are running into a problem when trying to run loadjava on a 10.2.0.3 database running on a Solaris 10 64-bit server. loadjava -user xxxxx/xxxxx -verbose -resolve -force my.jar creating : resource pea.properties loading : resource pea.properties ld