Having problem with change of name in the datagrid Coding

I am having problem with changing the name of the datagrid header text name for one of the data either in the flash file or the php file.
The thing is i want to change the Course_Name to Course Name that has no underscore so that it will look nicer in the datagrid but if I change it in the php file like SELECT Course_Name as 'Course Name' ....., it will not turn out in the datagrid when I CTRL ENTER the flash file but the others like Price,description and display is shown.
There is no problem with my php code but I do not know how to change the Course_Name into Course Name so please help me resolve this error that I am having.
This is my flash code
  function goCourse(e : MouseEvent):void
  gotoAndStop(5);
  refreshResponder = new Responder (refreshSuccess, onFault);
  connection = new NetConnection ();
  connection.connect (gateway);
  dataDG.addEventListener (Event.CHANGE, gridItemSelected);
  refreshData (true);
  function gridItemSelected (e: Event): void {
  ID = e.target.selectedItem.ID;
  courseTxt.text = e.target.selectedItem.Course_Name;
  priceTxt.text = e.target.selectedItem.Price;
  descTxt.text = e.target.selectedItem.Description;
  private function getParams () {
  var param: Object = new Object ();
  param.ID = ID;
  param.Course_Name = courseTxt.text;
  param.Price = priceTxt.text;
  param.Description = descTxt.text;
  return param;
  private function refreshData (refresh: Boolean): void {
  if (refresh)
  connection.call ("Course.viewCourse", refreshResponder);
  private function refreshSuccess (result: Object): void {
  dataDG.dataProvider = RecordSetDP.toDataProvider (result);
     dataDG.columns = ["Course_Name","Price","Description","Display"];
  private function onFault (fault: Object): void {
  trace (String (fault.description));
This is my php file code.
  function viewCourse()
  $this->connect();
  $sql = "SELECT Course_Name,Price,Description,Display
  FROM coursetb";
  return mysql_query($sql,$this->_connection);

i don't see where you're calling your php file in your code, but change 'Course Name' to 'Course_Name' (or vice-versa) there.

Similar Messages

  • I am having problem with me Iphone4, looks like the mic of my phone is not working. no one can hear me if I make a call to them

    Can any one please help me I am having problem with me Iphone4, looks like the mic of my phone is not working. no one can hear me if I make a call to them. I have tried all restoring options but no use. please help me

    The mic on my iPhone4 has just quit also. Similar symptoms to yours in that people I'm talking to hear only static or my voice very faintly. The voice/memo recorder also only really records static.
    It happened suddenly and seemed to get better after a day or two but then went completely after another day.
    I'm returning it to Vodafone New Zealand shortly but will have to wait 5-10 days for a replacement. There are NO Apple accredited means to speed this procedure up in NZ.
    We don't even have a single physical Apple Store where you could walk in and talk to a Genius.

  • I have been having problems with my speaker. After the recent update I am unable to listen to movies or music using my speaker. The volume bar is completely missing. If I plug a headset into the port, the volume bar reappears.

    I have been having problems with my speaker. After the recent update I am unable to listen to movies, music or apps using my speaker. The volume bar is completely missing. If I plug a headset into the port, the volume bar reappears and then disappears after the headset is removed. This is quite annoying. My child's Apps that he likes to play will not even make a sound. HELP!!!

    Do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears, ignore the Slide to Power Off that appears)
    Note: You will not lose any data.

  • I'm having problems with videos, they shake and the images break up back and forth into striped colors, how do I fix this?

    I'm having problems with videos, they shake and the images break up back and forth into striped colors, how do I fix this?

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • I am having problems with my macbook pro and the dock.  About every fourth time I start the computer, the dock flashes on and off, then goes completely off and all I get is the spinning ball with brief moments of the cursor.  But the computer locks up.

    I am having problems with my macbook pro and the dock.  About every fourth time I start the computer, the dock flashes on and off, then goes completely off and all I get is the spinning ball with brief moments of the cursor.  But the computer locks up.

    Do you have Parallels installed by any chance?  There is a known problem that causes symptoms similar to this.  You do not need to actually be running Parallels at the time and nothing in ActivityMonitor would point to Parallels.  An update corrects the problem:
    http://kb.parallels.com/111541

  • Is anyone else having problems with there phone freezing after the 8.0 update?

    iis anyone else having problems with there phone freezing after the 8.0 update??

    Hello Chefboyharley,
    Thanks for the question. After reviewing your post, it sounds like the phone is unresponsive. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
    iOS: Not responding or does not turn on
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • 10.5.3 problem with changing computer name

    Having an issue with computer naming after 10.5.3. Here is the issue:
    New Leopard install, fresh
    Installed all updates, including the 10.5.3 update
    Change the computer name in System Preferences\Sharing
    The new name is reflected in Computer Name field
    The new name is also reflected as the Local Hostname under Edit
    Rebooted the machine
    Look at System Preferences\Sharing\Service and none of the services reflect the new computer name\local hostname, the old computer name is listed for each service
    Click on the Edit button and deleted the Local Hostname, left it blank and clicked OK
    Now the new Local Hostname is listed for each service
    Open a Terminal window and the old computer name is listed at the prompt
    Reboot the machine
    Open a Terminal window and the old computer name is listed at the prompt
    Not being a Unix guru, I assume there may be a way to modify the computer name some other way than through the GUI. I sure hope so cause the new patch that was supposed to fix an issue with computer names appears to have created a new bug.

    I'm posted an image of Aperture corruption, fresh this morning:
    http://lemon.soju.co.uk/2008/06/05/would-you-trust-your-photos-to-an-application -that-does-this/
    - New iMac 3.06GHz Dual Core, 4GB Memory, NVidia 512MB (received Sunday 1st June 2008)
    - 10.5.2 upgraded to 10.5.3, then Aperture 2.1 trial installed
    - First import of 40GB of photos, left to run overnight
    - When trying to use this morning, Aperture screens were corrupt and it refused to shut down. I had to power off then boot back into Mac OS X. When I restarted Aperture it worked, but it still seemed to have problems taking over the machine - eg, I wasn't able to send mail from Gmail within VMWare Fusion until I closed down Aperture. I never have problems with VMWare Fusion.

  • Problem with changes and visualization in the forms

    I have a problem with forms, the problem is the next, I do a modification in the database with a update or with form and in other station no visualized the change. The other station need close the form and open for visualize the modification.
    Why I have this problem

    I am not sure what you mean. Are you saying that after one form changes and commits data, it is not visible on the other user's screen?
    If that is the problem, unfortunately, that is the way Forms works. A form must re-query the data to see changes on the database. If your form must close and re-open, then you should create a trigger in your form to re-query the same data.
    I hope this helps.

  • Having problem with "artwork size & resolution exceeds the max that can be rasterized"

    Hi all,
    Ok, I created a 162.7" x 90.6" document (artboard) for an exhibition display I'm designing. The document was created using all the defaults - i think this is where i went wrong. Illustrator is now telling me that "the combination of artwork size and resolution exceeds the maximum that can be rasterized" after i open the document and when i try to add a drop shadow to anything.
    Other than some vector graphics i created in illustrator, I only have 3 180ppi and 4 300ppi photos tranfered right off the photograpers camera.
    I selected :
    1. "Print Document" from the initial splash window.
    2. I entered the artboard size, bleed and left the "Raster Effects" setting to "High (300ppi)"
    I think leaving the Raster Effects setting at 300ppi is where the problem is.
    Do i have to create a new document or can i fix the existing one?

    nados you are a little confused that's all I think things are ll right and you are probably set to go with out going to Photoshop.
    1. Your file is probably fine as is
    2. Make certain you images are linked and not embedded
    3. Your Images are probably ok as far as they are for the the specs required do not lower the resolution just make certain they are linked.
    You may have to reimport them and in the place dialog make certain link is checked.
    4. The Raster Image Effects setting is fine leave it as is.
    5. The jpegs are fine lee your images as is if that was what was supplied to you and they look clean.
    6. When saving the file save as .AI format and in the AI save as option dialog uncheck include linked files
    (you will send them the jpegs as well as the AI file.)
    7. Send the images in what ever format they are now since that is jpeg leave it be just make certain the dimensions are the same as is being used in the document at 100%.
    8 Make Certain you select the text and got Type> Create Outlines before saving the file.
    9 Do not export the file to any other format.
    10 Send the printer production house the AI file and the Jpegs you will be fine.
    You should not have a problem with this file.

  • Having problems with one computer not "seeing" the Airport base station.

    Aloha:
    I have an Airport router hooked up to the internet via Cable. I have a laptop and G4 desktop talking to the the Airport Base Station via their respective Airport cards. This allows me to get to the internet with both of my computers. This system has worked just fine for several years, but recently my desktop computer has started to be unable to connect to my Airport Base Station. At first it was intermittent, but now it has stopped completely. The laptop continues to be able to get to the internet via my Airport base station.
    The desktop is running OS 10.3.9 and the airport card in the desktop passes the hardware test that came with the laptop. But it can no longer see the signal from the ABS.
    What might my problem be?
    Dan

    Hi Clinton:
    I have tried that to no avail. I don't see any
    signal, so I see no networks "in the box below" to
    choose. My airport card does not see a signal, but
    the airport card checks out ok in the hardware test.
    Thanks for replying, Clinton, much appreciated.
    Dan
    Have you tried choosing "other..." and then entering the name of your network?

  • Anyone having problems with 4s after upgrading to the 5.0.1 Software

    My iphone 4s was working perfectly fine before i upgraded to the 5.0.1 software. Now i cant make calls or receive. Everytime i try to make a call its say " Call fails" and then its searches to connect to the network. I have tried restoring it 3 time to the factory settings in itunes but it still has the same problems. It has to be something with the 5.0.1 software as my phone worked perfectly fine before.  Is there anyway to go back to the 5.0.1 software?

    I found this workaround and it worked for me. 
    "According to Hontz, the issue seems to be affecting only iPhone 4S users. Hontz has provided the following workaround to fix the issue:
    1) Open the Phone and dial *228. This is a Verizon over-the-air programming number. 2) When the system answer press 1 for “Program or activate your phone” 3) Wait for the call to disconnect. You should get a prompt stating something like, “Settings updated.” 4) Open the Task Manager (double click the home button) and kill the Phone, Message, and Contacts Applications 5) Wait a few minutes (I waited 3 just to be extra safe) 6) Open the Message App to verify the fix.
    If you are still broken, kill the Message App again, then reboot your phone.
    Did iOS 5.0.1 also mess up your iPhone Contacts? Let us know if the workaround helped."
    via: TSF

  • Problems with changing my address from the UK to Australia

    I bought my ipod in Australia only last month and now one of my ear phones isnt working. Im currently here on holiday until January. I recently registered under my home address in the UK. Ive tried changing the address to Oz so I can get my ipod fixed but it wont let me?? Is there amy way I can go about getting it fixed without changing my contact details??

    Some Change/Verify Account links https://forums.adobe.com/thread/1465499 that may help
    -Credit card https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting -creative-cloud.html
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
    -email address https://forums.adobe.com/thread/1446019
    -http://helpx.adobe.com/x-productkb/global/didn-t-receive-expected-email.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html

  • HT6114 Is anyone else having problems with connecting to projectors on the OS X and windows partitions after this update?

    I am using the thunderbolt port with an adapter for hdmi connecting to a 42" RCA tv from my mid 2012 MacBook Pro 15". I have confirmed that the adapter and the hdmi cable are perfectly fine. I can only connect to a projector on the OS X 10.92 if I keep the displays separate.  As soon as I try to use the mirror feature I lose the visual feed. Sound will still go through however.
    On my Windows 7 partition the OS can't even detect it is connected to an external display.

    Hi there Chinsteig,
    You may find the troubleshooting steps in the article below helpful.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    -Griff W. 

  • I am having problems with changing my album cover i know how but it wont work for this one album

    Here is a pic of what it looks like on itunes when i try to change it.
    [IMG]http://i61.tinypic.com/90yems.png[/IMG]

    List of authorized computers - https://discussions.apple.com/thread/4090165 - there isn't one.
    About deauthorizing specific computers - https://discussions.apple.com/thread/3809988 - Only, if you have physical access to the computer or are running VNC, otherwise you have to deauthorize all computers (see another post for details). De-authorize all computers button may not appear until you actually have 5 authorized and you can only do this once a year.

  • I'm having problems with my email name.  It keeps coming up as Holidays in United States.  How can I fix this?

    Today all my emails started coming and going out as Holidays in United States.  I can't seem to be able to fix this.  Anybody experiencing this?  How do we fix it?

    Hi Guys ,
    I had the same issue , as some one suggested please check in your contact under your name .
    If your name in contact list does not have email address it will come as 'Holidays in United states' (Which is so frustrating as I am working , LOL), you need to add your email address in your contact name and then it will go.
    I have done that and it worked for me , best of luck

Maybe you are looking for

  • Radix sort algorithm

    You guys, I need a radix sort algorithm for java. I've worked on it for a while, and I cant get it. I have this so far: public void radixSort(int maxDigits)           Vector temp = new Vector();           int count = 1;           while(count<(Math.po

  • Joining Two Internal Tables - ( Urgent )

    Could anybody please give me the whole code for joining two internal tables and putting the data in a third internal table. Please, very urgent.                                                                                 Regards,                 

  • Photo sizing

    I'm trying to make a photo book but although I see the size slider, I can't make the photo small enough to fit the space

  • User access log

    Hi, Anybody has any idea how to extract the user access history in SAP? It's to be served as the audit log for security purpose. regards, sianghing

  • 2 infopackages for  same infosource in Delta

    Hi, I have to load data in 2 infopackages with initialisation update under same Infosource. Whether it is possible to do delta loading in 2 infopackages which is under same info source?