mySQL database using phpMYAdmin and Joomla3 - mysql

I have a database built in Php myAdmin, and I want to connect it to a form I have on a joomla3 website. But when I fill details in on form, all data goes to default joomla3 database and not my database. Anyone got any ideas around this ?
I need my front end form data connecting with my own database not the default database in Joomla.
Thanks in advance.

Probably what you want may be figured out by following this Joomla docs instructions.

You can install the great RS Forms component for a small fee - this allows complete control of the form and you can wire it to your own php script to process the form.
You need to be careful to protect your script from bad data designed to hack your site as people enter code into the form - js is not enough you need to scrub the data before you attempt to do anything with it.

Related

html button for mysql database backup and send to gmail

i have researched that doing backup and restoring mysql databases is done through phpmyadmin.
I just want to ask, is it possible to have a button in a webpage that will let the user automatically backup a database and send it to his/her desired email account? the backup will be in a zip file.
Just a couple of things
1) phpMyAdmin is just a GUI to manage a mysql database. Basically just a user friendly way to interact with the db without having to use command line.
2)What you want to do is certainly possible in various ways.
You need some sort of server. If you are new to programming you could use an apache server and php as backend technology ( use xampp for a ready to use hosting environment ).
Basically the tasks are the following :
1)Serve a webpage with a button
2)On click of button call another page that connects to the db, backs it up, saves the backup to disk and then emails it. I'm sure there are lots of examples on the web, just make a quick google search :)
Yes it is possible to do that with php or any other server side language which have a functions to deal with MySQL or any type of database
You can program it , here is a good answer on that
Stakeoverflow question &
implementation from dzone
Here is the code on github which could help you.https://github.com/tazotodua/useful-php-scripts/blob/master/export-mysql-database-sql-backup.php

can i create a database without mysql on raspberry pi

I've got a raspberry pi with raspbian and all I've done is installed apache2 and created a small web site i want to create a database.
is this possible without using mysql or other database software. i want to use .JS or a text based database
I want to be able to save the contact details in a text format.
can someone point me in the right direction a simple example would be appreciated all online research wants mysql etc
all i want is a simple example as in enter name and submit i want that name to be logged so if name entered again it will say welcome back once i know this mechanism i can add all the other fields. The reason i want this format is so i can see the list that I'm creating.
i just can't get to grips with mysql I've spent months trying to understand mysql but its just not going in so want to simplify the database to minimal workings so i can complete my site. I know .Js isn't so secure but its a demo so security not important at this point any help appreciated
It would be possible to use JSON for your data storage. It will be a key-value storage. On each page view you will have to load the entire file into memory and parse it. From then on it is possible to loop it to search data or get data from a key. This requires no extra software just PHP with Apache.
How to:
Build an array, use json_encode to create the JSON and save it using file_put_contents(). Remebmer to save the whole array and not just the newly added element.
This is not a relative database but might do the trick if you build an intelligent system with cookie's to store an ID that is associated with a user.
Alternative you could use serialize() instead of json;
If you don't mind to use different way of storing data you can use either Google App Engine or mongolab or other cloud based databases

Connecting visual c++ to an online database

I am working on an app in visual c++ which requires data to be accessed from a database which can be edited so that every time there is a modification to the data I do not have to resend the app as it will automatically update, it is also required that this is a desktop app.
I am currently using MySql however for this to run constantly I will be needing a server which for a single simple app wont really be worth purchasing, so I started thinking of alternative methods and thought to myself there must be some method of reading directly from a website or online database, am I correct in thinking this? If so could someone please explain how I would achieve this?
Also, I have purchased phpmyadmin in the past so if there is any way I could connect my visual c++ app to a database from this then that would be great.
EDIT: Note, this app relies almost entirely on the database as it is just 3 combo box's and one text field all of that values for which come from the database.
The following response is assuming that by online you mean on the web.
You cannot exactly 'connect' to an online database with C++ (or anything outside of that server hosting the database).
What I would do is create some PHP API's that you can POST to with libcurl via C++. You can both send and receive data this way.

how to publish an existing article and save it to mediawiki Database

I am very much new to mediawiki, only a couple of days research. Here I already have an article called e.g., "sample" which I need to save it to mediawiki database which was installed on my wamp server (localhost). So how to achieve that? Should I need to write a program for achieving it? Can anyone please help me in this?
Also, I have an HTML form and how to save that form to mediawiki DB?
you can use webservices to create an article and save it to your mediawiki database
here are some links ,pls refer to it.
http://www.mediawiki.org/wiki/Extension:CreateArticle
http://www.mediawiki.org/wiki/Extension:CreateArticle/sourcecode
An API for manipulating wiki pages is available in core MediaWiki: https://www.mediawiki.org/wiki/API:Edit
The HTML form cannot currently be stored in the DB unless it is adapted to work with wikitext. This may change in the future.

Access 2007, Need to distribute a form while keeping the database on a server

So here is the gig, I have this inventory access database that I am trying to seperate the form logic from the database itself; having the database on the server while the form is distributed to users.
I know how to seperate the database to a "front end" and a "back end" but my question becomes " is that all I need to do? Send the users the front end with the form and call it done?"
How do I ensure the database can still talk to all instances of the form?
Help, or at least a point in the right direction, would be great! Been trying to figure this out for the past week.
Based on your question "How do I ensure the database can still talk to all instances of the form?" it seems to me that you fundamentally don't understand how Access/Jet/ACE works.
The database (back end) doesn't do any "talking" -- it's just a file. Each user's PC does all the data manipulation, and as long as the linked tables in each user's front end has the right connect string, it will load the data from the shared file on the file server.
It's all "pull" -- no "push" as there's no server process running on the server to send anything back to the users.
See the "Splitting your app into a front end and back end Tips" page for more info. See the free, for basic use, Auto FE Updater utility to make the distribution of new FEs relatively painless
That is basically it. You will probably need some code to check the linked back-end tables and re-link them if any are missing. I like to keep a small set-up table that lists the expected tables and location and a start-up form. The start-up form checks a few things and either loads the menu form, if all is well, or a form to find the back-end database is all is not well.