Jump to content

dgiberson

Members
  • Posts

    87
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dgiberson's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. on the one page have your checkboxes all named the same ie. do while (whatever) { echo "<input type=check value=$var name=\"chkActivity[]\">"; } now on your request page put in: $activities = $_POST['chkActivity'] all the selected boxes will return their values in an array.
  2. i have to echo chronister's comments, using unixtimestamps to do the work makes it much much easier to work with dates and times
  3. use $print_date = strftime('%Y-%m-%d', $today)
  4. the way i did this was using an unixtimstamp and then adding to it... $today = time(); // 1209600 = # of seconds in a two week period $twoweeks_date = $today + 1209600; this will give you the date range you need, there are other ways to do this.... and it all depends on how you want to display your calendar, but at least this way you have your start & ending points btw, you will see posts that this method doesn't totally account for daylight savings, blah blah blah... which is true. however most of the time this will be sufficient.
  5. you need to check the MIME type or $_FILES['type'] variable, create an array to hold the allowed types and then you can compare the upload against the array. there are additional checks you can perform, but this is the most basic. Here is a basic tutorial i found: http://php.about.com/od/advancedphp/ss/php_file_upload_2.htm Here is a link for MIME types: http://www.ltsw.se/knbase/internet/mime.htp
  6. echo "<table><tr><td>Angle</td><td>Sin(x)</td></tr>"; for ($i=0;$i<=360;$i++) { $d = deg2rad($i); $sin = sin($d); echo "<tr><td>$i</td><td>$sin</td></tr>"; } echo "</table>";
  7. hahaha, nice one jesirose.... was thinking that myself
  8. [quote]my table is called krankdcontacts and by saying select * from krankd contacts it should search for all fields with anything in it right??[/quote] This statement will return all rows where the name field is like the $name variable provided. It will not search all of the columns in the table for this variable.
  9. This should do it: [code] if ((!isset($_POST['name'])) && (!isset($_POST['target'])) && (!isset($_POST['Acutal']))) { // do something here } [/code]
  10. Question 1: make sure you have quotes around your data & that info is right for the column you are inserting. Question 2: looks like you are missing a space between the table name and the table definition.
  11. omg whats up with the varchars..... datatypes man! datatypes!
  12. try putting in an echo $query; then paste the line into phpMyAdmin or Query Browser, it will give you more information as to what is wrong vs. what php gives you..... PS did you misspell field on purpose or by accident? that could be your issue
  13. your problem is you are concatenating the variable not making an addition. $usrid = 0; This: $usrid = $usrid + "1"; Should be: $usrid = $usrid + 1; or $usrid++; Same thing goes for the cars.....
  14. is this in the same browser window or a new window?
  15. You'll need to find the page where $HTTP_COOKIE_VARS["admin_log"] is actually set from the login script.
×
×
  • 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.