Jump to content

rastlin

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

rastlin's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Could you include me in those emails as well? I would be interested in this as well.. Stephen
  2. Ya should look something like this <form action="form.php" method="post"> <select id="item" name="item"> <option value='pain'>Paint</option> <option value='brushes'>Brushes</option> <option value='erasers'>Erasers</option> </select> That about all the missing I think your textarea has a name set to it so it's ok Cheers! Stephen
  3. Ok but would that still add it the the array with the values that are in it? $sess_three[] = $check_array[$i]; I always thought you had to add the . to keep the current content of the array while adding the new value on the end, if I'm wrong please let me know.... many thanks Stephen
  4. This has more to do with syntax then anything so I'm hoping it is not in the wrong spot. This is my code, I think I'm thinking is right but doing it the hard way.... if (in_array($check_array[$i],$sess_three)) { //The value is in the array }else{ //Value is not in array so add it and store array into session //something in array add it to the session array $sess_three[] .= $check_array[$i]; }//End of If in-array test Ok I was wondering if I could change that to this and have the same result if (!in_array($check_array[$i],$sess_three)) { //something in array add it to the session array $sess_three[] .= $check_array[$i]; }//End of If in-array test Hope I'm not bothering ya'll to much, hope to hear from you soon and many thanks Stephen
  5. This is likely simple but I was wondering what the display of date_format() look like when/if it used like this. date_format(db_date,'%m %d') = '$monthDay' say if date in the DB was 2006-02-26 would the date_format() above look like 02-26? So if $monthDay equaled 02-26 they would match.... SQL query looks like this $query = "SELECT * FROM table_name WHERE date_format(db_date,'%m %d') = '$monthDay'"; Thanks for your help! Stephen
×
×
  • 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.