Friends, what is this error for?

|
Dalmik Chand 2022-01-14 16:48:43
can anybody plz help
ecargsid_eht 2022-01-14 16:50:35
Dalmik Chand 2022-01-14 16:48:27
why i am getting this error

mysqli_query function takes 2 parameters .. connection variable and query statement

ecargsid_eht 2022-01-14 16:50:51
You gave nothing inside the parenthesis
Dalmik Chand 2022-01-14 16:51:45
ok thanks
javad_jabzz 2022-01-14 18:48:24
ecargsid_eht 2022-01-14 16:17:13
Auto_Increment?

Including varchar

ecargsid_eht 2022-01-14 18:50:42
javad_jabzz 2022-01-14 18:48:24
Including varchar

while showing the user id to the user ,, just concatenate the random string in front of the id
example – if $userid = 56

“ANCB000”.$userid

ecargsid_eht 2022-01-14 18:50:54
results ANCB00056
javad_jabzz 2022-01-14 18:51:39
But userid id should be store in database. Because its using for login activity
javad_jabzz 2022-01-14 18:54:55
What i can do
mhmd_dev 2022-01-14 19:11:43
codeslide-56411.jpg
Hello
Friends, what is this error for? … Please help
Ziyu107 2022-01-14 20:07:27
codeslide-56414.jpg
How to solve this
Anshu594 2022-01-14 20:10:10
Ziyu107 2022-01-14 20:07:27
How to solve this

Localhost ?

Change the foldar permission > Allow all

RR 2022-01-14 20:48:15
codeslide-56418.jpg

RR 2022-01-14 20:48:31
What may be issue?
skycodes 2022-01-14 20:49:09
RR 2022-01-14 20:48:15

It requires name and adsress.

RR 2022-01-14 20:49:33
Where ?
RR 2022-01-14 20:49:44
In code or in stripe profile?
skycodes 2022-01-14 20:50:25
Payment form may be.
RR 2022-01-14 20:51:10
Ok
KidKamaleon 2022-01-15 00:25:33
I have a newbie question: I’m creating a Json from a Mysql consult
KidKamaleon 2022-01-15 00:25:50
<?php
include ‘conn.php’;

$sql = “select * from chomi_limpieza limit 10”;
$result = mysqli_query($conn, $sql) or die(“Error in Selecting ” . mysqli_error($connection));
$emparray = array();
while($row =mysqli_fetch_assoc($result))
{
$emparray[] = $row;
}

//write to json file
$fp = fopen(’empdata.json’, ‘w’);
fwrite($fp, json_encode($emparray));
fclose($fp);
?>

KidKamaleon 2022-01-15 00:44:56
So my problem is that the json needs to be enclosed in

{
“data”:

}

KidKamaleon 2022-01-15 00:45:20
I know this is a very stupid question, but how can i achieve that?
2022-01-15 02:28:45
Pm please
ecargsid_eht 2022-01-15 04:46:03
KidKamaleon 2022-01-15 00:45:20
I know this is a very stupid question, but how can i achieve that?

U can make other .json file in the same folder and then use json_decode() function to get the data into a variable in the form of an array

ecargsid_eht 2022-01-15 06:52:04
What’s the request? Sure u can ask here
Vroni 2022-01-15 08:02:25
KidKamaleon 2022-01-15 00:44:56
So my problem is that the json needs to be enclosed in

{
“data”:

}

Hi try JSON_PRETTY_PRINT

KidKamaleon 2022-01-15 08:02:38
Thanx!
Vroni 2022-01-15 08:08:06
KidKamaleon 2022-01-15 08:02:38
Thanx!

After you change show me the output.

2022-01-15 11:14:47
He’ll o
Robin_Siva 2022-01-15 11:16:58
codeslide-56474.jpg
How to get these values from php to save data
KidKamaleon 2022-01-15 11:33:21
Is there a way that Å A Á become the same letter?
KidKamaleon 2022-01-15 11:43:12
But I have to do that for the whole alphabet
KidKamaleon 2022-01-15 11:43:23
I’ve found a really long function though
KidKamaleon 2022-01-15 11:54:31
Lost the link, but I’ve added a really long one that just takes cares case by case
|