Quantcast
Channel: MySQL Forums - PHP
Browsing all 938 articles
Browse latest View live

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 Article


How 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 Article


php-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 Article

Trouble 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 Article

MySql 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 Article


Mysql 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 Article

Query 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 Article

Select 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 Article


shows 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 Article


pictures 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 Article

Adding 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 Article

Records 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 Article

Image may be NSFW.
Clik here to view.

Trouble 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 Article


I'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 Article

cannot 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 Article


Seeks 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 Article

inserting 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 Article


application 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 Article

Referencing 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 Article

Getting 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
Browsing all 938 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>