etekumoses 2022-07-15 21:02:59
yeah
etekumoses 2022-07-15 21:03:28
good at least now you get .. so i checked the database and it saved for only one person
monaTec 2022-07-15 21:03:44
You want to select 2 different options and send to db
etekumoses 2022-07-15 21:04:06
something like that
monaTec 2022-07-15 21:04:36
It’s easy
etekumoses 2022-07-15 21:04:55
etekumoses 2022-07-15 20:44:08
just look at this flow i wan to select president , vice, etc and store for each position to the database
monaTec 2022-07-15 21:05:35
The reason is you are passing the same name to 2 different options
monaTec 2022-07-15 21:05:56
Send the code for both inputs
etekumoses 2022-07-15 21:05:56
yeah thats why it was doing that
etekumoses 2022-07-15 21:06:07
should i paste it here ?
etekumoses 2022-07-15 21:06:20
it will be long ππ
monaTec 2022-07-15 21:06:24
Pic yes
monaTec 2022-07-15 21:06:36
etekumoses 2022-07-15 21:06:20
it will be long ππ
Pics
etekumoses 2022-07-15 21:08:58

etekumoses 2022-07-15 21:08:58

etekumoses 2022-07-15 21:09:09
here they are controller code and view
monaTec 2022-07-15 21:09:16
Set the names like this
For president inputs
name=”presd_id”
For vise president inputs
name=”can_id”
etekumoses 2022-07-15 21:10:07
But i did a for each
etekumoses 2022-07-15 21:11:02
as you can see in the view code
etekumoses 2022-07-15 21:11:29
what if there are many positions do i have to do it every time
monaTec 2022-07-15 21:14:11
Let me check the code
etekumoses 2022-07-15 21:22:29
ok please
ansarishameem80 2022-07-15 21:37:00
use an if condition to check which ones require or belong to either of those category i.e president or vice
monaTec 2022-07-15 21:37:31
I see what u did there you printed everything at once. Specify an if () condition statement before getting the candidates.
Check the position Id,
position_id=1 for president
position_id=2 for vice etc
If($pos_id == 1)
Get candidates
Loop through candidate
Pass can_id to inputs
End loop
If($pos_id==2)
Get candidates
Loop through candidate
Pass can_id to inputs, Note:: pass a prefix to ID eg value “vp_$can_id”
End loop
This should different the values for each ID
monaTec 2022-07-15 21:37:53
This technique should solve that issues
etekumoses 2022-07-15 21:44:06
Wonβt it be a manual process now cause I was looking at the positions increasing at a certain time letβs say they reach 20 do I have to keep editing
monaTec 2022-07-15 21:45:49
Share Db with that position, pics
etekumoses 2022-07-15 21:48:33
The db has just Id,name ,
etekumoses 2022-07-15 21:48:58
Which the admin keeps on adding Incase of any
ansarishameem80 2022-07-15 21:55:53
based on which relative column are you even trying to separate all these
etekumoses 2022-07-15 22:02:22
Ok
mitojean1 2022-07-15 22:48:21
i need a laravel developer
mitojean1 2022-07-15 22:48:31
imbox
etekumoses 2022-07-15 22:55:08
ansarishameem80 2022-07-15 21:55:53
based on which relative column are you even trying to separate all these
yes
etekumoses 2022-07-15 22:55:19
its what i want to do
etekumoses 2022-07-15 23:27:23
monaTec 2022-07-15 21:45:49
Share Db with that position, pics
haha i have solved
etekumoses 2022-07-15 23:28:03
hahahaahahha i am super happy do you know what i had to just just do this for the name =candidate_id[{{$position->name}}]
etekumoses 2022-07-15 23:28:30
then in my controller i just do for each loop so meaning i would save for each id
etekumoses 2022-07-15 23:28:43
haha this was pretty simple haha
shubham Patel 2022-07-15 23:41:36
Any one have change existing website like change design and adding new design I will added
shubham Patel 2022-07-15 23:41:59
Inbox me
etekumoses 2022-07-16 00:12:29
thanks for your time and support together with the rest
V K 2022-07-16 01:07:06
The laravel api project is running -react api is running on postman but on the site when requesting data the error appears: console net::ERR_HTTP2_PROTOCOL_ERROR
etekumoses 2022-07-16 02:58:49

Check this out
etekumoses 2022-07-16 02:59:06
check this out π
Richard 2022-07-16 04:49:13
I now believe in stock and Cryptocurrency trading after withdrawing my profit through the help of @Trader_Dinashabani I really appreciate all her effort and support thanks to her. Reach out to her, and start a new life of success with profitability. Tap here
β¬β¬β¬
@Trader_Dinashabani
β¬β¬β¬
@Trader_Dinashabani
Monzer Omer 2022-07-16 08:46:08
https://youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p
Django Tutorials – YouTube – YouTube
etekumoses 2022-07-16 11:24:53
$check_pass = User::where([’email’ => $request->email])->where(‘password’,null)->first();
if($check_pass){ do }else throw error
if($check_pass){ do }else throw error
etekumoses 2022-07-16 11:25:32
quick question team i am trying to check if the password filled is already filled by the user of that email is this correct
etekumoses 2022-07-16 11:26:55
if true then perform the act else throw error