39,316 Topics

Member Avatar for
Member Avatar for helloworld2021

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 …

Member Avatar for jeet_4
1
2K
Member Avatar for الناقد
Member Avatar for radhika_3

$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);

Member Avatar for rproffitt
0
152
Member Avatar for Channel_5
Member Avatar for Adolfo_1

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 …

Member Avatar for Adolfo_1
0
460
Member Avatar for Madhvi_1

Write PHP Script to insert data into STUDENT TABLE with fields (roll,first_name,Last_name,city,contact,gender).

Member Avatar for Dani
0
200
Member Avatar for potato_1

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); …

Member Avatar for Dani
0
1K
Member Avatar for Dani

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!

Member Avatar for Dani
1
4K
Member Avatar for Fedwa

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 …

Member Avatar for Dani
0
6K
Member Avatar for tanpuia

![Screenshot_(2).png](https://static.daniweb.com/attachments/4/c0a0afbf51cd49a05979817aec55aae8.png) ![Screenshot_(1).png](https://static.daniweb.com/attachments/4/64076d813428db9ea62993455ba6feb8.png)

Member Avatar for Dani
0
55
Member Avatar for David_208

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 …

Member Avatar for Dani
0
94
Member Avatar for wackyal

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(); …

Member Avatar for Dani
0
3K
Member Avatar for Facundo_3

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 …

Member Avatar for rproffitt
0
81
Member Avatar for ndecky

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.

Member Avatar for rproffitt
0
19
Member Avatar for ChrisJ

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 …

Member Avatar for rproffitt
0
188
Member Avatar for pawandeep436

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']."'") …

Member Avatar for Dani
0
42
Member Avatar for lalamohan412
Member Avatar for apu_923

Hello every one I'm new here I need your help I'm newbie in PHP and littlebit understand on the PHP so I need your help I'm going to make a page of user account setting in which user upload his/her image update his/her name email and also change his password. …

Member Avatar for Dani
0
73
Member Avatar for Asish_1

Hello, I have set image expiry in .htaccess file, but it's not working; might be because cloudflare.com hardly let it work. Most viable solution in such case is to declare in php header, but I don't know the process. Will you please help me out? Regards, Asish

Member Avatar for Dani
0
55
Member Avatar for rosh988

<?php $firstname = $_POST{'firstname'}; $username = $_POST{'username'}; $emailaddress = $_POST{'emailaddress'}; $password = $_POST{'password'}; $contact = $_POST{'contact'}; //Database connection $conn =new mysqli('localhost','root','','registration'); if ($conn->connect_error) { die('connection failed : '.$conn->connect_error) }else{ $stmt = $conn->prepare("insert into users(firstname, username, emailaddress, password, contact) vlaues (?, ?, ?, ?, ?)") $stmt-> bind param("ssssi",$firstname, $username, $emailaddress, $password, …

Member Avatar for Dani
1
38
Member Avatar for ChrisJ

I am trying to modify a existing web script's Upload Form where, currently you choose a Category...etc. and Submit. When a Category is chosen, I'd like another dropdown list of choices to display. Here is the code currently: <div class="form-group"> <label class="col-md-12" for="category_id">{{LANG category}}</label> <div class="col-md-12"> <select name="category_id" id="category_id" class="form-control"> …

Member Avatar for Dani
0
29
Member Avatar for Sathyaprakash

I have added a custom code to validate the phone numbers to be 10 digits on checkout fields. Here is the code add_action('woocommerce_checkout_process', 'phone_number_validation'); function phone_number_validation() { global $woocommerce; if ( ! (preg_match('/^[0-9]{10}$/D', $_POST['billing_phone'] ))){ wc_add_notice( "Incorrect Phone Number! Please enter valid 10 digits phone number" ,'error' ); } } …

Member Avatar for Dani
0
263
Member Avatar for anneseo08

I am currently creating a simple invoice page. But I am also having a hard time retrieving and displaying the price and description of items selected by the userfrom my dropdown (dropdown is populate from database). My knowledge of jquery and php were not that deep yet. I hope someone …

Member Avatar for k99rs
0
51
Member Avatar for Ed_279

I run the bridge game on a Monday evening and just recently I brought in a card dealer so the computer can select the cards and deal them into 4 hands. 20 sets of these hands and we can play for the evening. My problem is putting the dealt card …

Member Avatar for Dani
0
113
Member Avatar for Ed_279

I run the bridge game on a Monday evening and just recently I brought in a card dealer so the computer can select the cards and deal them into 4 hands. 20 sets of these hands and we can play for the evening. My problem is putting the dealt card …

Member Avatar for Dani
0
56
Member Avatar for RC_820

i have function for combine number like this function combin($mainArray, $size, $combinations = []) { if (empty($combinations)): $combinations = $mainArray; endif; if ($size == 1): return str_replace('-','',$combinations); endif; $newCombination = array(); foreach ($mainArray as $key => $val): foreach ($combinations as $char): if(in_array($val, explode('-', $char))): continue; endif; $newCombination[] = $val . …

Member Avatar for Dani
0
51
Member Avatar for ibrohim2808

$ array = array ('Main', 'Photo Gallery', 120, 'Rustam', 'Services', 'Lesson 12', 'Link'); This array also contains menu items for the web page. Describe the required menu items in HTML lists.

Member Avatar for Dani
0
41
Member Avatar for derick_3

<?php $pdo = new PDO('mysql:host=localhost;port=3306;dbname=crud', 'root', ''); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $title = $_POST=['title']; $description = $_POST = ['description']; $price = $_POST = ['price']; $date = date('Y-m-d H:i:s'); $products = $statement = $pdo->prepare("INSERT INTO products (title, image, description, price, Create_date) VALUES (:title, :image, :description, :price, :date)"); $statement->bindValue(':title', $title); $statement->bindValue(':image', ''); $statement->bindValue(':description', $description); …

Member Avatar for Dani
0
37
Member Avatar for foumzeur
Member Avatar for Maulana_1

#include<stdio.h> main() { int A[9]={6,3,1,5,7,4,2,8,9}; int Temp, I, J, K; printf("sebelum \n"); for(I=0; I<=9-1; I++) { printf(" %d ", A[I]); } for(K=0; K <= 9; K++) { J = K; for (I=K+1; I<=9-1; I++) { if (A[I] < A[J]) J = I; } Temp = A[J]; A[J] = A[K]; A[K] …

Member Avatar for rproffitt
0
89

The End.