Jump to content

Really very basic question about getting a query output into URL for google cale


dazzathedrummer

Recommended Posts

Ok, I know this is a really simple one, but I haven't done any coding for a couple of month and i'm a bit rusty.

 

I'm trying to add a field from a MySQL query to a Google calendar add button link so I can create a dynamic 'add to calendar' button from my gig list.

 

So on the gig list page that echo's all the dates from the database, I want to add the venue name to the 'text' section of the google URL -

 

<a href=\"http://www.google.com/calendar/event?action=TEMPLATE&text=VENUE HERE&dates=20060101T000000Z/20060101T000000Z&details=gig%20text&location=gig%20town&trp=false&sprop=www.the-guards.co.uk&sprop=name:The%20Guards\" target=\"_blank\"><img src=\"http://www.google.com/calendar/images/ext/gc_button6.gif\" border=0></a>

 

if I echo the field like so -

 

echo"{$row['gl_venue']}";

 

I get the correct result - I just can remember how to embed the php within the html, everything i've tried has failed so far.

 

Once i've got this sorted i can go ahead and add the date, location fields etc.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.