Help with simple code - 5 min job

終了済み 投稿 3年前 着払い
終了済み 着払い

I need help with a piece of code im writing

In short, there is a variable in my php code that is set from reading a database, i need this variable in my php page to be updated every 1 second without refreshing the page

Currently, the website will show a loading page, i want the loading page to be shown depending on a database results

So to explain more:

I have already made the database, connected everything,

When the user gets onto the loading page, their status in the database table is set to "1"

i want this loading page to be shown until their status in the database table is changed.

If it is changed to anything that is NOT "1" then it will redirect to another page

Im guessing i need to use JS / AJAX to run this script every second:

$query2 = "SELECT * FROM panel WHERE user = '$userID' ";

$result = mysqli_query($conn, $query2);

while($row = mysqli_fetch_array($result)){

$status = $row['status'];

}

but how can i do this?

PHP MySQL JavaScript AJAX ソフトウェアアーキテクチャ

プロジェクトID: #26805885

プロジェクトについて

17個の提案 リモートプロジェクト アクティブ 3年前

17人のフリーランサーが、平均£15 で、この仕事に入札しています。

BaNgan

Hi there You can trigger the ajax via jquery in your main page Would you mind to show me all the code you are working? Thanks Ngan

£25 GBP 1日以内
(454件のレビュー)
7.8
shihan033010

Hi I can complete the functionality using ajax. Please accept the bid and create the milestone. I am ready to start the project now. Thanks Shihan

£10 GBP 1日以内
(340件のレビュー)
6.9
julienmoutier

Hi, I'm expert in this kind of script and available immediately. I can do it by the next few minutes. Contact me to discuss and start. Thanks

£20 GBP 1日以内
(85件のレビュー)
6.4
victorciobanu999

Hi, I am interested in it. Looking forward to your response. Thanks.

£15 GBP 1日以内
(35件のレビュー)
6.2
psharma3368

Hello sir, We can use jquery ajax to check this variable in database without refresh page and on change this variable we can redirect to other page. please text me so we can start work. thanks

£20 GBP 1日以内
(53件のレビュー)
5.6
shanymathew

Hello Sir am an expert i can do this without refreshing page and i will explain it to you please message me i will do Thank You

£10 GBP 1日以内
(70件のレビュー)
5.5
brahmaniinfoline

Hello sir, I can make your script. I can work right now. I have a 10 years of experience as PHP web developer. I will give you best quality of work. Waiting for your reply. Thank you.

£20 GBP 1日以内
(33件のレビュー)
4.8
fadeevdoma

Hello, I can do it in an hour. I am PHP, Javascript expert and I can update the page following DB change using AJAX. Please contact to me and get result in an hour. Thank you.

£20 GBP 1日以内
(10件のレビュー)
4.9
tomas0427aw

Hello, I could help you out with writing AJAX request that will be checking for status in the database. Looking forward to hearing from you!

£14 GBP 1日以内
(29件のレビュー)
5.1
SKsaurav271989

I am a full stack developer and i have 10 year experience in the development and designing. i am working in WordPress: Theme development, plugin Development, theme customization , plugin custmization, Api development, もっと

£15 GBP 7日以内
(0件のレビュー)
0.0
Ranavikas36

Hi there, I am expert in php and help you to complete your script in php with js and ajax call for your script. Please ping me. I will start right now. Waiting for your response. Thanks,

£15 GBP 1日以内
(0件のレビュー)
3.0
ibsk8r

Hi. I will do it for you as well as explain how to do it so you could do it yourself in future projects. Happy to help! Nisan.

£10 GBP 1日以内
(0件のレビュー)
0.0
mitnets

I will help you complete it... Using vanilla JS and php

£14 GBP 1日以内
(0件のレビュー)
0.0
sushmiputtur

I am a php developer. i have experience in php,mysql,mongo db,java script and jquery with codeigniter and symfony framework.

£15 GBP 7日以内
(0件のレビュー)
0.0