Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: manicleek
  • Order by date
  1. manicleek

    converting dates

    yeah, ok, how do i DO THAT THEN? :)
  2. manicleek

    converting dates

    the date is being entered into a form though, in the format dd-mm-yyyy
  3. manicleek

    converting dates

    if I use $date = "25-12-2005"; $stamp = strtotime($date); it makes a timestamp of 1937689200 which is 28-05-2031
  4. manicleek

    converting dates

    how can I change a date in the format 25-12-2005 into a timestamp and vice versa?
  5. manicleek

    Lists from DB

    I got the solution in another post http://www.tek-tips.com/viewthread.cfm?qid=1118962&page=1
  6. manicleek

    help with eval()

    Never mind, have found it <? $linkarray = explode("\n", $editRS['internallinks']); ?> <select name="internal[]" size="15" multiple="multiple" id="internal[]"> <? while ($internalRS = mysql_fetch_array($internalresults)) { ?> <option value="<?= $internalRS['articleid'] ?>" <? if...
  7. manicleek

    help with eval()

    It would be to check all the elements in a mysql text field. e.g. the id's would be in the field as 123456 654321 135791 etc There could be no numbers in the field, or there could be a hundred. I need the code to search through each of these numbers and if any of the articles printed in the...
  8. manicleek

    help with eval()

    I have a page that is taking values, seperated by a new line, in a database. The values are id numbers for other articles in the db. I have written code to take all the values in the db field and place them in an array. The page has a list menu populated with every single article in the db...
  9. manicleek

    Lists from DB

    I have a page to edit an article in a db. When the article is initially added there is a multiple selection list box with records listed. The user can select a number of records which is then submitted to the db with each record selected on a new line in a mediumtext field. On the edit page I...
  10. manicleek

    putting multiple functions together

    thanks for that, think we were posting at the same time, never saw that example
  11. manicleek

    putting multiple functions together

    so: function textformat($sometext) { striptags($sometext); ucfirst($sometext); nl2br($sometext); } is that correct?
  12. manicleek

    putting multiple functions together

    how can I put multiple functions into one parent function, for example, if on my out put I normaly have: <?= nl2br(ucfirst(striptags($sometext))) ?> how can I define all those at the beginning of the page so I would only have to put something like: <? textformat($sometext) ?>
  13. manicleek

    Shopping

    Can anyone give me some links to good tutorials for making shopping carts using PHP. Including such things as linking it to credit card payments and/or third party credit card processing companies etc..
  14. manicleek

    css footer

    I have a site that uses css for layout I have the following css for a footer #footer { position: absolute; width:650px; bottom:0; margin-bottom:0px; height:35px; text-align:center; background-color:#FFFFFF; vertical-align:bottom; } it works fine in ie and always stays at the bottom of...
  15. manicleek

    content expiration

    Is there any PHP code that will make internet explorer (and any other browser) always reload the page rather than use a cached version?
  16. manicleek

    change date

    great, thanks :)
  17. manicleek

    change date

    currently theres a date field, its set as a varchar and contains the date stamp '484095600' which should be '02/05/1985' the date is entered into the db using the code $day = $_POST['day']; $month = $_POST['month']; $year = $_POST['year']; $date = strtotime($year."-".$month."-".$day); then...
  18. manicleek

    change date

    sure <?= date("d/m/Y",strtotime($rs["date"])) ?> I even tried entering todays timestamp in the db and got the same error
  19. manicleek

    change date

    OK I've got something putting a timestamp in my db but now on output I get Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in C:\sites\blog\test.php on line 24 even though the year I put in was 1985!
  20. manicleek

    change date

    can anyone tell me how I can take a date entered into a form as dd/mm/yyyy (in 1 text field with the slashes) and change it into yyyymmdd for mysql and also how to change back again thanks

Part and Inventory Search

Back
Top