User Tag List

Results 1 to 9 of 9

Thread: ODBC Problem - Not returning records

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    ODBC Problem - Not returning records

    I'm having an odd problem with the ODBC object. I cannot get it to return rows.

    I am running on Microsoft Vista Utimate. I have created an ODBC data source and tested it using OpenOffice Base. I can connect and issue the command "Select * from inventory" just fine. So I know the ODBC data source is working.

    In MMF2 I add the ODBC object and tell it to connect to the ODBC datasource.

    Then in my code I have
    Start of frame
    New Statement
    Send SQL Command "Select * from Inventory"
    Get Row

    Can get data
    Set text of text field to RowCount
    Set texr of text field to ColName

    End result I get the ColName but my RowCount comes back -1
    meaning it did not return any data rows.

    So I know I am access the table because the Colname is correct
    but why no rows are returned. I also check the SQL Access
    syntax and tested the SQL in OpenOffice BASE SQL query screen to
    the same Access database and it works and is correct.

    Is there a problem with the MMF2 ODBC object not working with the
    Vista ODBC sources.????

    Am I just doing something wrong????

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: ODBC Problem - Not returning records

    I don't think all ODBC sources support RowCount. Check this thread out for ideas on how to use the ODBC object.
    .:::.Joshtek.:::.

  3. #3
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC Problem - Not returning records

    Thank Joshtek, are you using Vista?

    See my real problem is that after sending the SQL command
    I can only get Column heading names but I cannot get an data using the getColumntext also. I mean I can get the ColName
    but not the Coltext or the rowcount. Its like it it is accessing the table but not returning any datarows.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: ODBC Problem - Not returning records

    I'm not using Vista. Try out the example and my tutorial. Forget about RowCount, its content is not to be trusted.
    .:::.Joshtek.:::.

  5. #5
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC Problem - Not returning records

    Well, you are correct that row count may not be supported. For some reason it now works. I have no idea why. I just readded a new text field telling it to get the Column text. This is strange. I guess it must just be me. Thanks for reply.

  6. #6
    No Products Registered

    Join Date
    Jul 2006
    Location
    AUS
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC Problem - Not returning records

    Is it possible to access MySQL databases on websites? (i.e. like a forum)

    How do you go about the steps of entering an address, login, password and choose a database?

  7. #7
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC Problem - Not returning records

    You have the use PHP and MMF2. MMF2 as the frontend and PHP to pass the information back and forth. Do some searchs on this forum and you can find some examples of the PHP code.

    Try this link.
    http://www.clickteam.com/eng/resources/online_score/onlinescoreboards.html

    This question keeps coming up on the forum and it would be nice to have a solution developed without having to result to PHP but for the time being PHP is the best answer so far.

    I believe Clickteam is working on Vitialize for MMF2 that will allow you to place MMF2 application on the web. But even with that you would still need PHP.

    If you going to do this your website would also have to support PHP and MySQL.

  8. #8
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC Problem - Not returning records

    Jam recently released the Live Receiver extension, which makes things quite a lot easier than using Moosock to send an HTTP request - though the idea is still the same.

    The trouble with most MySQL servers is that they only allow connections from within the same site, so you have to go through PHP to work around it.

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: ODBC Problem - Not returning records

    If the MySQL server accepts connections from other IP addresses than the site it is hosted at, you could always learn the MySQL protocol and use it with MooSock.

Similar Threads

  1. Problem returning a Negative Numbers
    By EZubby in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 30th July 2011, 05:56 AM
  2. ODBC Problem
    By Mephistus in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 5th September 2008, 05:27 PM
  3. MMF2 - ODBC problem.
    By droberson in forum Extension Development
    Replies: 7
    Last Post: 4th October 2007, 06:02 AM
  4. ODBC problem
    By Ivosh in forum Extension Development
    Replies: 2
    Last Post: 5th September 2007, 07:26 AM
  5. ODBC object not returning ColName
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 21st June 2007, 03:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •