Jump to content

levi2613

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

levi2613's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yes, actually I had, but thank you. I think I found the issue though -- I included the .inc file twice. Like I said, something totally dumb. Thanks so much for your time and some much-needed perspective. -L-
  2. I tried pulling all the .inc code into the top of the files (including all the session.inc stuff), but still no joy. I'm working in PSPad, so I've never had any newline issues. The warning keeps citing the script include in the <head> section, but when I pull it out, I still get the same thing.
  3. I've been banging my head against the wall for a few hours now, and I'm sure I'm overlooking something dumb.... I have a shift report form that has a .inc include at the top to redirect to a report_view if it has already been submitted: <?include 'schedule/admin/shift_report.inc';?> <?include 'employee/index/session.inc';?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link rel="stylesheet" href="/new/style.css" type="text/css" charset="utf-8"> <link rel="stylesheet" href="/new/print.css" type="text/css" media="print"> <script type="text/javascript" src="/new/employee/index/session.js"></script> <title>Shift Report</title> </head> The code for the .inc file: ... if (mysql_num_rows($report_query)) { $report = mysql_fetch_assoc($report_query); if ($report['submitted']) { header("Location:schedule/admin/shift_report_view.php?date=$date"); exit; } } The report_view page has a similar setup: <?include 'schedule/admin/shift_report_view.inc';?> <?include 'employee/index/session.inc';?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link rel="stylesheet" href="/new/style.css" type="text/css" charset="utf-8"> <link rel="stylesheet" href="/new/print.css" type="text/css" media="print"> <script type="text/javascript" src="/new/employee/index/session.js"></script> <title>Shift Report</title> </head> The session files log the user off after 30 minutes of inactivity. These files work on all my other pages, but just in case, I removed every instance of them in these files, and I still get the error.... I don't see any "echo"s or "print"s, but I'm still getting the ubiquitous: The session.inc file is only 30 lines long, and line 45 in shift_report.inc is the header call. *Any* help is much, much appreciated. Thanks, Levi
  4. I'm coding a test page that asks the user to identify a trait in an image. After they submit their guess, another image with the correct answer highlighted appears. My issue is that anyone can just type in www.domain.com/test/solution.jpg and the correct answer image will show. This is an .htaccess protected site, but I didn't know how to deny access to a folder temporarily.... Any ideas? Thanks so much -- you guys rock. -levi-
  5. Chronister: thanks much. I used this, and it increased the number of emails sent, though I'm still not quite at 100%. After talking with US Cellular (most of the addresses failing were their SMP addresses), I think it's an issue of them accepting the messages. <shrug> Thanks again.
  6. I have a function that sends a short email to people who have signed up for the service. Unfortunately, some people do not sign up with valid email addresses, and these seem to cause my loop to fail without mailing those who have valid addresses. Any ideas? foreach($address_arr as $address) { $success = mail($address,'Open Shift',$body,'From: DCEMS'); if ($success) $success_arr[] = "Successful notification: " . $address; else $_ERROR[] = "Failed notification: " . $address; }
  7. TLG -- Thank you so much!! That's *just* what I needed!!
  8. Sorry, I realize now I wasn't very clear. I have a MySQL table with entries for user_id, time_in, time_out, etc. And I have a great little "view.php" page which takes *one* of those MySQL entries and shows it very nicely on the screen. When printed, the timesheet comes out on a single piece of paper. What I need to do is have a single button/click/function that will take multiple MySQL entries, send each of them through the view.php formatting, and print them each on a separate page. That way, the admin office will have a hardcopy of each employee's timesheet. Thanks!!
  9. I've written a form that allows employees to enter their timesheets, which, after submitting, get saved to a MySQL table. The results are shown in a nice, printer-friendly page with no company headers (in the print.css stylesheet) and set to an absolute <gasp!> width/height, etc. The admin wants a one-click way to be able to print all the timesheets submitted. Is there a way to cycle each of the MySQL entries through my view.php page? (Making sure that each one gets a completely separate page, of course....) Thank you so much!! Levi ???
  10. [!--quoteo(post=389028:date=Jun 28 2006, 05:46 PM:name=Luke Brown)--][div class=\'quotetop\']QUOTE(Luke Brown @ Jun 28 2006, 05:46 PM) [snapback]389028[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hi is there a function that would convert numbers to their string counterparts IE: 1 to One and if so what is the function called? [/quote] I know there are more out there, but the only one I know of is in C: [a href=\"http://codeproject.com/string/numword.asp\" target=\"_blank\"]http://codeproject.com/string/numword.asp[/a] Maybe you can look at the source and rework it.... -Meg-
  11. Standard disclaimer: I am *very* new to php.... Please be kind to my stupidity.... So I've made this whole little website thing that usually works pretty well. In order to economize code, I made a small php function that spits out the header based on where you are. One person has reported that sometimes, instead of the page loading like normal, they get the background image and a text "<s" at the top. He sent me the screenshot, and sure enough, that's all that comes up. I imagine the problem is with the .inc header file because the CSS stylesheet brings up the background image OK, but *none* of the header or the code from the page itself gets written. It is an .htaccess protected site if that makes a difference.... The header file is below. [code] <?php   function print_header($location) {         $at_home = "";      $at_schedule = "";      $at_calendar = "";      $at_forum = "";      switch ($location) {         case 'home':            $at_home = "onclick=\"return false;\" style=\"color:#269;text-decoration:none\"";            break;         case 'schedule':            $at_schedule = "onclick=\"return false;\" style=\"color:#269;text-decoration:none\"";            break;         case 'calendar':            $at_calendar = "onclick=\"return false;\" style=\"color:#269;text-decoration:none\"";            break;         case 'forum':            $at_forum = "onclick=\"return false;\" style=\"color:#269;text-decoration:none\"";            break;         default:            break;                }         echo "<!--          -->            <!--  HEADER  -->            <!--          -->\n\n";                 echo "<div id=\"sitetitle\">            <a href=\"../\"><h1>Welcome</h1></a>            </div>\n\n";      echo "<!--                  -->            <!--  NAVIGATION BAR  -->            <!--                  -->\n\n";      echo "<div id=\"menu\">            <a href=\"index.html\" $at_home>home</a>            <a href=\"schedule/\" $at_schedule>schedule</a>            <a href=\"calendar/\" $at_calendar>calendar</a>            <a href=\"phpBB2/login.auto.php\" $at_forum>forum</a>            </div>\n\n";   } ?> [/code] Thanks for any help...
×
×
  • 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.