39,326 Topics

Member Avatar for
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
328
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
162
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
211
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
48
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
66
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
124
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
194
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
72
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
290
Member Avatar for kumi2021

Hi, I am a amateur here. My web developer went awol and I have an issue; my website wont load at all. **Error: PHP Fatal error: Uncaught Error: Call to undefined function mysql_pconnect** <?php if(!session_id() || session_id() == '') session_start(); # FileName="Connection_php_mysql.htm" # Type="MYSQL" # HTTP="true" //$hostname_quantum = "xxxxx.co.za"; //$hostname_quantum …

Member Avatar for pritaeas
0
867
Member Avatar for tun712

Need web hosting which one to choose? GoDaddy, Bluehost, JaguarPC or else? Is there any cost effective cloud hosting option available?

Member Avatar for Dani
0
77
Member Avatar for xuexue

[code=php] while($row = mysql_fetch_assoc($resultParam_pp)) { $lblParameter_pp = $row['ParameterName']; $lblParameterSeq_pp = $row['Parameter_seq']; echo "<tr>"; echo "<form action = 'http://10.237.102.158/SPC_Stations/Grinding/spc_grd_02.php' method = 'post'>"; echo "<td align = left>"; echo "<input type = 'radio' name = 'paramSelect' value = '$lblParameter_pp' checked><font face = Arial size = 2>" . $lblParameter_pp; echo "<input type = …

Member Avatar for David_190
0
2K
Member Avatar for IbtiSsam

**please help me** Warning: Cannot modify header information - headers already sent in C:\xampp\htdocs\gauto-preview\gauto-preview\login(1).php on line 19 <?php ob_start(); session_start(); require_once('connexion.php'); error_reporting(E_ALL | E_WARNING | E_NOTICE); ini_set('display_errors', TRUE); if(isset($_POST['login'])){ $username=$_POST['username']; $motpasse=$_POST['motpasse']; if($username&&$motpasse){ $query="SELECT*from user where username='$username' AND motpasse='$motpasse'"; $query_run=mysqli_query($conn,$query); $rep = mysqli_fetch_assoc($query_run); if($rep!=''){ $_SESSION['id_user'] = $rep['id_user'];} $row=mysqli_num_rows($query_run); if($row==1){ flush(); header('Location: …

Member Avatar for rproffitt
0
101
Member Avatar for dado.d

I've been working in various companies and I've seen different reasons for using PHP interfaces. I would like to hear your opinion, what do you think **in which cases** should we use PHP interfaces, the reason behind using interface?

Member Avatar for pritaeas
0
135
Member Avatar for ICE Boss

Hello Fam Am a newbie am trying to get each input box seperately with js pls i need help <!doctype html> <html> <head> <title> test </title> </head> <body> <!-- <input type="number" value="1" id="demo"> --> <?php for ($i=0; $i <= 5 ; $i++) { ?> Number <?php echo $i;?>: <input type="number" …

Member Avatar for pritaeas
0
34
Member Avatar for Mannan_3

Hi guys, this is my first post on the forum and I am in need of some help. I am a PHP beginner and I have been trying to come up with a solution to my issue for a while now. I am trying to make a system where a …

Member Avatar for rproffitt
0
650
Member Avatar for amanu092

Any one there had work with erp or crm development in php ? How to start for that? Do you know any web link for text or video tutorial for that? Or any one there will guide me please step by step 'How to develop erp and/or crm in php' …

Member Avatar for Rajesh_48
0
803
Member Avatar for soniyabis

Hi All Can anyone help me, if user inactivity and update my datbase row automaticlly ( I mean time set if user inactivity or browser close ) Before login $sql = "UPDATE register set logged_in='1' WHERE (matri_id='" . $username . "' OR email='" . $username . "')"; $DatabaseCo->dbLink->query($sql); After login …

Member Avatar for AndrisP
0
137
Member Avatar for Dani

Has anyone started working with PHP 8 yet? Any big backwards compatibility issues? I finally got around to upgrading to php 7! Lol better late than never.

Member Avatar for Joyce Sullivan
3
312
Member Avatar for MAYUR_11

i have created messaging service, also created php file from this file i send push notification. issue is in case user is offline and comes after some time , in this case my push notification not hold. how to hold push notification.

Member Avatar for rproffitt
0
30
Member Avatar for Ravindra_9
Member Avatar for Helder_3

i have start to convert by hand a python script to php its an example how to mine in python but i want implement a kind of same in my php project **That its what i did until now** $MAX_NONCE = 100000000000; $prefix_zeros = need convertion; //execute sql statement and …

Member Avatar for wwwalker
0
397
Member Avatar for osaita

Hi there, I am trying to get images onto an HTML5 canvas. The images are on the same page in a sidebar panel getting loaded in through php. If you click on an image on the sidebar, I want it to appear on the canvas. I am learning jquery, but …

0
43
Member Avatar for aquilina

How to hide this "This page is safe <#FullProductName#> Antiphishing Filter Blocks pages that contain phishing. Antimalware Filter Blocks pages that contain malware." since it appear at my admin/index.php ![7a5871ecab85b355a8aac0ddbad66343](/attachments/small/4/7a5871ecab85b355a8aac0ddbad66343.png "align-left") its possible to hide it?

Member Avatar for JIJU_1
0
239
Member Avatar for Varnisha Kalra

Can anyone suggest me which one is a better platform for e commerce website development?

Member Avatar for marry.sinkovsky
11
4K
Member Avatar for php2sheik

hai all, i want to convert indian rupees into words, is there any function in php or any useful links are appreciated.. how to convert indian rupees to words for ex 458=>four hundred fifty eight this want for any number upto billions..

Member Avatar for Vinoth_7
0
4K

The End.