Added: 8 months ago
From: crosbymichaela
Views: 12,882
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (25)

Sign In or Sign Up now to post a comment!
  • the video is not clear.. please put up a clear video

  • To make an apk, in your menu bar: Project >> Export Release Build.

    All you have to do is move the PHP file from your local development computer to your webserver.  Then it is ready for production, that is all you have to do. If you plug in your phone and Project >> Export Release Build, it will run exactly the same (if you are connected to your wifi) as it does in the video.

  • I was talking about generating an Android application (. Apk) with PHP backend, but so far not seen any video or tutorial showing it.

  • I understand, but what about the client-server communication? The tablet makes requests to the Apache web server? I have not found where to configure it ...

  • @gabrielgpp I'm sry but I don't understand the question. Tablet's communicate just like phones or even laptops and computers. As far as Apache, you do have to have an *AMP stack running. ie Apache, mySQL, and PHP. The communication is done with PHP in this example. All this example does it takes a url to a php page. ie the URLRequest in views.MainLoginView.mxml is where you put a url to your server.

  • If you want more info, I have an hour long tutorial for $7. I posted the link in the video description, I can't post links in youtube comments.

  • Thank you @ crosbymichaela.

    This tutorial helped me a lot, good job. People like you make a smarter world.

    thanks

    Pedro

  • Great tutorial....is there anyway you can continue by doing the successview showing information being retrieved from a different table of same database? e.g. showing first name, middle, last, etc.

  • @batista603 If I have time....

  • @crosbymichaela okay, I see that you sell tutorials. If it will help, if you could create a tutorial on what i asked for, i wouldnt mind paying for it. I also may need to see examples on how to insert and update to if you decide to do it. Keep up the good work

  • @batista603 So I think I will do a check in app for the tutorial. It' would have a signup, you could check in your GPS location, add friends and view their location and information. Remove friends(all this data is stored in mySQL). So that would cover more views, adding, updating, deleting data from mySQL. And interacting with all the views. I will charge some money for it because this is alot of code I have to write, but it will be close to an hour video and you get all php and mobilecode

  • @crosbymichaela Sounds good, just let me know when its posted.

  • @crosbymichaela hows the app coming along?

    

  • hello, this application could run on a tablet true? What are the changes to be made?

  • @gabrielgpp It can run on a tablet as is. But you should do UI changes for tablets. All underlying code stays the same.

  • if ( !mysql_select_db("$dbname")) die("Could Not Open Database");

  • I wouldnt let me send the rest

  • Okay, cool. One more thing, for some reason, when I try to access the database, I'm getting denied. I have been up and down this php code the whole time and I think I changed everything. I'm using xampp to do this.

  • @batista603 i don't know xampp. If you are on windows try:

    wampserver . com

    Linux:

    install tasksel

    then lamp

  • @crosbymichaela I still can't connect using your code, but I can connect with this code:

    <?php

    $dbuser = 'root';

    $dbhost = 'localhost';

    $dbpass = 'ats603';

    $dbname = 'usalogin';

    $dbtble = 'credentials';

    if ( !($mssql_link = mysql_connect("$dbhost","$dbus­er","$dbpass"))) die("Could Not Connect to Database");

  • okay, so lets say I created multiple tables in a database that has a relationship to the username and password that displays for example his location like city,state, etc., do I have to create another select.php like you created. 

  • @batista603 Ya, you just make another select statement and echo out the results.

  • Great tutorial. I have a question, if I wanted to have a home screen that will provide information based on login, how would I go about doing that?

  • @batista603 Not sure I understand what you want. After a successful login, you just push to another view, your home view, and get user data from the database and have PHP echo it out.

  • Brilliant thanks just what I needed thanks so much :)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more