39,319 Topics
| |
im trying to get PHP operate well with javascript. I have looked on internet and put all the solution inside at once but none work. I want to create a cross-site AJAX request but i cant seem to be able to have session_start() stick. I have this PHP code on … | |
PHP script that provides a basic web-page asking for a date. That date is then used to get the log file for that date from a directory containing many log files (one for each date). If the log file exists, then it is downloaded; otherwise, the script returns with "No … | |
I have been doing web development with PHP for the last few years, and like a lot of people, I have a strong dislike for PHP. I also have done lots of Java development, but never web development. Having a good knowledge of Java, I decided I would try web … | |
Thank you for looking at this problem, details are all below. Below is the code <form style="overflow: hidden;" method="post"> <input type="checkbox" aria-label="Checkbox for following text input" name="kursus[]" value="<?php echo $row['IDKursus']; ?>"> <div class="d-flex justify-content-between mt-3"> <button type="submit" class="btn btn-success" name="daftar_kursus">Daftar Kursus</button> <button type="reset" class="btn btn-primary">Reset</button> </div> </form> if (isset($_REQUEST['daftar_kursus'])) { … | |
I have a programming code problem, I need help to solve the problem. How to explode data array using MYSQL and using NOT IN. The program code is below <form style="overflow: hidden;" method="post"> <div class="table-responsive"> <?php $sql = "SELECT * FROM kursus WHERE KodKursus NOT IN (SELECT kursusList FROM pensyarahkursus … | |
How do I track the source of each user signup for B2B SaaS product? In other words, how do I check from which source the user landed on my website? I need to track for each individual user. | |
hii, i want to ask how to loop this array for menu like in images public $list = [ [ 'id' => 'dashboard', 'text' => 'Dashboard', 'icon' => 'feather-home', ], [ 'id' => 'data_tables', 'text' => 'DataTables', 'icon' => 'feather-layers', 'children' => [ ['id' => 'basic', "text" => "Basic"], ['id' … | |
Hello Php Programmers, I want to open iframes, more than one, to some of my webpages from other webpages. What do I need to be careful off so no crook injects anything malicious on my site or on my visitors' clientsides ? Q1. Which of these attributes, mentioned in the … | |
Hi, first of all let me thank anyone willing to help out with this. Jquery / Ajax update Span or Div by ID without refreshing page <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="refresh" content="60"> <!-- Esta lÃnea hará que la página se actualice automáticamente cada 15 segundos--> <meta charset="utf-8" /> … | |
This works successfully: $wallet = $user->wallet; $upwallet = ($sell_video == 0 && $wallet >= 1 ? 0.5 : 0); $db->rawQuery("UPDATE ".T_USERS." SET `wallet` = `wallet`- '".$upwallet."' WHERE `id` = '".$video->user_id."'"); (when the sell_video amount is 0 and the wallet amount >= 1, deduct 0.5 from the wallet). Works successfully. I'd … | |
This is how I want it to work. 1) First day. It goes to all questions that are asked within last 14 days. 2) It picks each question. Then it RANDOMLY picks 25 users and clicks on "+" to request. 3) It does this for each and every questions asked … | |
I am using gabrielbull/ups-api for validating user address if a user provides an address I verify weather the address is correct or not I am using a got and getting a response which is quite difficult for me to access the data here is what I am getting in return … | |
I need like, http://www.trackcourier.in/ The customer chooses selected courier service and enters tracking id then clicks its redirect to the appropriate courier service website. eg: If tracking id 12345 the redirect link should be https://www.fedex.com/apps/fedextrack/index.html?tracknumbers=12345&cntry_code=in How to do for India courier services? | |
This php statement works successfully: if (empty($error) && $_POST['set_p_v'] == 0 && $wallet >=1) { //echo '<script type="text/javascript"> $("#myModal").modal("show")</script>'; $db->rawQuery("UPDATE ".T_USERS." SET `wallet` = `wallet` - 0.50 WHERE $wallet = $user->wallet"); } as you can see I tried to echo a modal when conditions were met, but no success. No … | |
So I'm new to php but I've managed to create a drop-down that fetches products and displays them, I want to display quantity in the drop-down below it and I have set that up too it fetches other data if the query is modified. The problem is I don't know … | |
Hi, Are these MySql queries (with Php) correct ? Wild Card match. Fuzzy Match query. Imagine there are 7 columns in the Mysql table. $sql = "SELECT * from $tbl WHERE $col_1 LIKE ? OR $col_2 LIKE ? OR $col_3 LIKE ? OR $col_4 LIKE ? OR $col_5 LIKE ? … | |
I want to get the direct link from the file in my other hosting. Is this possible? Or i must buy domain name and upload the files there to get the link? I will use this hosting to upload videos and link to them from my website. This way ill … | |
> Hi, this should be simple but I'm having trouble and need help, please. I just want to update the "expiry" value in the "ctltbl" and relocate depending on the value. The update doesn't happen and it goes to sysnav even when expiry is 0. "ctltbl" is 1 row. <?php … | |
I am trying to insert the current `time()` and `$_SERVER['REMOTE_ADDR'];` into my database I have this code <?php require_once("../core/core.php"); $user_time = time(); $ip = $_SERVER['REMOTE_ADDR']; $sql = "SELECT * FROM userinfo WHERE ip = $ip"; $result = $conn->query($sql); if(!$result) { trigger_error('Wrong SQL: ' . $sql . ' Error: ' . … | |
I want to insert the returned values into an array and after to display random string I have this code by it doesn't return back a random value Inside the vid1,vid2,vid3 columsn there is Video Name text that pointing to the video in my File Manager folder $sql = "SELECT … | |
Hi, I am trying to create a login page using the sql's mysqli_stmt_num_rows() function. Issue is, no matter if I give correct password or incorrect, I always get message 'Incorrect user Credentials'. Why is that ? The details on Mysql Looks like this: id|domain|password 0|gmail.com|373b29d2837e83b9ca5cec712a5985843df271cc Obviously, password is hashed using … | |
Php Programmers, Getting to build a login page using the php's password_verify_() function. Issue is, no matter if I give correct password or incorrect, I always get message 'Incorrect user Credentials'. Why is that ? The details on Mysql Looks like this: id | domain | password 0 | gmail.com … | |
This function is usefull for peoples with a link directory where the links are stored inside a (MySQL) database. The PHP script is easy to use to find out if a reciprocal link still exists on the corresponding webpage. It takes care about the trailing slash in urls and can … | |
iI was searching the online "free/cheap" generators and i found out that they are not so cheap... They advertise the PRO plan for just $3 and when i came to the checkout page it was $1800 So is there other free tool for this job or how do i manually … | |
I have a domain that looks like this when i visit certain link `https://domain.com/model-profile/index.php?name=abbychampion` the site is written in php but i dont want to show this part `index.php?name=` because for SEO purposes and better human reading. Is this possible to hide ? so the link looks like this `https://domain.com/model-profile/abbychampion` | |
Hello all, I have a question I have 2 ids in a url that I want to extract with php, but it doesn't work, can someone help me below an example this is the url: https://iets.eu/verzoekentest/artiest.php?id=48&9.9 $string=$_GET['id']; list($first,$second)=explode('&',$string); | |
Hello Everyone, I am Sanjay Pasari and I am very keen about the php language is there anyone who can help me in learning php? | |
When trying to index the Codeingniter website on Google search console, it says "No: 'noindex' detected in 'robots' meta tag". please help resolve this issue | |
Help me! I have this number 1726.16723958045672098127. How Can I register in my db MySql. Why is the number truncated? | |
I am new to Laravel. I am now able to register users, log them in. But after login, I don't want to display register and login pages. I want to display logout link. This is easy for me with core php. I want something similar like the one below. <?php … |
The End.