Therefore I am implementing a custom search/ filter, such as the user can search by entering their car’s make, model,year, and part category (engine,brakes, electrical,accessories) and then displaying the necessary products that fall under those categories. The user also has option of entering their car’s VIN number and all the parts that fit their car will be displayed. And finally a third normal search feature where user can search with key words.
Because these search features are complicated. The database has a lot of tables to accommodate this. So when the search happens. All the tables have to be link to find the necessary parts required.
I could not find any documentation that could help me with this.
What do i need/ how can I make this all possible?
I am trying to build a web app where users can input a docket no./ consignment tracking no. and get an estimated time of arrival (ETA) on the website for their consignment. The ETA and other details of the consignment are on a MSSQL database hosted on AWS.
To fetch the result on the page, I have written some PHP code on a wordpress page but get the error that I don’t have the necessary driver installed. The code is as follows:
<?php
$servername = "xx.xxx.xx.xx,port";
$username = "xxx";
$password = "yyy";
try {
$conn = new PDO("mssql:host=$servername;dbname=OurDBName", $username, $password);
// set the PDO error mode to exception
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
echo "Connected successfully";
}
catch(PDOException $e)
{
echo "Connection failed: " . $e->getMessage();
}
?>
I understand from some research that I need to install a PDO driver for MSSQL in php. However, I do not understand where this would go, given that I made and ran my website from WordPress. I know goDaddy uses phpmyAdmin and I can access that but do not know ay further. Could you help?
Thank you in advance.
]]>Is this something WP Data Access could be configured to do, use an external database rather than the internal one? If not, do you know of any other data search and display possibilities that could use an external database from within WordPress? Thanks for any information you can provide!
We are using WP 5.3.0, soon to upgrade to 5.3.1.
]]>I would like to know if it is possible to make a search to an external database to show on my current website.
The database has some simple info for the user to consult.
The ideia that iam thinking to implement is to have a php form then query the external database and show the result.
Best Regards,
Magnus
Would you be so kind as to tell me if this is possible and how would you start integrating this functionality to the product:
1. Using the Premium version with a couple of filters
2. Adding a date field: when it is set, a SQL query loads a list of dates that are allowed; source is an external DB to WordPress / not a Woocommerce attribute (say the table contains a ProductID:Date type schema)
3. Show the product, if the SQL table contains the selected date and hide if not
Thank you
]]>I want to store the subscription field info (email, name, etc) into an external database for use elsewhere.
Thanks.
]]>I have WordPress and a non-WP script running on the same host. The non-WP script stores it’s information in a MySQL db but it is not the WP db.
Is it possible to use PODs custom fields to extend something like the WP users table with field data from the non-WP db?
]]>