Jump to content

bbaker

Members
  • Posts

    127
  • Joined

  • Last visited

About bbaker

  • Birthday 05/30/1973

Contact Methods

  • Website URL
    http://exit20.com

Profile Information

  • Gender
    Male
  • Location
    NY

bbaker's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. agreeing with Pikachu on this one.
  2. are you just trying to automatically get urls formatted?
  3. like blmg911 said.....these are CSS questions with the shark expanding below the thumbnails.....for "pika_subdiv" set a height & add overflow: hidden; in the CSS. play with the CSS values. I went to your sight & modified it locally using Firebug & changing the widths in the CSS seem to work just fine.
  4. http://us.php.net/manual/en/function.mail.php
  5. bbaker

    php help

    $username = $_POST['nickname']; echo $username;
  6. just make it $MAIL_to2 = $_POST['bookers_email'];
  7. instead of taking care of the duplicates in the query....let PHP do the work for you. Put all the university info in 1 array, then use array_unique(), to remove the duplicates $result = mysql_query("SELECT university_1, university_2, university_3 FROM stores WHERE status = 1 AND approved = 1"); while($row = mysql_fetch_array($result)) { $u[] = stripslashes($row['university_1']); // ALL IN $u[] = stripslashes($row['university_2']); // ONE $u[] = stripslashes($row['university_3']); // ARRAY $u } $newU = array_unique($u); // remove duplicates from array foreach($newU as $opts){ print '<option>'.$opts.'</option>'; }
  8. be sure to trim() your data before it gets saved into the db
  9. you code is forcing a download....to display an image, just use an img tag....no need to us readfile at all
  10. looks like you just have your syntax incorrect....try this: if ($existcat !== 'None'){ $queryreg = mysql_query("INSERT INTO articles (article_cat) VALUES ('$existcat')"); }else{ if ($existcat == 'None'){ $queryreg = mysql_query("INSERT INTO articles (article_cat) VALUES ('$newcat')"); } }
  11. <?php $sql = "SELECT DISTINCT(article_section) FROM tablename"; $query = mysql_query($sql); if(mysql_num_rows($query) > 0){?> <select name="categories"> <?php while($r = mysql_fetch_array($query)){ echo '<option value=" ' .$r['article_section'] . '">' . $r['article_section'] . '</option>'; } ?> </select> <?php } ?>
  12. Why are you sending it via url (get)? You can/should use post method. Using get can cause issues with the url being too long & is likely the issue with line breaks.
  13. problem is that he doesn't have control over the naming scheme, so I was trying to help out with what he has to work with....that's why I suggested urlencode "Management System Documentation/Shipping & Receiving/Receiving" is what I meant needs to have urlencode. So where ever that is coming from in the first place, needs to be sent through the urlencode function. So the URL would actually look like: index.php?page=Management+System+Documentation%2FShipping+%26+Receiving%2FReceiving
  14. oh....wait.... where is the page=Management System Documentation/Shipping & Receiving/Receiving coming from. THAT is what needs the urlencode on it.
×
×
  • 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.