39,326 Topics
| |
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 … | |
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 … | |
--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 … | |
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 … | |
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 … | |
Hi its Huzaifa From Pakistan! i am a designer (web and graphic). want to learn **programming** | |
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 … | |
Is there a bog standard IPN for PayPal? They don't seem to supply one, not that I've seen anyway. | |
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 … | |
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 … | |
$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 … | |
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", … | |
hi everyone, i want to display content of div into sweet alert message and here is my code <?php echo '<script> var swal2container = $("#swal2container").text(); setTimeout(function() { swal({ title: "Alert!", text: swal2container, type: "error" }, function() { window.location = "index.php"; }); }, 100); </script>'; ?> <div id="swal2container">test</div> i still cant … | |
$text = "#########################\n"; $text .= "xxxxxxxxxxxxxxxxxxxxxxxxx\n"; $text .= "-------------------------\n"; $text .= " \n"; $text .= "-------------------------\n"; $text .= "Cultivate Orderly Queuing\n"; $text .= "Thank you for your visit\n"; $text .= date("d/m/Y h:i:s")."\n"; $printer = printer_open("EPSON TM-T82II Receipt"); //open printer printer_set_option($printer, PRINTER_MODE, "RAW"); printer_write($printer, $text); printer_close($printer); | |
I want to create button delete all records in tables database with php | |
I have three tables in mysql which make up the dropdown menu, as below code. I would like to get a $ breadcrumb variable with link from this menu. Example: Home / Woman Home / Woman / Clothes Home / Woman / Clothes / Women T-Shirth-2 It is possible?? <div … | |
Write PHP Script to insert data into STUDENT TABLE with fields (roll,first_name,Last_name,city,contact,gender). | |
Hello, I want to use the checkbox to update the status of a row in mysql using php. If it is checked and submitted, the status will change from 'collect' to 'received'. I tried many ways but I am not sure where the problem is :( please help! <?php include(config.php); … | |
I've tried absolutely everything!! How can I flush the output buffer in CodeIgniter from within either my controller or my view?? They use some weird double/fake output buffer or something. Grrr! | |
Hi everyone here, I'm trying to show information about the material according to the year of meeting(is a meeting when they decide to buy a new material) so I use a drop-down list and the information will show according to the year chosen by the user, but it shows the … | |
![Screenshot_(2).png](https://static.daniweb.com/attachments/4/c0a0afbf51cd49a05979817aec55aae8.png) ![Screenshot_(1).png](https://static.daniweb.com/attachments/4/64076d813428db9ea62993455ba6feb8.png) | |
Ci-après le code : <?php $query = "SELECT ownerID,ownername,ownerbureau, is_deleted FROM notes.owner WHERE is_deleted = 0 AND ownername IS NOT NULL ORDER BY ownername,ownerbureau"; // Prépare une requête à l'exécution et retourne un objet $stmt = $pdo->prepare($query); // Exécute une requête préparée $stmt->execute(); $previousGroup =""; $first_group = true; ?> <select … | |
how do you extract all email addresses from a string and put each extracted email address as an element of a simple array? <?php // define and implement your php function here function get_all_emails($text_field) { // ---- Beginning of Green Section --- // create an empty array $emails = array(); … | |
First I would like to say that I do not speak English so sorry if I express myself badly. Hi, I need to know how I can solve this game. "Archers in the Forest". The game consists of a forest represented by a grid, 5x5, 7x7, 9x9 (The user will … | |
The autoloader expected class "App\Controller\CreationClasse" to be defined in file "/gcl/vendor/composer/. ./../src/Controller/CreationClasse.php". The file was found but the class was not in it, the class name or namespace probably has a typo. | |
Is it possible to add scrolling text across the page/video-camera-screen? On an html page, it uses this code: accept="video/*" in this context: <input type="file" name="fileToUpload" id="fileToUpload" accept="video/*" capture="user" onchange="submitForm();"> and when you view the page via mobile, and tap the page, your video camera screen appears. I'm looking to see … | |
I got an empty file whenever i download any file. This is an php file where pateint can download his report by entering his appointment id and password. <?php error_reporting(0); include'include/database.php'; if($_POST['sbutton']) { $appid=$_POST['apid']; $password=md5($_POST['pass']); $result=mysqli_query($conn,"select patientId from appointments where app_id='$appid'") or die(mysqli_error($conn)); $row=mysqli_fetch_array($result); $result2=mysqli_query($conn,"select password from patients where id='".$row['patientId']."'") … | |
Hey i am new in php,javascript,html,css code devloper |
The End.