I did this thing, but I just want to show you the information of user who is logged on, how do I do that in php pure?

|
maudrico 2021-05-26 04:39:49
https://youtu.be/GWyiGO5u_hE
benjamin Junior 2021-05-26 06:43:00
laravel_discuss-82690.jpg

benjamin Junior 2021-05-26 06:43:11
Hello everyone, I am a novice in Laravel and I encounter a problem that I can not solve, please help me .
benjamin Junior 2021-05-26 06:43:21
laravel_discuss-82692.jpg

SureshLaraDev 2021-05-26 06:54:09
benjamin Junior 2021-05-26 06:43:21

share the screenshot of controller for this view

benjamin Junior 2021-05-26 06:55:59
SureshLaraDev 2021-05-26 06:54:09
share the screenshot of controller for this view

ok no problem

benjamin Junior 2021-05-26 06:57:04
laravel_discuss-82695.jpg

SureshLaraDev 2021-05-26 07:00:59
check if ur view directory is correct
benjamin Junior 2021-05-26 07:03:07
ok, I will make the capture we will check together
benjamin Junior 2021-05-26 07:04:25
laravel_discuss-82698.jpg

Shri 2021-05-26 07:04:41
Terminates execution of the script in laravel what we use in blade
benjamin Junior 2021-05-26 07:06:58
Shri 2021-05-26 07:04:41
Terminates execution of the script in laravel what we use in blade

To tell the truth I am a novice and I don’t understand your reasoning (I start by learning the language with a CRUD system)

Shri 2021-05-26 07:08:37
Shri 2021-05-26 07:04:41
Terminates execution of the script in laravel what we use in blade

I am asking questions 🤦….

benjamin Junior 2021-05-26 07:10:10
Shri 2021-05-26 07:08:37
I am asking questions 🤦….

Excuse me 😂😂

Shri 2021-05-26 07:10:44
Yeah🤦😂
benjamin Junior 2021-05-26 07:11:50
Shri 2021-05-26 07:04:41
Terminates execution of the script in laravel what we use in blade

laravel_discuss-82705.jpg

benjamin Junior 2021-05-26 07:14:02
the capture did not answer your question?
SureshLaraDev 2021-05-26 07:15:03
benjamin Junior 2021-05-26 07:14:02
the capture did not answer your question?

dude..that question is not for you. 🤣🤣

SureshLaraDev 2021-05-26 07:15:41
that’s a diff ques.
SureshLaraDev 2021-05-26 07:15:56
nothing related to ur issue. :DDDDDDDDD
2021-05-26 07:29:46
laravel_discuss-82712.jpg
When i submit data to save in db this error comes
Здравствуйте 2021-05-26 07:37:06
2021-05-26 07:29:46
When i submit data to save in db this error comes

check the class name, file name or import path

2021-05-26 07:38:25
Здравствуйте 2021-05-26 07:37:06
check the class name, file name or import path

Which class

alaa_dev 2021-05-26 07:46:41
hi guys i have form When I add the information I want to go to another page to watch it . I did this thing, but I just want to show you the information of user who is logged on, how do I do that in php pure ??
alaa_dev 2021-05-26 07:47:35
I’ve done a number of ways, for example :
alaa_dev 2021-05-26 07:47:51
$sql = “SELECT * FROM users WHERE username = ‘”.$_SESSION[‘username’].”‘”;
alaa_dev 2021-05-26 07:48:54
But I didn’t work with me
alaa_dev 2021-05-26 07:51:11
i try another method like this : if(isset($_SESSION[‘username’])) {
echo “<tr>”;
echo “<td>”.$price.”</td>”;
echo “<td>”.$cnmae.”</td>”;
echo “<td><input type=’submit’ value=’Delete’ name=’delete’/></td>”;
echo “</tr>”;
}
else { echo ‘not logged yet’; }
alaa_dev 2021-05-26 07:51:52
do u have any idea what right method to do this ??
Prem Soni 2021-05-26 07:52:05
alaa_dev 2021-05-26 07:51:11
i try another method like this : if(isset($_SESSION[‘username’])) {
echo “<tr>”;
echo “<td>”.$price.”</td>”;
echo “<td>”.$cnmae.”</td>”;
echo “<td><input type=’submit’ value=’Delete’ name=’delete’/></td>”;
echo “</tr>”;
}
else { echo ‘not logged yet’; }

you are using auth in laravel

alaa_dev 2021-05-26 07:52:30
Prem Soni 2021-05-26 07:52:05
you are using auth in laravel

no i using php pure

Prem Soni 2021-05-26 07:52:38
ok
Prem Soni 2021-05-26 07:53:32
means you project is in laravel or pure php?
alaa_dev 2021-05-26 07:53:43
pure
Prem Soni 2021-05-26 07:53:47
ok
|