User Profile

Collapse

Profile Sidebar

Collapse
dzuse
dzuse
Last Activity: Apr 9 '07, 09:26 PM
Joined: Apr 9 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • you can add wxtract function in the end ;)

    $query = "SELECT * FROM hcffres WHERE residentid = $var";

    $result = mysql_query($qu ery);

    $row = mysql_fetch_arr ay( $result );
    extract($row;
    echo 'other stuffs';

    echo '<input type="text" name="name_goes _here" value="$column_ name_here"/>';...
    See more | Go to post

    Leave a comment:


  • dzuse
    replied to php string to date conversion?
    in PHP
    I have one way how to do it, its long but for me it works ;)
    i hope it will work for u!
    input is 2007-04-09 and output is 09-April-2007
    php code is [php]<?php
    $date = "2007-04-09";
    $explodedate = explode("-", $date);
    $year = $explodedate[0];
    $month = $explodedate[1];
    $day = $explodedate[2];
    if ($month == 01) { $month1 = 'Jan'; }
    if ($month == 02) { $month1...
    See more | Go to post
    Last edited by ronverdonk; Feb 28 '08, 01:36 PM. Reason: code within tags

    Leave a comment:

No activity results to display
Show More
Working...