39,326 Topics
| |
<?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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
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 … | |
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 … | |
<?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 | |
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 … | |
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. | |
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 … | |
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. … | |
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 … | |
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 … | |
Need web hosting which one to choose? GoDaddy, Bluehost, JaguarPC or else? Is there any cost effective cloud hosting option available? | |
[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 = … | |
**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: … | |
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? | |
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" … | |
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 … | |
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' … | |
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 … | |
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. | |
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. | |
how to edit and update from tinymce editor from php mysql | |
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 … | |
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 … | |
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? | |
Can anyone suggest me which one is a better platform for e commerce website development? | |
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.. |
The End.