All Questions
24,041
questions
0
votes
0
answers
22
views
Error when submitting to Database: No data supplied for parameters in prepared statement [closed]
I'm building a webform that a User would fill out and then submit, adding their details into a table called atyzi_wctc in the Database. The Database is making the connection, but it keeps responding ...
-3
votes
0
answers
40
views
data cant be save in database [closed]
i have a registration form and i want to store the information (gender and phone included) but it didnt store in the database even the register is successful but the column for gender and phone_number ...
-3
votes
0
answers
24
views
File failing to upload without error message on php and mysqli [closed]
So i have a code to upload text input, image and video. but its not working. it just keeps on loading and loading it never finishes but this only happens when i put the code live on hostinger but if ...
-1
votes
0
answers
14
views
mysql->fetch_assoc() not working as per expected [duplicate]
""
Fatal error: Uncaught ArgumentCountError: mysqli_query() expects at least 2 arguments, 1 given in C:\xampp\htdocs\finca-raffledraw\save_winner.php:17
Stack trace:
#0 C:\xampp\htdocs\...
-1
votes
1
answer
75
views
AJAX Call is not returning any data [duplicate]
I am trying to create a dependency for a project, the SQL query works and returns the data I need in PHP Admin however when I try to create the AJAX request for this all it does is return an empty ...
0
votes
1
answer
55
views
Mysql/html how to get output like this, or similar
PhpMyAdmin
Looking for output like this:
In Mysql/PHP, how can I get output like this, or similar (photo 2)?
$start = mysqli_query($conn, $sql);
if (mysqli_num_rows($start) > 0) {
$row = ...
-1
votes
0
answers
49
views
PHP 8 migration with simple script but no errors, just blank white page
I have been using the following custom code for over 12 years and it has worked perfectly. With PHP 8 I just get a blank white page with no errors. It allows me to use template files, so I can keep ...
0
votes
0
answers
28
views
Cant Insert Data into MySQL Database Using PHP [duplicate]
I'm facing an issue where my PHP script is not successfully inserting data into my MySQL database. Here's my code:
<?php
$conn = new mysqli('localhost', 'cjheller0', 'password', 'user_form_db');
$...
-1
votes
0
answers
18
views
Rollback does not do anything when error occurs in my transaction mysql [duplicate]
I have written code to insert multiple rows in a table. If there is an error on any of them, I want them to rollback.
The code is written in PHP:
mysqli_report(MYSQLI_REPORT_ERROR | ...
-3
votes
0
answers
52
views
PHP mysqli_connect does not continue after error [duplicate]
I am very puzzled on using the mysqli_connect() and mysqli_connect_error() in my PHP. I don't know where to look for the problem or how to solve, is it php.ini or my.ini config? Need help.
I am ...
-1
votes
0
answers
23
views
creating a keyord tag list from a comma seperated list with PHP Mysqli [duplicate]
I have a list of keywords in a database field called "keywords", that I turn into a keyword list to display on a blog as cloud type tags.
//KEYWORD TAG MANUFACURE
$keywordtags="$...
0
votes
0
answers
164
views
mysqli_connect: authentication method unknown to the client [caching_sha2_password]
I have PHP Version 8.3.7 installed and running according to phpinfo. I attempt a connection to a MYSQL 8 database and receive the message:
PHP Fatal error: Uncaught mysqli_sql_exception: The server ...
0
votes
1
answer
99
views
How to edit value from a linked table in a dropdown(<select>) box?
How to output and edit columns of a many-to-many table through <select\>.
I have three tables : filial_work , department_work, contact_work .
In them, I managed to output only the already ...
0
votes
0
answers
40
views
Giving a custom response to a MYSQL error [duplicate]
I seem to have a problem that others have reported but the answers provided in other threads do not work in my case. I have code to connect to my db and it works fine, I can use it to connect and ...
1
vote
1
answer
115
views
Why mysqli_fetch_assoc reports an exception from a nested loop
I'm using the following code example:
$ca=$db->query('SELECT * FROM `clients`');
while ($c=$ca->fetch_assoc())
{
try {
$mysqli->query('ALTER TABLE `client_'.$c['id'].'_data` ADD ...