39,321 Topics

Member Avatar for
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
57
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
Member Avatar for andreal

ScanningI'm looking forward to implement a typical "nav" section for the articles in my website. Something like this: **Folder > SubFolder > SubSubFolder** To this end, I think that the best way is to create a database of two tables. The **first** one is called "*Category*": id - title - …

Member Avatar for Dani
0
73
Member Avatar for minangi

![auto_submit.PNG](https://static.daniweb.com/attachments/4/ec1bc5fc20ffa5d3d5e1fab362a6b7f0.PNG) When next row is filled with a data, then the precided row auto submit. In PHP and JQUERY.

Member Avatar for rproffitt
0
33
Member Avatar for Ąfnąn_1

Create database with the name of "university". You have only two table with the name of "signup" and "student". In Student table you will collect all data of student like cms, name, address ,age, mob and cnic. Perform Multiple Task which are given below. 1) Create Login and Signup page …

Member Avatar for rproffitt
0
44
Member Avatar for imtiaz_1

Dear sir any one help me on this code . inserting mutilple data in mysql table but i receive only 1 data row include("admin/db_connect/data_connect.php"); session_start(); //session_destroy(); if(isset($_POST['complete_order'])) { $_SESSION['cart'][]=array('quantity' => $_POST['quantity'],'fast_image' => $_POST['fast_image'],'menu_name' => $_POST['menu_name'],'price' => $_POST['price']); foreach($_SESSION['cart']as $keys => $val) { $implode=implode(",",$val); } $insert_data="INSERT INTO `customer_order` (`quantity`, `fast_image`, `menu_name`, …

Member Avatar for Dani
0
64
Member Avatar for codeblock

Hi all I have uncountered a problem which has me totally confused. The problem is I have created a website with a login form. Everything so far has been working fine. but then when I try to login all of a sudden I’m hit with a "Object not found! The …

Member Avatar for Dani
0
20K
Member Avatar for Magic8Computing

I have some crystal reports that i would like to use PHP in order to execute the reports and then either view the reports in the browser as is or to generate PDF files. Does anybody know how to do this and what is required to be installed on the …

Member Avatar for rproffitt
0
953
Member Avatar for madhan

Hi - I am working with a windows OS created wordpress plugin unit testing code written as below <?php class Test_WP_Simple_Plugin extends WP_UnitTestCase { public function test_constants () { $this->assertSame( 'wp-simple-plugin', WPSP_NAME ); //Error line $url = str_replace( 'tests/phpunit/tests/', '', trailingslashit( plugin_dir_url( __FILE__ ) ) ); $this->assertSame( $url, WPSP_URL ); …

Member Avatar for rproffitt
1
50
Member Avatar for helloworld2021

Hi everythings, I have a question regarding on disabling today date on datepicker, i got this code from internet and it seem like working , but then i realised its starting disable today date from 08:00 am onward and not disable from 12:00 am, seems like its has problem with …

Member Avatar for rproffitt
0
43
Member Avatar for matei_

Hello DaniWeb Community, I am a newbie in PHP, but I tried to create a plugin for my CRM platform using API to get informations, but I get some errors: **Notice: Undefined index**. [Click here for an image with the errors.](https://i.gyazo.com/6926d234978766542f544ed1e31e465c.png). Here are the lines where I got the errors: …

Member Avatar for lalamohan412
0
138
Member Avatar for kermit1422

OMEN Computer- The OS is installed on a NVMe SSD 256GB. I purchased a new NVMe SSD 2TB. Now when I switch them out I will lose the OS. I also Purchased a Windows 10 Home. Should I first put my win 10 on a different drive then transfer it …

Member Avatar for rproffitt
0
24
Member Avatar for Hamsterking

Hello i'm working on a small project that i have to retrieve movies data from a json API, then save the result into a csv. i'm able to display data with php eco but when i'm trying to write csv file i get the following Warning: array_keys() expects parameter 1 …

Member Avatar for pritaeas
0
351
Member Avatar for matei_

Hello, As the title says, my question is: how I can get the values for specific ID? For example, my plugin creates a PDF that automatically fills in with information that I get using API from my CRM platform. So, what I am trying to do now, is that in …

0
132
Member Avatar for Marco_18

Hello, I created a function to show data related to a database called skede with fields "name" "surname" "age" in a page called vive.php This is the code function mostraskede(){ $ricercaskede = query('SELECT * FROM skede ORDER BY id LIMIT 1 OFFSET 0'); conferma($ricercaskede); while ($row = fetch_array($ricercaskede)){ //echo $row['titolo']; …

0
36
Member Avatar for allambeg123

Take a relation and apply Primary horizontal fragmentation. define all the step that followed in PHF and also find the correctness of the fragmentation.

Member Avatar for Dani
0
21
Member Avatar for rutu9392
Member Avatar for Siddikulla
Member Avatar for youssef_8
Member Avatar for Hafiz_6

<?php if(isset($_POST['submit'])){ $kategori = $_POST['kategori']; $nama = $_POST['nama']; $harga = $_POST['harga']; $deskripsi = $_POST['deskripsi']; $status = $_POST['status']; $filename = $_FILES['gambar']['name']; $tmp_name = $_FILES['gambar']['tmp_name']; $type1 = explode('.', $filename); $type2 = $type1[1]; $newname = 'produk'.time().'.'.$type2; $tipe_diizinkan = array('jpg', 'jpeg', 'png', 'gif'); if(!in_array($type2, $tipe_diizinkan)){ echo '<script>alert("Success")</script>'; }else{ move_uploaded_file($tmp_name, './produk/'.$newname); } } ?> **Error …

Member Avatar for rproffitt
1
320
Member Avatar for RC_820

hello all my name is rico, i want make some app like can combine number from input example : i have 4 variable like this $num1 = 96; $num2 = 20; $num3 = 19; $num4 = 37; so how can i get the result like this 9213 9217 9293 9297 …

Member Avatar for RC_820
0
161
Member Avatar for GermanPsycho

Hey, I'm trying to program a group-request system and now I'm struggling a little bit with the code. Well, I'll try my best to explain what I'm trying to do. ![requests.png](https://static.daniweb.com/attachments/4/c8beed25ef34924bc77f3007728ad5d3.png) I want, that when I click the accept button, ONLY the name from the person next to the accept …

Member Avatar for Dani
0
207
Member Avatar for Joseph_53

When using checkdnsrr I get an Internal Server error. I am using PHP RPM on IBM i. Has anyone seen this error and could give me information on how to address it? <?php $domain="w3schools.com"; if(checkdnsrr($domain,"MX")) { echo "Passed"; } else { echo "Failed"; } ?> Error received when running scrip: …

Member Avatar for Dani
0
46
Member Avatar for blackd.t

I would like a help from someone who knows how to ... I want a PHP Search that does sarch for a specific keyword or something inside a directory with full of .txt files and gives the output of all Searched files with matched words with a Link where you …

Member Avatar for Dani
0
26
Member Avatar for annya

Hi, My insert funcation is added below, as in php 5.6 i was able to post array data to database using below funcation but in php 7 it was not working i spend hours to find an solution but nothing is working. Insert funcation public function insert($table, $data) { $formattedVals …

Member Avatar for annya
0
65
Member Avatar for Rico_2

I want to create a login system in Codeigniter 4 like this so when the user has logged in on 1 browser / other device, and tries to log back in on another browser / other device then for the first login he will be logged out automatically examples like …

Member Avatar for rproffitt
0
122

The End.