BluwAngel Posted January 9, 2012 Share Posted January 9, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/254668-creating-calendar/ Share on other sites More sharing options...
ManiacDan Posted January 9, 2012 Share Posted January 9, 2012 setlocale changes the output of many functions, including date related functions. -Dan Quote Link to comment https://forums.phpfreaks.com/topic/254668-creating-calendar/#findComment-1305868 Share on other sites More sharing options...
BluwAngel Posted January 14, 2012 Author Share Posted January 14, 2012 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? Quote Link to comment https://forums.phpfreaks.com/topic/254668-creating-calendar/#findComment-1307512 Share on other sites More sharing options...
BluwAngel Posted January 14, 2012 Author Share Posted January 14, 2012 i used images for it its ok now and yes i have problem when i write in dreamweaver it wont save my special char "Č" it converts him to È and "Ž" works fine Quote Link to comment https://forums.phpfreaks.com/topic/254668-creating-calendar/#findComment-1307523 Share on other sites More sharing options...
BluwAngel Posted January 14, 2012 Author Share Posted January 14, 2012 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 ... Quote Link to comment https://forums.phpfreaks.com/topic/254668-creating-calendar/#findComment-1307543 Share on other sites More sharing options...
BluwAngel Posted February 1, 2012 Author Share Posted February 1, 2012 new issue i need help with form i have link (example) http://localhost/zavrsni/admin/eventform.php?dan=24&mj=2&gd=2012 where is dan=day mj=month gd=year now can you help me i dont know how can i enter that date inside of my databse (but in database IS "DATE" NOT VARCHAR) Quote Link to comment https://forums.phpfreaks.com/topic/254668-creating-calendar/#findComment-1313299 Share on other sites More sharing options...
ManiacDan Posted February 1, 2012 Share Posted February 1, 2012 $sql = "INSERT INTO someTable ( someDateField ) VALUES ( '" . mysql_real_escape_string( $_GET['gd'] . '-' . $_GET['mj'] . '-' . $_GET['dan'] ) . "' )"; -Dan Quote Link to comment https://forums.phpfreaks.com/topic/254668-creating-calendar/#findComment-1313308 Share on other sites More sharing options...
BluwAngel Posted February 3, 2012 Author Share Posted February 3, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/254668-creating-calendar/#findComment-1314251 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.