Jump to content

Tutorial AutoIT - PHP -MySQL.v2.0 - (Moved)


Recommended Posts

I have tested scripz and found an error:

After login with admin/admin I tried to add new user (member). I entered all required fields and when I press Create, received error that

user was not added.
I examined code of : MysqliDb.php.  I found error on line:  928
   $this->_query .= ' (`' . implode($tableData, '`, `') . '`)';

Line 928 should be:   $this->_query .= ' (`' . implode('`, `', array_keys($tableData)) . '`)';

Regards

Ante

MysqliDb.php

Link to comment
Share on other sites

Hi Andreik,

This is example ofcombination of AutoIt script and PHP script.
I found an error in one PHP script so the complete example does not work.
You cannot CREATE NEW user   if you try downloaded zipped example?
I solved an error (wrong usage of implode() PHP function), so complete example work fine.
You can upload MysqliDb.php script and try complete example.

Regards,
Ante

Link to comment
Share on other sites

  • Developers

Moved to the appropriate AutoIt General Help and Support forum, as the AutoIt Example Scripts forum very clearly states:

Quote

Share your cool AutoIt scripts, UDFs and applications with others.


Do not post general support questions here, instead use the AutoIt Help and Support forums.

Moderation Team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

8 hours ago, abarba said:

I solved an error (wrong usage of implode() PHP function), so complete example work fine.

Nice. It would also be good to make your post in the tread with the original code is at otherwise no one will have a clue of what you just fixed.
Where did you find the example at ? ( share the link )

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

I do get that php and AutoIt do look alike to some extent like $ to start variables, some similar function names and their way for usage, but this code do look like Laravel like way of handling queries with mysql queries.

$db->where ('id', 50, ">=");

And still i am @ a miss about where is single piece of AutoIt code is and everyone else here. So you should report this to https://github.com/ThingEngineer/PHP-MySQLi-Database-Class/issues and let them know if you think something in code is wrong.

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...