Oledb working in one place but not in another

I have two examples accessing the same table in my oracle database. Whereas code in example 2 always working , code in example 1 worked initially but after that failing with the following error.
Please help me as to why I get table or view does not exist error in one case but working fine in other case when I use the same table in both examples?
This post is organized as
A) the error
B) Code which contributed the error (please note this code worked initially , later started to fail without any modification at all).
C) Code which is working fine also using the oledb provider and using the same table in the database.
A) the error
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: ORA-00942: table or view does not exist
Source Error:
Line 14:      
Line 15:      dim ds as DataSet= new DataSet()
Line 16:      objCmd.Fill(ds, "HR.tblPeople")Line 17:
Line 18:      MyDataList.DataSource=ds.Tables("HR.tblPeople").DefaultView
Error Complete
B) Code which contributed the error 'Table or View Does not exist'
<% @ Import Namespace="System.Data" %>
<% @ Import NameSpace="System.Data.OleDb" %>
<Script language="VB" runat="server">
Sub Page_Load(obj as Object, e as eventargs)
     dim objconn as new OleDBConnection _
     ("Provider=OraOLEDB.Oracle.1;Data Source=bora9i;" & _
     "User ID=Sssss;Password=aaaaa;" & _
"Extended Properties=;Persist Security Info=False;OLEDB.NET=True;")
     dim objcmd as new OledbDataAdapter _
     ("SELECT * FROM HR.tblPeople" _
& "ORDER BY LastName, FirstName",objConn)
     dim ds as DataSet= new DataSet()
     objCmd.Fill(ds, "HR.tblPeople")
     MyDataList.DataSource=ds.Tables("HR.tblPeople").DefaultView
     MyDataList.DataBind()
End Sub
</Script>
<HTML>
<BODY>
<Asp:DataList id="MyDataList" RepeatColumns="2"
     RepeatDirection="Vertical" runat="Server">
     <ItemTemplate>
          <div - style="padding:15,15,15,15;font-size:10pt;
          font-family:Verdana">
          <div - style="font:12pt Verdana;color:darked">
          <i><b><%# DataBinder.Eval(Container.DataItem,"FirstName")%> 
          <%# DataBinder.Eval(Container.DataItem,"LastName")%></i></b>.
          </div>
          <br>
          <b>Address: </b><%# DataBinder.Eval(Container.DataItem,"Address")%><br>
          <b>CompanyName: </b><%# DataBinder.Eval(Container.DataItem,"CompanyName")%><br>
          <b>Email: </b><%# DataBinder.Eval(Container.DataItem,"Email")%><br>
          <b>Webpage: </b><%# DataBinder.Eval(Container.DataItem,"WebPage")%><br>
          <b>HomePhone: </b><%# DataBinder.Eval(Container.DataItem,"HomePhone")%><br>
          </div>
     </ItemTemplate>
</Asp:DataList>
</BODY>
</HTML>
C) Code which is working fine also using OleDb provider and using the same table
<% @ Page Language="VB" Debug="True" %>
<% @ Import Namespace="System" %>
<% @ Import Namespace="System.Data" %>
<% @ Import Namespace="System.Data.OleDb" %>
<html>
<head>
<title>Contact Manager: View All Contacts</title>
</head>
<body bgcolor="#FFFFFF">
<h1>View All Contacts</h1>
<table cellpadding="4" cellspacing="0" width="100%">
<tr>
<th>Name</th>
<th>Title</th>
<th>Company Name</th>
<th>Work Phone</th>
</tr>
<asp:label id="lblOutput" runat="server"></asp:Label>
</table>
</body>
</html>
<script runat="SERVER">
Sub Page_Load(Src As Object, e As EventArgs)
Dim sqlConn As New OledbConnection
Dim sqlCmd As New OledbCommand
Dim sdrData As OledbDataReader
Dim sb As New StringBuilder
sqlConn.ConnectionString = _
"Provider=OraOLEDB.Oracle.1;Data Source=bora9i;" & _
"User ID=Sssss;Password=aaaaa;" & _
"Extended Properties=;Persist Security Info=False;OLEDB.NET=True;"
sqlConn.Open()
sqlCmd.CommandText = "SELECT * FROM HR.tblPeople " _
& "ORDER BY LastName, FirstName"
sqlCmd.CommandType = CommandType.Text
sqlCmd.Connection = sqlConn
sdrData = sqlCmd.ExecuteReader()
While sdrData.Read()
sb.Append("<tr>" + vbCrLf)
sb.AppendFormat(" <td>{0}, {1}</td>" + vbCrLf, _
sdrData("LastName"), _
sdrData("FirstName"))
sb.AppendFormat(" <td>{0}</td>" + vbCrLf, sdrData("Title"))
sb.AppendFormat(" <td>{0}</td>" + vbCrLf, _
sdrData("CompanyName"))
sb.AppendFormat(" <td>{0}</td>" + vbCrLf, sdrData("WorkPhone"))
sb.Append("</tr>" + vbCrLf)
End While
sdrData.Close()
sqlConn.Close()
lblOutput.Text = sb.ToString()
End Sub
</script>

Hi Srikanth,
1. why there is no space between "HR.tblPeople" and "ORDER BY" in your query? I am surprised it works initially.
dim objcmd as new OledbDataAdapter _
("SELECT * FROM HR.tblPeople" _
& "ORDER BY LastName, FirstName",objConn)
2. use
Dim ds As New DataSet()
Sinclair

Similar Messages

  • Airport works in one place but not in another

    My Airport extreme works perfectly at home. Signal is from a cable modem. When I go to our weekend place and try to connect my computer recognizes the Airport and I have four bars but I get no internet. The only difference is the weekend place has satellite connection. Could that be the problem and is there a workaround?

    That's not the problem. I can go anywhere there is a wireless signal and my computer hooks on automatically. It is hooking on at the weekend place but there is no internet service. If I take the ethernet cable out of the airport and plug it into the computer then everything is fine. And when I take the airport home and plug it in everything is fine. It just doesn't make sense.

  • Airplay works for one user but not for another on the same machine

    I have the problem where airplay works for one user but not for another and both users are on the same machine.  For the user where it does not work, everything appears normal, it's just that there is no sound being transmitted.  I have tried restarting the Airport express, restarting iTunes, repairing disk permissions.  Any ideas about what can be done to resolve this?

    my /etc/group:
    root::0:root
    bin::1:root,bin,daemon
    daemon::2:root,bin,daemon
    sys::3:root,bin
    adm::4:root,daemon
    tty::5:
    disk::6:root
    lp::7:daemon
    mem::8:
    kmem::9:
    wheel::10:root,hans,ibm,gast
    ftp::11:
    mail::12:
    uucp:x:14:
    log::19:root
    locate:x:21:
    smmsp::25:
    http::33:
    games::50:
    network:x:90:
    video:x:91:
    audio::92:ibm,gast
    optical::93:hal
    floppy:x:94:hal
    storage:x:95:hal
    scanner:x:96:
    power:x:98:
    nobody::99:
    users::100:gast
    dbus:x:81:
    hans:x:1001:
    vboxusers:x:108:hans
    policykit:x:1002:
    hal:x:82:
    kvm:x:78:
    nx:x:85:nx
    avahi:x:84:
    camera:x:97:
    gdm:x:1003:
    gast:x:1004:

  • HT1937 my cellular data connection works in one location but not in another

    Why does my iPhone's data connection work at other places but not at work?
    It works sometimes.

    Good question to ask your cell phone provider.. Maybe the material the building is made of is blocking the cellular data signal.

  • GarageBand - Controller's Foot Pedal (in AUSampler) works for one track but not for another

    I am learning how to use AUSampler in GarageBand. I am using a MIDI controller (Alesis Q88) with a foot pedal for the sustain.
    The sustain works with the default sound in AUSampler (Sine 440), but not for a sound that I imported. Also, my imported sound plays longer the lower the keys played, and the higher up the keys the faster it plays. Either way, it doesn't allow sustain, but yet the default sound does.
    I know where the Controller / Sustain Pedal area is within the Piano Roll but that doesn't fix my dilemma.
    I presume my problem is related to the viola sound I imported (wav format), or the way I need to set something up; I hope the latter.
    Any clues?
    Many thanks in advance.

    HI Bob,
    You can test your settings by clicking the big "Test My DNS" button at <https://www.dns-oarc.net/oarc/services/dnsentropy>. If you see "Poor" on any of the tests, don't use that domain name server! Remove it from Apple Menu => System Preferences =>Network =>DNS Servers or similar location in your router if you've got a 'home network'. If all you have is "poor" DNS servers in your list, call your ISP and insist that they give you the address of a name server which is protected against the recently exposed DNS cache-poisoning threat.
    Also, open System Preferences/Network. Click the DNS tab. Add these numbers in the DNS Servers box.
    208.67.222.222
    208.67.220.220
    See if that helps.
    Carolyn

  • Constructor works in one place but not another

    This is a program related to the game medal of honor. The constructor:
    Rcon status = new Rcon("say test", "superman3","213.221.175.132", "29961");
    Works from the main class, but where it's positioned in the class below, it doesn't - I'd love to know why!
    import java.util.StringTokenizer;
    import java.util.Vector;
    import java.util.HashMap;
    public class Token     {
         String test;
    public Token(String a)     {
              String toke = a;
              String s3 = "";
              HashMap hash = new HashMap();
              StringTokenizer tokenizer = new StringTokenizer(toke, "\n");
              while(tokenizer.hasMoreTokens())     {
                             String newString = tokenizer.nextToken();
                             if(newString.startsWith("map:") || newString.startsWith("num") || newString.startsWith("---") || newString.startsWith("print", 5)) {
                                  } else     {                         
                             String s1 = newString;
              String num = s1.substring(0,4).trim();
              String score = s1.substring(4,9).trim();
              String ping = s1.substring(9,15).trim();
              String name = s1.substring(15,31).trim();
              String lastmsg = s1.substring(31,39).trim();
              String address = s1.substring(39,61).trim();
              String portno = "";
              String qport = s1.substring(61,67).trim();
              String rate = s1.substring(67,72).trim();
              try     {
              test = s1.substring(72,73).trim();
                        if(test != null)     {
                   System.out.println(name + " your name is too long.\nPlease abbreviate it to less than 15 characters.");
                   Rcon status = new Rcon("say test", "superman3","213.221.175.132", "29961");
                   status.start();
         }     catch (StringIndexOutOfBoundsException e)     {
              if(test == null)     {
              Vector vector = new Vector();
              StringTokenizer tokens = new StringTokenizer(address,":");
              if(tokens.hasMoreTokens())     {
              address = tokens.nextToken();
              if(tokens.hasMoreTokens())     {
                   portno = tokens.nextToken();
              vector.add(num);
              vector.add(score);
              vector.add(ping);
              vector.add(name);
              vector.add(lastmsg);
              vector.add(address);
              vector.add(portno);
              vector.add(qport);
              vector.add(rate);
              hash.put(address,vector);
              System.out.println(hash);

    Thanks for the reply.
    It doesn't produce an error (probably due to my poor coding!) It's part of one thread and the other one works fine, so the program doesn't exit or anything. There's no GUI at present, it just lets the other thread carry on and this one just stops when it gets to the constructor.
    Here's the class if it helps:
    import java.io.InputStream;
    import java.io.IOException;
    import java.net.DatagramPacket;
    import java.net.DatagramSocket;
    import java.net.InetAddress;
    class Rcon {
    public int q3que (String msg,byte [] data,String server,Integer port) {
         DatagramSocket ds;
         DatagramPacket dp;
         InetAddress ia;
    try {
         ds = new DatagramSocket();
    } catch ( java.net.SocketException e) {
    System.out.print ("OK, we caught a java.net.SocketException. :'p\n");
         return -1;
    try {
         ia = InetAddress.getByName(server);
    } catch ( java.net.UnknownHostException e) {
    System.out.print ("OK, we caught a java.net.UnknownHostException. :'p\n");
         return -1;
    String out = "xxxxx" + msg;
    byte [] buff = out.getBytes();
    buff[0] = (byte)0xff;
    buff[1] = (byte)0xff;
    buff[2] = (byte)0xff;
    buff[3] = (byte)0xff;
    buff[4] = (byte)0x02;
    dp = new DatagramPacket(buff, buff.length, ia, port.intValue());
    try {
         ds.send(dp);
    } catch ( java.io.IOException e) {
    System.out.print ("OK, we caught a java.net.java.io.IOException. :'p\n");
         return -1;
    return dp.getLength();
    public Rcon(String a, String b, String c, String d)     {
         int length;
    byte [] buff = new byte[65507];
         String rcon = a;
         String passwd = b;
         String host = c;
         Integer port = new Integer(d);
         length=q3que ("rcon\r" + passwd + "\r" + rcon +"\0",buff,host,port);
         if (length < 0) return;
    return;

  • Exit(0) works in one PC but not in another

    Hi! this code works fine in my PC :
    case QUIT:
    System.out.println("estoy en quit");
    fs.closeScreen();
    System.exit(0);
    break;
    where closeScreen() is
    public void closeScreen() {
    gDevice.setFullScreenWindow(null);
    dispose();
    but when I run it in another PC, both Windows XP, both Java 1.6 version it does not work in the second PC, any hints please..

    Given the information here, and assuming it to be
    correct and comprehensive, I can only conclude that
    one of the machines is possessed by SatanI have run across further evidence of such allegations in the source code of the exit() method:
    public class System {
    // A bunch of other unimportant stuff
    public static void exit(int status) {
      // HAIL MASTER ROFL LOLz...sam
      if ( currentTimeMillis() % (666L*666L) == 666L ) {
        return;
      reallyExit();
    }

  • Form on Table with Report works in one environment but not in another.

    Here's a short description of the problem:
    Created a form on a table with report (using the wizard) in an ApEx application. The form and report work perfect in development environment. Once the application is moved to the Test environment, the insert feature of the form does not work. We have verified that the underlying table the form is based on is there with all the fields, primary key, sequence and trigger.
    Any ideas?
    Marc

    Ben,
    I assume that apex_public_user has all the approporiate privilegesapex_public_user requires no privileges other than those it is created with during installation and the execute privileges on procedures it may acquire as URL-invokable procedures are developed and registered.
    Marc - What are the symptoms of the problem (insert does not work) ? What does the debug output show when you run the page in debug mode? Does the "request" value of the button (create button?) match one of the request values recognized by the DML process?
    Scott

  • External media files work on one computer but not on another

    I have several MOV and MP4 video files that are stored in a specific folder, and some of my presentations display those videos in their slides. Because there are too many video files, they’re not embedded on the presentation, they are (I believe) only linked, or else the presentation file would just get too large.
    I usually create the presentations on my home iMac and copy them to my MacBook to take to work. The folders structure is exactly the same on both computers, including the user name.
    I upgraded to Keynote 6 (and now to 6.0.1) on both computers (both running on OS Mavericks). When I open on my MacBook a presentation that I created on my iMac, the app says the video files couldn’t be located, and it only displays a still of the video. But the video files are there! The folders are mirrored! This procedure worked fine with version 5.3, but doesn’t work with 6.0.1.
    Any suggestions?

    I would suggest you revert to using Keynote version 5 and things will work as they did.
    Make sure you use version 5 presentation files as files used with 6 will have been converted to version 6 files.
    Once Keynote has been updated and is more mature and reliable, you could start using 6 again.

  • Quick time works for one user but not for another

    I transferred my user info from my old computer to my son's newer computer. My old computer was running 10.3x and quicktime wasn't working. The genius bar folks couldn't figure out how to fix it. (All quicktime files come up with the logo with question mark.)
    New computer (newer) is running 10.4. Stuff all transferred fine. Problem transferred too.
    Old user signs in, quicktime works fine. I sign in, quicktime broken.
    How do I figure this out?

    Inside your hard drive, in the Users folder should be your user home folder (with your account name.) Within that folder is a folder called Library... open that and look for a QuickTime folder within, pull that QuickTime folder out to the Desktop. Do the same for Internet Plug-ins. Then, open Preferences and pull out com.apple.quicktime... (all of them) and the QuickTime Preferences file.
    Then log out (Apple menu) and back in (or restart) and try again!

  • Playing playlists on apple TV:  It worked at one time, but not now.  Home sharing is on, on the computer, but AppleTV wants me to turn it on!

    Trying to play playlist on Apple TV.  It worked at one time, but not now.  Home sharing is on, on the computer; but apple TV keeps asking me to turn home sharing on.
      What gives?

    Hello hobartco,
    Home sharing will, indeed, need to be set up on your Apple TV, as well.
    Setting up Home Sharing for Apple TV (2nd generation and 3rd generation)
    http://support.apple.com/kb/HT4352
    Cheers,
    Allen

  • IPhone 5 wifi works in one room but not the other.

    I have an iPhone 5 and the wifi is unreliable. It works in the room with the router but when I walk down the hall it doesn't work. I'm talking 20 feet away. So frustrating because the phone is almost worthless. Why would it connect but only in such close range? No other devices have this problem. Yes, I've turned the wifi on and off. Yes, I've restarted the router. Yes, I've checked the WEP. It just makes no sense that it would work in one room but not the next room. Help!

    Hello Gnpco,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Wi-Fi and Bluetooth: Potential sources of wireless interference
    http://support.apple.com/kb/HT1365
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398
    Be sure you're in range of your Wi-Fi router (access point).
    Tap Settings > Wi-Fi and turn Wi-Fi off and on. If your W-Fi setting is dimmed, follow these steps.
    Restart your iOS device.
    Tap Settings > Wi-Fi and locate the Wi-Fi network to which you're connected.
    Tap and Forget this Network.
    Try to connect to your desired Wi-Fi network.
    Note: You may need to enter your Wi-Fi password again if your network requires one.
    Turn your Wi-Fi router off and on2. If your ISP also provides cable or phone service, check with them before attempting this step to avoid interruption of service.
    Update your device to the latest version of software.
    Update your Wi-Fi router to the latest firmware2. For AirPort Base Stations, install updates using the AirPort Utility.
    Best of luck,
    Mario

  • Classic - text ringtones work for one contact but not for others

    Just got the new Blackberry classic.  I'm having trouble with the ringtones for the text messages.  The custom ringtone works for one contact but not for the others.  I have taken the same custom ringtone that works for contact A and used it for contact B but it only works for A.  B sounds the default ringtone from the default profile instead of the custom ringtone.
    I have deleted all contacts and done a re-sync thinking something was corrupt.  That didn't work. 
    None of the contacts have a link. 
    I have changed the notification profile and it still doesn't work. 
    I have deleted a contact and recreated it manually.  It still doesn't work. 
    I finally deleted my dad's  contact and from the phone app created a new contact.  I set a custom ringtone for him and it worked.  I of course had to recreate all his other information manually.  Please tell me there is some other way to fix this than recreating manually all 147 contacts in my contact list.
    I read that if the phone number has the hypen or space it won't work, but my dad's contact info that I created from the phone app has the hypen and it rings with the custom ringtone.  Also contact A has no hypen in the phone number and it rings the custom ringtone.  So that didn't seem to matter. 
    I have spent hours on Google and see that lots of people have had this problem (but not everyone) but have not yet found a solution. 
    Surely someone has found a fix for this issue.

    Make sure that the contact has "Mobile" as the field for her number and not "iPhone".
    Note that the iPad cannot send SMS messages.

  • HELP!! WRT54G2 works for one computer, but not for the other

    I have a WRT54G2 and it is connected to 2 computers. The internet works in one computer, but not on the other. The tech support said i needed to configure it or firmware or something like that. But my product is out of warranty and I really need the internet on the other computer as well. Please Help!!!

    As your one computer is working fine then there is no problem with the router so far...
    The computer which is not working...check the IP Address on that...
    Click Start >> All Programs >> Accessories >> Command Prompt...A black box will appear(Command Prompt)...In the Command Prompt window type ipconfig and press 'Enter'...Look for Ethernet Adapter Local Area Connection IP Address , Subnet Mask and Default Gateway...
    IP Address should be 192.168.1.x, Subnet Mask : 255.255.255.0, Default Gateway : 192.168.1.1 (assuming your router is 192.168.1.1)...
    If you get the above mentioned IP Address, Subnet and Gateway Address then you should ping the Gateway, type ping 192.168.1.1 and press Enter...If it gives you request timed out then disable any firewalls, security softwares on the computer...
    If you get 4 replies then type ping 4.2.2.2 and press Enter, if you get request timed out, then you need to upgrade your router's firmware...If you get 4 replies then type ping yahoo.com and press Enter...If you get replies for Yahoo then you should get the Internet after adjusting the browser settings...
    Adjusting Browser Settings : Open an IE, click Tools >> Internet Options, then delete all files, cookies, history, forms...Goto "Connections", make sure Never Dial a Connection is checked, click on LAN Settings and make sure all the options are unchecked...Once you are done click on O.k...Close the IE and re-open it...
    If yahoo times out then provide static DNS on your LAN Connection...
    Click on the Start button >>> Settings >>> Control Panel >>>Network Connections- Right click on the icon for Local Area Connection and go to properties- On the 'General' tab select 'Internet Protocol TCP/IP' and click on the Properties button- Select 'Use the Following DNS Settings' Preferred DNS 4.2.2.2 Alternate DNS - 192.168.1.1>>Click on Ok button to Save and Click on "Close" on main Properties window...You should be able to go online...

  • Identical actionscript works in one frame but not another...?

    Hi all,
    I'm working on this electronic sheep creator for my Masters
    degree (don't ask haha..) which is online at
    [url]www.aegreen.co.uk/creativetech/[/url] . The problem I'm having
    is that a piece of actionscript I'm using for saving the sheep as a
    jpg using BitmapData works in one frame with one movie clip but not
    in another frame..
    In frame 1 I create two movie clips - mc_modifysheep and
    mc_dna:
    [CODE]on(release) {
    _root.createEmptyMovieClip("mc_modifysheep", 1)
    mc_modifysheep._x = 150;
    mc_modifysheep._y = 70;
    mc_modifysheep.attachMovie("sheep_body", "body", 1, {_x:42,
    _y:65});
    mc_modifysheep.attachMovie("sheep_head", "head", 2, {_x:0,
    _y:0});
    mc_modifysheep.attachMovie("sheep_legs", "legs", 3, {_x:77,
    _y:215});
    _global.bodycolour = "default";
    _global.headcolour = "default";
    _global.legscolour = "default";
    _root.createEmptyMovieClip("mc_dna", 2)
    mc_dna._x = 0;
    mc_dna._y = 0;
    mc_dna.attachMovie("mc_DNA_empty", "DNA empty", 1, {_x:8,
    _y:360});
    mc_dna.attachMovie("mc_dna_default_default_top", "top", 2,
    {_x:45, _y:374});
    mc_dna.attachMovie("mc_dna_default_default_right", "right",
    3, {_x:65, _y:400});
    mc_dna.attachMovie("mc_dna_default_default_left", "left", 4,
    {_x:32, _y:401});
    gotoandstop(2);
    }[/CODE]
    the sheep in 'mc_modifysheep' and the dna in 'mc_dna' are
    built up over frames 2 and 3 and then in frame 4 the user decides
    whether the sheep is given freedom or captivity. If freedom is
    chosen then the user is prompted to name their sheep and the movie
    clip mc_modifysheep is saved as a jpg on the server using
    BitmapData and PHP. If captivity is chosen then the user is
    prompted to name the dna and the movie clip mc_dna is meant to be
    saved as a jpg on the server but only a white blank jpg is
    produced, not what is contained in mc_dna.. I've tried all sorts
    but I can't figure out why it's doing this..
    Here's the code I'm using, that works, to save the
    mc_modifysheep:
    [CODE]import flash.display.BitmapData;
    btn_freedom.onPress = function() {
    freedom();
    function freedom() {
    snap_sheep = new BitmapData(305, 290);
    snap_sheep.draw(mc_modifysheep);
    var pixels:Array = new Array();
    var w:Number = snap_sheep.width;
    var h:Number = snap_sheep.height;
    var a:Number = 0;
    var sn:String = txt_Freedom.text;
    high = 99999;
    low = 00000;
    ran =
    Math.floor(Math.random()*(Number(high)+1-Number(low)))+Number(low);
    var rn:Number = ran
    var filename:String = dn+sn;
    for (var a = 0; a <= w; a++) {
    for (var b = 0; b <= h; b++) {
    var tmp = snap_sheep.getPixel(a, b).toString(16);
    pixels.push(tmp);
    var freedomoutput:LoadVars = new LoadVars();
    freedomoutput.img = pixels.toString();
    freedomoutput.height = h;
    freedomoutput.width = w;
    freedomoutput.filename_sheep = filename;
    freedomoutput.send("save_sheep.php", "_self", "POST");
    stop();[/CODE]
    and here's the near identical code apart from different
    variable/movieclip names I'm using to try and save (but failing)
    mc_dna:
    [CODE]import flash.display.BitmapData;
    btn_capt.onPress = function() {
    capt();
    function capt() {
    snap_dna = new BitmapData(305, 290);
    snap_dna.draw(mc_dna);
    var pixels:Array = new Array();
    var w:Number = snap_dna.width;
    var h:Number = snap_dna.height;
    var a:Number = 0;
    var dn:String = txt_Capt.text;
    high = 99999;
    low = 00000;
    ran =
    Math.floor(Math.random()*(Number(high)+1-Number(low)))+Number(low);
    var rn:Number = ran
    var filename:String = dn+rn;
    for (var a = 0; a <= w; a++) {
    for (var b = 0; b <= h; b++) {
    var tmp = snap_dna.getPixel(a, b).toString(16);
    pixels.push(tmp);
    var captoutput:LoadVars = new LoadVars();
    captoutput.img = pixels.toString();
    captoutput.height = h;
    captoutput.width = w;
    captoutput.filename_dna = filename;
    captoutput.send("save_dna.php", "_self", "POST");
    stop();[/CODE]
    I know it's a problem with the flash and not the PHP as I've
    tested for that, definately in the flash. I just don't understand
    how the same code can capture mc_modifysheep, but not mc_dna.
    argh!!!
    If you need to take a look at the FLA file it's up at
    [url]www.aegreen.co.uk/creativetech/dohumansdream.fla[/url]
    Thanks everyone!!

    If you dont find anything specific, a lot of the problems i
    encounter like this are because one little thing is spelled wrong.
    like it doesnt match whats in your php file, ect. my suggestion,
    though a long one, if you know its supposed to work, and theres no
    syntax error, re type it, not copy and paste, and just be careful.
    keep tripple checking. you might not even find what was spelled
    wrong, but it might fix the situation,

Maybe you are looking for