Jump to content

creating calendar


BluwAngel

Recommended Posts

hi

i open this post so i dont open 5 new ones

 

ok i have a task to do an event calendar now i found some tutorial for creating simple calendar BUT all of them are on english what i need is change it to croatian - that means i have custom names for days, custom names for months, and what i also need is put sunday where it belongs... at the end because we are calculating week starts by monday... so any tips?

 

if you know some tutorial that works for these spec things i googled it but i only found like 2 calendars that actualy works other have some bugs in scripts and wont do thing

or just write me tips and ill try to create it

Link to comment
Share on other sites

i manage to do that with some functions and day-- so sunday is back in calendar

now i have question i cant find anywhere how to align without <p>

what i need is

table

link1(align left)        link2(align right)

 

but inside same row

i tried with DIV an P but not working always goes other row

any idea(html so i dont need create css only for that?

Link to comment
Share on other sites

new problem

 

i want add submit button for selecting year and month

now i made list of years like this but dont know how can i select default option for current year

 

echo '<select name="">';
$selected = date('Y');


$godina = 1950; for ($i = 0; $i <= 300; $i++)
{$godina++;
echo "<option>$godina</option>";
echo "<option selected>$selected</option>";
}


echo'</select>';

 

now i get

years

+default year

 

 

what i need is

...

2010

2011

2012 SELECTED

2013

2014

...

Link to comment
Share on other sites

  • 3 weeks later...

help again

dropdown menu and value

 

echo '<select name="id_user">';
while ($users = mysql_fetch_array($query)){

$ime 		= $users['ime'];
$prezime	= $users['prezime'];
$id			= $users['id'];

echo '<option value="$id">';
echo "$ime $prezime $id";
echo '</option>';

}
echo '</select>';

 

do i have sometable with users and i want select user (displayed name surname and id)

but when i click "add" i need php to remember only id and sve it to table

that code is what i done for now

i get results but dont know how to remember id from what i select

can you help or explain how that works

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.