If no error msg then where could the problem be from?

|
Ant_Jr 2020-12-20 06:55:07
Mtzare 2020-12-20 06:51:11
<?php
try {
$dsn = “mysql:host=localhost;dbname=apidb”;
$user = “root4”;
$passwd = “”;
$pdo = new PDO($dsn, $user, $passwd);
}catch (exception $ex) {
echo $ex->getMessage();
}

Which file should contain the code?

Ant_Jr 2020-12-20 06:55:18
database.php?
Mtzare 2020-12-20 06:55:33
no create new xyz.php
Ant_Jr 2020-12-20 06:55:46
okay
Ant_Jr 2020-12-20 06:58:01
No error
Ant_Jr 2020-12-20 06:58:52
Mtzare 2020-12-20 06:53:53
after run this . if you get no message . then there is no problem across the server

If no error msg then where could the problem be from?

carolinemms 2020-12-20 06:59:25
Ant_Jr 2020-12-20 06:45:35

the settings in the database such as username and password in .env are the same as the username and password settings on the user account

Mtzare 2020-12-20 06:59:28
if no error means all thing is ok from server.
Ant_Jr 2020-12-20 07:00:25
carolinemms 2020-12-20 06:59:25
the settings in the database such as username and password in .env are the same as the username and password settings on the user account

on “user account”? I don’t understand that point

Mtzare 2020-12-20 07:01:29
your db connection has problem
once again check
dbname(spelling and etc …)
dbuser(spelling and etc …)
dbpassword
carolinemms 2020-12-20 07:01:46
user account on phpmyadmin, that’s what I know
Ant_Jr 2020-12-20 07:03:57
carolinemms 2020-12-20 07:01:46
user account on phpmyadmin, that’s what I know

all are the same

Ant_Jr 2020-12-20 07:05:22
Now even when I import the old db data to the db I just created, I still get the same error msg
GistOf 2020-12-20 07:43:56
carolinemms 2020-12-20 07:01:46
user account on phpmyadmin, that’s what I know

Still struggling with the database?

Ant_Jr 2020-12-20 07:44:54
GistOf 2020-12-20 07:43:56
Still struggling with the database?

Nope @Mtzare helped me resolved it.

GistOf 2020-12-20 07:46:10
Ant_Jr 2020-12-20 07:44:54
Nope @Mtzare helped me resolved it.

I’m asking noname

Ant_Jr 2020-12-20 07:46:48
GistOf 2020-12-20 07:46:10
I’m asking noname

Okay

lambasyulianto 2020-12-20 08:26:37
https://dispusip.jakarta.go.id/dispusip/2020/12/14/lowongan-kerja-tenaga-ahli-bidang-ti-dispusip-tahun-anggaran-2021/

Lowongan Kerja Tenaga Ahli Bidang TI Dispusip Tahun Anggaran 2021dispusip.jakarta.go.id
Bidang Teknologi Informasi Dinas perpustakaan dan Kearsipan Provinsi DKI Jakarta membuka kesempatan bagi Anda untuk bergabung dalam tim Tenaga Ahli kami untuk posisi sebagai berikut Network […]
Azad Akhtar 2020-12-20 09:21:46
Hey gys..
Anybody can help me..
In laravel passport package is not installing..
Why
Sadeq2007 2020-12-20 09:47:16
version of package is not compatible with your laravel version
Azad Akhtar 2020-12-20 09:48:01
But i have tried to install with laravel version 7.8 and 5.8
Azad Akhtar 2020-12-20 09:48:11
Getting same error
Azad Akhtar 2020-12-20 09:48:33
Sadeq2007 2020-12-20 09:47:16
version of package is not compatible with your laravel version

Can you help how can i resolve this issue

Azad Akhtar 2020-12-20 09:49:12
Passport package version 10.1
Dhruv Yada 2020-12-20 10:10:15
Practice English with native speakers on Cambly. Here’s a 10 minute free lesson. Use code: dhruv277
https://www.camb.ly/s/04DG1

English Tutors Online – CamblyCambly
Cambly gives you instant access to native English speakers over video chat, so you can learn and gain confidence!
2020-12-20 10:22:16
hi! want to install Laravel project on users computer locally. it is not a complete. may it give updates from local hosting ?
john_galt_it 2020-12-20 10:28:56
Hi everyone! maybe who knows, I want to use a db transaction, but without DB facade class. How can I do it?
JeevaniSM 2020-12-20 10:45:38
how do we access the json object from AJAX success when its returned as return response()->json([‘response’=>$response]); ?
JeevaniSM 2020-12-20 10:46:03
I need to access $response[‘msg’] in AJAX success.
2020-12-20 11:46:51
success and error is there for you access data in response.
2020-12-20 11:47:05
You to*
JeevaniSM 2020-12-20 12:40:58
2020-12-20 11:46:51
success and error is there for you access data in response.

thanx

JeevaniSM 2020-12-20 12:42:18
another query -for a delete post call by AJAX ( say 5 images in the page and button to delete each one. once we delete one image with click, how to AJAX load the page ( shows only 4 page ) – using Laravel ?
2020-12-20 15:42:15
I dint understand what you want to achieve
sepehrpg 2020-12-20 15:55:18
hi I have a problem with laravel being slow on real host.

each page takes 1 minute to load and the icons do not load proberly.

can anyone help me?

|