Reseller Domain Murah dan termurah di Indonesia? ya di ResellerCamp.
         
 

Forum PHP Indonesia

 
Advanced Search
   
 
Home Register FAQ Memberlist Usergroups  
 
 

Forum PHP Indonesia Forum Index MySQL Help help!! membuat code unik
Display posts from previous:   
      All times are GMT + 7 Hours  

help!! membuat code unik

Post new topic  Reply to topic

Tue Sep 07, 2010 14:05
Author Message
endaix
Anak Baru
Anak Baru


Joined: 07 Sep 2010
Posts: 3

Post subject: help!! membuat code unik Reply with quote

============ case closed ============
akhirnya saya temukan jawabannya.... (maklum newbi)
Code:
<?php $result     mysql_query("SELECT max(id_research) FROM research ");  
    while(
$row mysql_fetch_array($result)){
    
$max    $row['max(id_research)'];    
    
$nm_id    sprintf("%04s",$max+1); 
    echo 
"$nm_id";
    } 
    
$thn_in date("Y");
    
    echo 
"
         <table>
         <input class='inputboxlong' name='code_unik' type='hidden' value='SF-$thn_in-$nm_id'>
         <tr><td>Date of Submission</td> <td><input class='inputboxlong' name='tgl_sub' type='text' id='datepicker'></td></tr>
         <tr><td>Project Title</td>         <td><input class='inputboxlong' name='project_title'></td></tr>
         <tr><td>Research Title</td>     <td><input class='inputboxlong' name='research_title'></td></tr>
         <tr valign=top><td>Scope</td>     <td><input class='radio' type=radio name='scope' value='National Level' checked> National Level<br>
                                          <input class='radio' type=radio name='scope' value='Multi Center, National Level'> Multi Center, National Level<br>
                                         <input class='radio' type=radio name='scope' value='Multi Center, International Level'> Multi Center, International Level
         </td></tr>
         <tr valign=top><td>Organized By</td>    <td><input class='radio' type=radio name='organized' value='SEAMEO' checked> SEAMEO<br>
                                                <input class='radio' type=radio name='organized' value='Non-SEAMEO'> Non-SEAMEO
         </td></tr>
         </table>"
?>


Last edited by endaix on Fri Sep 17, 2010 12:07; edited 2 times in total
 
View user's profile Send private message
      Back To Top  

Wed Sep 15, 2010 05:47
Author Message
endaix
Anak Baru
Anak Baru


Joined: 07 Sep 2010
Posts: 3

Post subject: Reply with quote

Minal Aidzin Wal Faidzin para sesepuh-sesepuh semuanya....

belum ada yang respon ya... mungkin masih pada mudik kali ya...
 
View user's profile Send private message
      Back To Top  

Mon Sep 20, 2010 03:02
Author Message
gambasvb
PHP Programmer
PHP Programmer


Joined: 15 Apr 2008
Posts: 63
Location: Cimahi

Post subject: Reply with quote

selamat2...
_________________
http://www.gambasvb.blogspot.com
http://www.eiostudio.com
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  
Post new topic  Reply to topic

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


      Back To Top  

Page 1 of 1
Jump to:  
Powered by phpBB © 2001, 2002 phpBB Group
Toko Kaos Couple | Avalanche style by What Is Real © 2004 | Toko Baju Butik Online | Cara Pedia | Busana Baju Muslim