Authentication and Photo Gallery

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Kaubs
Posts: 124
Joined: Wed Jun 29, 2011 3:55 am

Authentication and Photo Gallery

Post by Kaubs » Wed Jun 29, 2011 4:01 am

Hello,

I have a couple questions I have thus far been unable to answer on my own via tutorials or the forums. I do hope I am not double posting an old topic.

Firstly, I am trying to design an app that would require the user to log in on first use with an authentication server. Is this a possibility with Livecode? What will my struggles be or are there any beginners guides to doing so?

Secondly, my application would need to upload pictures to a server and host them so that other users of the app could see a online gallery of sorts. Again...what kinds of problems might I run in to with this?

Thanks and sorry I am so vague with my questions. I am a newbie just getting started. If anybody has questions about what I am trying to do please ask so that I may better assist in understanding. Thanks again!

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Authentication and Photo Gallery

Post by Jellicle » Wed Jun 29, 2011 7:20 am

LiveCode on iOS can talk to remote servers in a number of ways - I've done some simple stuff using php and MySQL that could be modified to do authentication. If I can work out how, anyone should be able to :) I'm not sure you'll find a beginners guide to doing exactly what you need, but a combination of php and MySQL tutorials got me started (I did have some limited sql experience, but from 20 years ago).

I've also written an app that sends text or photos to a server, and other clients can view recent contributions to the server in a scrolling list (inside speech bubbles, too!). It works fine but it does seem that a Objective C app would be better especially if you need to display and scroll lots of images quickly - LC scroller performance is only just acceptable and in other respects LC isn't as snappy as it could be, compared to native apps.
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Kaubs
Posts: 124
Joined: Wed Jun 29, 2011 3:55 am

Re: Authentication and Photo Gallery

Post by Kaubs » Wed Jun 29, 2011 8:02 pm

Thanks for the response. That was pretty much the answer I expected to hear. :)

martinK
Posts: 7
Joined: Sun Sep 30, 2012 6:12 am

Re: Authentication and Photo Gallery

Post by martinK » Tue Apr 02, 2013 4:51 am

Hi

I need help with code that adds photos to MySql Database.
Please tell me what I am doing wrong with my code.

Code: Select all

       put "CREATE TABLE Images (image1, image2)" into tSQL
       revExecuteSQL sDatabaseID, tSQL
   put the imagedata of image "A" into tImageData1
      put the imagedata of image "B" into tImageData2
   put "INSERT into Images VALUES (tImageData1,tImageData2);" into tSQL
   revExecuteSQL sDatabaseID, tSQL
mk

Post Reply