39,316 Topics

Member Avatar for
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
72
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
62
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
915
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
49
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
42
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
346
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
129
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
35
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
306
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
204
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
121
Member Avatar for anelethuku88

<?php $sql = "Select * From offices"; $result = mysqli_query($conn,$sql); while ($row = mysqli_fetch_array(result)){ echo $row['name']; } ?> // while ($row = mysqli_fetch_array(result)){ is line 188

Member Avatar for anelethuku88
0
34
Member Avatar for Arunshree

This is an api signing key maker.I want to convert this into php code as this is not able to integrate into my php project. public static String signingkey(String apiAccessKey, String hmacSecretKey, String apiMethod, String clientip, String jsonInput) { String retval = ""; final String HMAC_SHA_512_ALGORITHM = "HmacSHA512"; final String …

Member Avatar for rproffitt
0
189
Member Avatar for nishant52

I want to run PHP files without .php extension. For eg:- If i open myhost/docs/default it should run "default.php". Please tell me how to implement it.

Member Avatar for shalini_8
0
4K
Member Avatar for Sourav05

If I submit the form I want register.php to fetch the proxy and name which I'm submitting from client.php if I don't use action='register.php' then it's printing the proxy I have submitted but not printing the name. But if I use action='register.php' to post my form to register.php then it's …

Member Avatar for rproffitt
0
70
Member Avatar for scrummy

There is a PHP login code but I don't know how to show the error message when the user types wrong datas into the input fields. I used to have a `echo"Wrong username or password!";` But I want to display a DOM element. I don't know how to make it. …

0
3K
Member Avatar for scrummy

I have a page that list all of the users from mysql database. I put a **delete** button in it so you can delete the profile instantly. But I didn't want to delete the user instantly so I put a code that create a modal box when you click onto …

0
273

The End.