scarezekiel Posted February 20, 2012 Share Posted February 20, 2012 so i created this leave application program..users need to select branch/month/year. then it will show which user from which branch, on which month of the year leave details. i have created a view in my database..can someone pls help.. <? $rowid =0; if ($leavemonth =='' || $leaveyear =='' || $branchid == '') { } else { $rs = mysql_query( " call spsalary('$leavemonth', '$leaveyear', $branchid, 0);"); while($row = mysql_fetch_assoc($rs)) { $rowid =$rowid + 1; $employeeid = str_replace("’", "’", $row['id']); Link to comment https://forums.phpfreaks.com/topic/257345-please-help-me-anyoneurgent/ Share on other sites More sharing options...
trq Posted February 20, 2012 Share Posted February 20, 2012 You forgot to tell us what the actual problem is. Link to comment https://forums.phpfreaks.com/topic/257345-please-help-me-anyoneurgent/#findComment-1319075 Share on other sites More sharing options...
scarezekiel Posted February 20, 2012 Author Share Posted February 20, 2012 the problem is..i need the whole code for this program to work. Link to comment https://forums.phpfreaks.com/topic/257345-please-help-me-anyoneurgent/#findComment-1319078 Share on other sites More sharing options...
trq Posted February 20, 2012 Share Posted February 20, 2012 This link should help you. Link to comment https://forums.phpfreaks.com/topic/257345-please-help-me-anyoneurgent/#findComment-1319084 Share on other sites More sharing options...
scarezekiel Posted February 20, 2012 Author Share Posted February 20, 2012 ..that page tells me how to ask questions.. -.- .. nvm Link to comment https://forums.phpfreaks.com/topic/257345-please-help-me-anyoneurgent/#findComment-1319097 Share on other sites More sharing options...
trq Posted February 20, 2012 Share Posted February 20, 2012 ..that page tells me how to ask questions.. -.- .. Exactly. Link to comment https://forums.phpfreaks.com/topic/257345-please-help-me-anyoneurgent/#findComment-1319100 Share on other sites More sharing options...
scarezekiel Posted February 20, 2012 Author Share Posted February 20, 2012 how do i fetch data from database once the form is submitted... T.T Link to comment https://forums.phpfreaks.com/topic/257345-please-help-me-anyoneurgent/#findComment-1319104 Share on other sites More sharing options...
trq Posted February 20, 2012 Share Posted February 20, 2012 You check to see if a form has been submitted. eg; if (isset($_POST['submit'])) { // fetch data from the database. } Link to comment https://forums.phpfreaks.com/topic/257345-please-help-me-anyoneurgent/#findComment-1319105 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.