39,316 Topics

Member Avatar for
Member Avatar for forgot

> Hi guys, I blinked and got lost. All I want to do is copy Payfile to Pmtfile and then update records in Payfile that have been paid(amtpaid !=''). The update doesn't happen and the insert-note comments at botom of post. <?php $link = mysqli_connect("localhost", "root", "", "prerentdb"); // Check …

Member Avatar for patk570
0
75
Member Avatar for Rishabh_8

I have learning this from youtube,php quiz using ajax. I am facing problem when click on next button after last question it is not redirecting on final page. Please help me to fix this. I think responseText not working. Question.php page to where i display question <script type="text/javascript"> var questionno="1"; …

0
86
Member Avatar for Bright_4

From the below, how can I make the variable $new_status recognisable within those brackets? $sendData = '{ "messages" : [ { "content" : "Your order is $new_status.", } ] }'; Problem: The above sends out text message successfully on status update, but the variable $new_status does not get updated. I …

Member Avatar for Dani
0
58
Member Avatar for oladiti4real

How can I build a responsive mobile app with PHP as a web developer, I'm a newbie in web development please and I wish to maintain apex growth in this field

Member Avatar for Dani
0
152
Member Avatar for Bright_4

I need to add variable called $new_status, but its not being recognised on php, any suggestions. $sendData = '{ "messages" : [ { "content" : "Your order is $new_status.", } ] }';

Member Avatar for patk570
0
86
Member Avatar for Hidayah_1

Hi. I got some problem. I want to search data from 2 tables in database and display the result based on the search value. For example, I search employee id number, it will search the employee id number in table 1 and table 2. If the data exist in either …

Member Avatar for pritaeas
0
62
Member Avatar for Ahmed Raza_1

I want to know the logic of how to creat a program for converting a string number to a sentence, each number represent a alphabet, number are seperated by space. and words in a sentence are seperated by Plus + character. 1=A 2=B ...... 26=Z and the example input is …

Member Avatar for rproffitt
0
33
Member Avatar for ianhaneybs

I have a database that has columns called start date, start time, end date and end time and want to be able to output the difference so it shows the total time spent per project. Below is the code I have but it shows the error PHP Fatal error: Uncaught …

Member Avatar for lps
0
185
Member Avatar for Hayic

<?php $name = $email = $password = $repeatpass = ''; $name = $_POST['name']; $email = $_POST['email']; $password = $_POST['password']; $repeatpass = $_POST['repeatpass']; $con = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); $sql = "INSERT INTO user-regis (name, email, password, repeatpass) VALUES ('$name', '$email', '$password', '$repeatpass')"; $result = $con->query($sql); if (!$result) { header("Location: …

Member Avatar for Dani
0
97
Member Avatar for Hayic

<?php require_once './includes/config.php'; $con = new mysqli(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME); $sql = "SELECT * FROM contact-info"; if($result = $con->query($sql)){ while($row = $result->fetch_object()){ //display record 1 by 1 printf(' <tr> <td>%s</td> <td>%s</td> <td>%s</td> <td>%s</td> <td>%s</td> </tr> ',$row->id, $row->name, $row->email, $row->phone, $row->comment); } } printf(' <tr> <td colspan="5"> %d record(s) returned. [ <a href="insert-student.php">Insert Student</a> …

Member Avatar for rproffitt
0
28
Member Avatar for Bright_4

HI, CAN I GET SOME HELP RE-WRITING THE BELOW. CODE 2 REFERENCES CODE 1 USING $sendData VARIABLE. I WOULD LIKE TO REMOVE CODE 1 COMPLETELY. CAN I GET HELP WRITING CODE 1 INTO CODE 2, PERHAPS IN FORM OF ARRAY? CODE 1 $sendData = '{ "messages" : [ { "content" …

0
32
Member Avatar for faithcr4

Hello please help me troubleshooting the problem below. I got the 500 Internal Server Error in My WP Site>Dashboard>Appearance>Custom.. Pleaaaaase. Below is the error shows when i check the document on Cpanel>File Manager>home3/faithcr4/public_html/error_log... [07-Aug-2021 07:15:40 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at …

Member Avatar for rproffitt
0
32
Member Avatar for forgot

> Hi, This little program checks to see if the contract is valid. I have a database field "expiry" (int 3) from which 1 is subtracted when run. As long as the expiry is above 0 I want to redirect to "sysnav.html", otherwise I want to redirect to "expiredpage.html". I …

Member Avatar for rproffitt
0
24
Member Avatar for Suraj_45

i need to show the image displayed in database but it shows default image <?php $link = new PDO("mysql:host=localhost;dbname=campusdrive", "root", ""); $link->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $Sql = "SELECT Image FROM student_form WHERE Sessionid = :Sessionid"; $stmt = $link->prepare($Sql); $stmt->bindParam(":Sessionid", $sessionid, PDO::PARAM_STR); $sessionid = session_id(); $stmt->execute(); $count = $stmt->fetchAll(); if($users = $stmt->fetchColumn()){ echo …

Member Avatar for Dani
0
120
Member Avatar for Issah_1

[ { "": { "amount": "152870", "kwh": "0", "numberOfPay": "54" } }, { "AZARE Region": { "amount": "119500", "kwh": "0", "numberOfPay": "45" } }, { "BAUCHI Region": { "amount": "944473", "kwh": "0", "numberOfPay": "376" } }, { "BUKURU Region": { "amount": "494000", "kwh": "0", "numberOfPay": "138" } }, { "GBOKO …

Member Avatar for pritaeas
0
19
Member Avatar for ianhaneybs

I am trying to output data for selected dates and think I have managed to do the sql query but it's currently not outputting the total amount, below is what it is currently outputting I am looking for the following From To Expense Category Expenses Total 01/01/2018 31/12/2018 Accounting Costs …

Member Avatar for michel.cote
0
116
Member Avatar for Andrea_25

Hi guys. I have just created an intranet in my online store and I'm new at programming so need some help. I'm developing a system that makes this possible: when a user registers, the database detects that they are already a customer who has bought previously and it makes their …

Member Avatar for Dani
1
83
Member Avatar for complete

What are the pros and cons of plain PHP or Classic ASP? PHP and Classic ASP are server-side scripting languages. What is wrong with having a website written in this instead of the trendy JavaScript Frameworks like React, Angular etc.? If memory serves me correctly, there is an issue with …

Member Avatar for Dani
1
126
Member Avatar for pawangupt

Hi, I am developing one web application. In which I want to display pdf file on the web browser by selecting the pdf file or any fixed pdf file. so, if anyone knows then please tell me the script code so will develop it for my web application. i will …

Member Avatar for akeane
0
188
Member Avatar for Bile

--Hi DaniWeb. I have been doying bulk data Uploads from Excel Sheet to MySql data base and hence thought that I may need the reverse of this process and so Export MySql Tables into Excel Format for Backup purposes (I also will be happy for a better suggestion for a …

Member Avatar for juniperoites
1
4K
Member Avatar for ianhaneybs

I have some php code on view invoice and it's getting all the data I need to from three database tables but for some reason it's not getting the data for one specific column and unsure why I have done a echo sql and it is echoing the sql query …

Member Avatar for Schol-R-LEA
0
118
Member Avatar for The Real Cedric

Trying to have a script built that locks the content until user refers a friend to signup, then they are granted access. They have a set amount of time, as a timer counts down or their account is deactivated. Its for a game we are creating and want to use …

Member Avatar for rproffitt
1
219
Member Avatar for Raja Huzaifa

Hi its Huzaifa From Pakistan! i am a designer (web and graphic). want to learn **programming**

Member Avatar for Dani
0
261
Member Avatar for jai0007dev

When I run below code, I am getting this error: Severity: error --> Exception: Attempt to assign property "lottery_draw_id" on null C:\xampp\htdocs\lsnew\application\controllers\Admin.php 396 winner_list_temp is declared but how come it becomes null? Code is here: public function lottery_prize_winners_list() { extract($_POST); if (isset($drawid)) { $prize_list = $this->db_model->get_lottery_prize_winners_list($drawid); $currency_abbr = 'USD'; $winner_list_temp …

Member Avatar for Schol-R-LEA
0
82
Member Avatar for Amany_1
Member Avatar for retrocascade

Is there a bog standard IPN for PayPal? They don't seem to supply one, not that I've seen anyway.

Member Avatar for Dani
0
39
Member Avatar for Coderunner

Hello helpers, I'm having a problem with sorting (3rd column) a flat file. flat file looks like this: 20210103|~|3 jan 2021|~|Harold|~|m| 20210121|~|21 jan 2021|~|Elly|~|f| 20210213|~|13 feb 2021|~|Silvy|~|f| 20210330|~|30 mrt 2021|~| George|~|m| Now I want to save it in a new flat file sorted on the **3rd column** Result: 20210121|~|21 jan …

Member Avatar for Coderunner
1
142
Member Avatar for patk570

Hi Everyone, I am looking for a way to add a username to confirm a seat choice for certain weeks, I already have the PHP Code to confirm the seat when choosing but on the image i would like for it to display the username so other people know its …

Member Avatar for rproffitt
0
1K
Member Avatar for ramyayarrapothu

$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://livehealth.solutions/getAllTestsAndProfiles/?token=3f115cd0-c79b-11eb-b07b-0aa43715764a', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', )); $response = curl_exec($curl); curl_close($curl); $resArr = json_decode($response); echo "<pre>"; print_r($resArr); echo "</pre>"; **displays the list of array values... as shown …

Member Avatar for Dani
0
1K
Member Avatar for r4ds

Hello. I have this code. I want to show 'correcto' when 'response' is 'ola', but not working. I have this procedure to do it fails: -Change php response (echo) to number,, `echo "ola";` to `echo "25";` -Change javascript,, `if(response == 'ola')` to `if(response == 25)` <script src="jquery-3.5.1.min.js"></script> $.ajax({ type: "POST", …

Member Avatar for r4ds
0
90

The End.