Inserting records with mysqli_insert_id (1 reply)
I am trying to get data from a csv file and into a mysql database. My objective for example is to get the first few records and add them to a table then get the primary id as well as a few other...
View ArticleHow to wait for INSERT to happen before moving onto next INSERT query? (5...
I am inserting data into, table1. After this data is inserted I am trying to insert data into table2 to based off table1 data. Table2 has FK from table one that I am referencing. This is how I have my...
View Articlephp-mysql help. Need to create a dynamic url based on the table value (2...
I have a database named 'counter' and a table named 'info'. which stores the information of client ip address (ip_address), client brower details (user_agent) and date and time visited my website...
View ArticleTrouble Connecting to Database via PHP (14 replies)
Ok so I've got a database with a populated table (just to practice for now) I'm trying to connect to my mysql database via PHP and have found the code to help me to do just that, but when I try I get...
View ArticleMySql Query Help (2 replies)
Hi professionals. i am new to php and mysql and I am trying to query my database to calculate the distance with the help from google instructions on this page. https ://...
View ArticleMysql Login systeem (no replies)
// login form <table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <form name="form1" method="post" action="checklogin.php">...
View ArticleQuery is not running Fastly (1 reply)
Hi, I've around 5.00,000 Records in my Table. Now return a query its not running fastly. Below is the Query. I need to optimize below query for fetching faster records. SELECT `id` AS company_id,...
View ArticleSelect data just after insert (5 replies)
Hi all, I' m developing a php /mysql application. I need to run a select query on a table just after an insert to the same table. The reason is that the business owner wants to have the user to able...
View Articleshows only the end of the code (no replies)
Hello My code is: <?php $con=mysqli_connect("localhost","root","","images"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); }...
View Articlepictures from database (1 reply)
So I've got images' path stored in my database for each object and I want to display the images on my webpage. I though i could do it for each element with following code: <?php...
View ArticleAdding and removing slashes (1 reply)
Hi I’m in a class being taught PHP and MySql, and I’m posting this question more or less for clarification as to when and how you would use functions that add and remove slashes when...
View ArticleRecords missing after insert (2 replies)
I have a problem with data not inserting into my database. The application uses PHP's PDO to connect to a MySQL version 5.5.27 server hosted by AWS. One of my scripts does some queries, including 3...
View ArticleTrouble displaying information from table in PHP, please help. (1 reply)
Hi there, I'm learning PHP and have come across a problem I'm wondering if one of you can help me with. I'm trying to run this code from Addison Wesley PHP and MySQL Web Development 4th Edn. When I...
View ArticleI'm having extreme difficulty getting my ADD and DELETE buttons to work with...
I need to create a PHP page where I can input form data and see what was entered on the same page and another page that is the data output that will show the table with the data entered. At the bottom...
View Articlecannot connect to mysql server (13) (1 reply)
basically, i have a web server (apache in centos installed in host B, and want to connect to a MySQL server in host A) both hosts are in the same subnet. i can access remote mysql using CLI mysql -u...
View ArticleSeeks Improved Efficency: Redundant Query Data (5 replies)
Greetings. I seek your advisory for the following 2-table simple SQL problem. (i believe, simple, that is). Super-details (eg. Table3), i might add later (Eg. producer, writer, credits), but i need to...
View Articleinserting csv data into mysql table using PHP (2 replies)
Just looking for some advice on the best way to go about inserting some data(and in the future updating) from a csv file into a mysql db table. My server doesnt allow the command load data infile so...
View Articleapplication with php and myadmin (no replies)
Hi everyone iam developping an application with php and mysql but i want to use oracle 11g for the datawarehouse can someone help me about how to proceed???? plz help
View ArticleReferencing Images (8 replies)
First off, thanks to anyone will to spend a moment to reply to my question... I'm self-taught in HTML and CSS and have coded half-a-dozen websites without any problems. My latest site, however, will...
View ArticleGetting many error in error_log file. (1 reply)
Hi Guys.... Does anyone have any idea, why I am getting this in my apache log file...... PHP Warning: PDO::__construct(): [2002] Cannot assign requested address (trying to connect via...
View Article