User Profile

Collapse

Profile Sidebar

Collapse
jsungmin
jsungmin
Last Activity: Mar 18 '13, 10:41 AM
Joined: Jan 16 '13
Location: Perodua Company
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jsungmin
    started a topic How can I insert into db in uppercase

    How can I insert into db in uppercase

    hey there.
    really need ur help.. my problem is I want to insert all value into db in uppercase

    this is my code..
    Code:
    <cfquery name="insrt_srvy" datasource="#ds#">
    INSERT INTO SURVEY_HEADER (REF_NO)
    VALUES(<cfqueryparam cfsqltype="cf_sql_varchar" value="#ref_no#">)
    </cfquery>
    before this I put the uppercase around...
    See more | Go to post

  • List out data from database if data status not equal to yes with joint table

    hello guys. I have a problem to retrieve data from database. I have 3 tables
    -first table is outlet_master which store veh_reg_no
    -second table vehicle store veh_reg_no
    -Third table is survey_customer _header which store reg_no and status.

    here I want to list out the registration no when veh_reg_no(outl et_master) = veh_reg_no(vehi cle)
    and
    veh_reg_no(outl et_master) != reg_no(survey_c ustomer_header)...
    See more | Go to post

  • This is textbox for insert reference no..
    Code:
    <form name="survey_form" method="post">
    <table>
    <tr>
      <td>Reference No. </td>
      <td><input name="ref_no" type="text" value="#ref_no#">
      </td>
    </tr>
    <tr>
    <td>
    <input type="button" name="Save"
    ...
    See more | Go to post

    Leave a comment:


  • read value from database & alert if it is available in database or not.

    I want to create a javascript which check reference no from database
    eg: first user insert reference no in textbox, mouse.
    and the second user insert reference no also in textbox, mouse.
    so here I want to create an alert which display the popup to the second user that reference no "mouse" is already taken.

    really need ur help
    thanks :)
    See more | Go to post

  • jsungmin
    started a topic Display Alert when text field is null

    Display Alert when text field is null

    hye all..
    I want to create a javascript function which display an alert(""); if all value of the text field is null.
    any idea?
    :)

    sungmin .
    See more | Go to post

  • jsungmin
    replied to Passing Value After Looping
    what I want to do is, I just want to get the value of average for each question from looping. My chart does not use looping, i means code for chart outside from looping. So now, how can I pass the value of average that inside of looping to the value of chart that outside of the looping?
    any idea? :)
    See more | Go to post

    Leave a comment:


  • jsungmin
    started a topic Passing Value After Looping

    Passing Value After Looping

    Hye all..
    In my html, it display the value of average for each question in table. So the problem is the value of average for each question is in the looping function. So how can I pass the value of average for each question into bar chart which is out of the looping?
    Code:
    <form name="survey_form" method="post" action="#currentfile#">
    <table>
    <cfloop query="GetDetailQuest">
    ...
    See more | Go to post

  • tq for helping me :)
    See more | Go to post

    Leave a comment:


  • i'm sorry, how to use function val() ? can you give an example? I'm really new in coldfusion
    and here the query for GETTOTSCORE3.

    Code:
    <cfquery name="GETTOTSCORE3" datasource="#ds#">
        	select count(s.quest_score) as c
            from survey_customer_score s, survey_customer_header h
            where s.quest_score = 3
            and s.survey_id = 1757        
            and s.quest_id
    ...
    See more | Go to post
    Last edited by acoder; Feb 21 '13, 12:55 AM. Reason: Please use [code] tags when posting code

    Leave a comment:


  • jsungmin
    started a topic the value cannot be converted to a number

    the value cannot be converted to a number

    what can be the problem? Since i tried to write this values like:

    Code:
    <cfset totResponse = #GETTOTSCORE1.a# + #GETTOTSCORE2.b# + #GETTOTSCORE3.c#>
    <cfset avg = #GetSum1.score1# + #GetSum2.score2# + #GetSum3.score3#>
    <cfset totAVG = avg / #totResponse#>
    first calculation to calculate total response and I got error in value #GETTOTSCORE3.c #
    In my oracle the value for #GETTOTSCORE3.c #...
    See more | Go to post
    Last edited by acoder; Feb 20 '13, 02:31 PM. Reason: Please use [code] tags when posting code

  • jsungmin
    started a topic Error in display output from cfquery

    Error in display output from cfquery

    I have query which count all data in table and I try to display the output of count but I got an error
    here the code

    Code:
    <cfquery name="countDATA" datasource="#ds#">
        select count(quest_id)
        from survey_question
    </cfquery>
                    
     <cfset t = #countDATA#>
         #t#
    Error is
    - Complex object types cannot be converted to simple...
    See more | Go to post
    Last edited by acoder; Jan 22 '13, 01:47 AM. Reason: Please use [code] tags when posting code

  • Looping Statement: Attribute validation error for CFLOOP

    hye. I have a little problem about loopping statement.
    This is the code..
    Code:
    <cfloop query="getQuest">
       <cfset count=0>
          <cfquery name="chechking" datasource="#ds#">
    	select status_flag
    	from survey_question
    	where status_flag = 'N'
          </cfquery>
            count = count+1;
    </cfloop>
    then I create another...
    See more | Go to post
    Last edited by Meetee; Jan 18 '13, 04:50 AM. Reason: Use code tags around code <code/>

  • set column with a string into null in coldfusion

    I have a table which display quest_id,quest_ no, quest_malay, quest_eng and delete. After I click button delete I want to set my table row quest_malay and quest_eng into null.
    this is my coding
    Code:
    UPDATE SURVEY_QUESTION 
    SET quest_malay = <cfqueryparam cfsqltype="cf_sql_varchar" value="">,
        quest_eng = <cfqueryparam cfsqltype="cf_sql_varchar" value="">
        WHERE QUEST_ID
    ...
    See more | Go to post
    Last edited by Rabbit; Jan 16 '13, 05:17 AM. Reason: Please use code tags when posting code.
No activity results to display
Show More
Working...