Because maybe page refreshed after form submission and the query runs twice?

|
90024 2022-08-11 21:49:34
Do you have the same training in US
Megha 2022-08-12 11:04:32
How to use hash function to direct page back to particular click postion
Megha 2022-08-12 11:05:43
Click on particular number go to next page..while click on back button..shud go back to .php + particular number position
Jay Patel 2022-08-12 14:07:56
Ash 2022-08-08 12:30:27
Code

Give The if condition if(isset[‘post’])
{
Insert query
}

Shoeb99 2022-08-12 16:29:09
codeslide-93106.jpg

Silence0_0_0_0 2022-08-12 18:55:22
codeslide-93122.jpg

luckLoL 2022-08-12 19:36:54
codeslide-93125.jpg

agent346 2022-08-12 23:36:54
Megha 2022-08-12 11:04:32
How to use hash function to direct page back to particular click postion

You mean pagination ?

Megha 2022-08-13 03:25:53
agent346 2022-08-12 23:36:54
You mean pagination ?

No sir… when onclick on item,go to next page,While come back to previous page..shud stay at same position or item location

agent346 2022-08-13 07:08:42
Megha 2022-08-13 03:25:53
No sir… when onclick on item,go to next page,While come back to previous page..shud stay at same position or item location

You can use ‘id’ of element in url to stay at the same position when come back

Megha 2022-08-13 07:10:37
agent346 2022-08-13 07:08:42
You can use ‘id’ of element in url to stay at the same position when come back

Using id..but how does it work?

aayushbest 2022-08-13 07:16:27
Megha 2022-08-12 11:04:32
How to use hash function to direct page back to particular click postion

you can use href

aayushbest 2022-08-13 07:16:36
and add # with some name there
aayushbest 2022-08-13 07:16:45
then you can provide the id
aayushbest 2022-08-13 07:16:47
for it
aayushbest 2022-08-13 07:16:50
for example
aayushbest 2022-08-13 07:17:06
there is top div I set the id as topDiv
aayushbest 2022-08-13 07:17:29
then in the bottom of page I added a hyperlink with href=’#topDiv’
aayushbest 2022-08-13 07:17:32
it will work
agent346 2022-08-13 07:28:03
Megha 2022-08-13 07:10:37
Using id..but how does it work?

First give id to element like

<div id = ‘world’></div>

Then use id in url like

Localhost/index.html#world

Megha 2022-08-13 07:47:18
Still is not working… I hv to give id to tr
Vendanth n 2022-08-13 07:50:27
Are you interested to learn cloud technologies like AWS, Devops,Azure and GCP live course training!
Please let me know for more details
agent346 2022-08-13 07:51:33
Megha 2022-08-13 07:47:18
Still is not working… I hv to give id to tr

Would u mind showing ur code

Rj_sharma1234 2022-08-13 08:02:32
Vendanth n 2022-08-13 07:50:27
Are you interested to learn cloud technologies like AWS, Devops,Azure and GCP live course training!
Please let me know for more details

Yes I m Interested!

makvana_paresh 2022-08-13 09:04:15
codeslide-93215.jpg
Error solve
agent346 2022-08-13 10:06:21
May this page is cached in ur browser
agent346 2022-08-13 10:06:30
Try clearing cache of localhost
u_f_0_1 2022-08-13 12:54:29
I’m trying to insert into my db
u_f_0_1 2022-08-13 12:54:44
But every time I do that I get two rows of data
u_f_0_1 2022-08-13 12:54:49
Once empty and one with the actual data
u_f_0_1 2022-08-13 12:55:00
I’ve been on this for 2days and I don’t know what else to do
capYousef 2022-08-13 13:22:26
Guys, give me an ideas for Laravel projects, graded in the level from a beginner to a professional
Fox 2022-08-13 17:11:22
u_f_0_1 2022-08-13 12:55:00
I’ve been on this for 2days and I don’t know what else to do

show your insert query

ecargsid_eht 2022-08-13 17:13:15
u_f_0_1 2022-08-13 12:54:49
Once empty and one with the actual data

Because maybe page refreshed after form submission and the query runs twice?

Raj 2022-08-13 17:19:58
u_f_0_1 2022-08-13 12:54:44
But every time I do that I get two rows of data

Share code

|