39,326 Topics

Member Avatar for
Member Avatar for David_139

$query = "SELECT SUM(amount) FROM income_daily"; $sum = mysqli_fetch_row(mysqli_query($con, $query)); echo "Total Income : ". "¢" .$sum[0]; echo '<br>'; echo '-'; echo '<br>'; $query1 = "SELECT SUM(amount) FROM expenses_daily"; $sum = mysqli_fetch_row(mysqli_query($con, $query)); echo "Total Expenses : ". "¢" .$sum[0];

Member Avatar for alan.davies
0
447
Member Avatar for Mohamed_106

Can you help me to programe a window pop up in my site say in it write your email which code should i use in html and javascript

Member Avatar for pty
0
377
Member Avatar for Mohamed_106

If you viste www.topelven.com you will find a perfect website devloped but till now i can't understand what they code with css can you give me exemple

Member Avatar for Mohamed_106
0
403
Member Avatar for lester_2

<?php $db = new Db(); $mysqli = Db::$_mysqli; if (isset($_POST['name'])) { $name = escape($_POST['name']); $email = escape($_POST['email']); $phone = escape($_POST['phone']); $password = escape($_POST['password']); $result = array(); /*check email is unique*/ $email_num = $db->GetNum("user","email='$email'"); if ($email_num == 0) { /*insert into database*/ $md5password = md5($password); $insert = $db->Insert("user","'','$name','$email','$phone','$md5password'"); /*success*/ if ($insert) …

Member Avatar for lester_2
0
9K
Member Avatar for rayrenz

$string="City" $consonants=array("B","b","C","c","D","d","F","f","G","g","H","h","J","j","K","k","L","l","M","m","N","n", "P","p","Q","q","R","r","S","s","T","t","V","v","W","w","X","x","Y","y","Z","z"); foreach($consonants as $chk2) { if(strpos($string,$chk2)!= false) { $ans2[]=$chk2; } } if(isset($ans2)) { $comment2="Consonants in this string: ".join(" ",$ans2); } else { $comment2="Consonants in this string: None"; } echo "".$comment2."<br/>"; so the error is that the displayed consonants does not include the first letter. what could be wrong?

Member Avatar for Aravinth_2
0
369
Member Avatar for durgeshmandal

I have wordpress template in which url is generating in for of xyz.com/?pickup_location=662#038;pickup_date=2018%2F08%2F08&return_date=2018%2F08%2F10 now I want to get pickup_date but I could not I also tried $_SERVER['REQUEST_URI'] but it's giving link till pickup_location

Member Avatar for alan.davies
0
460
Member Avatar for ivay14

Hi guys! I have a problem with login into the system. Everything seem to be fine but it passes an error when i click the login button. Pls help Thank you in advance ////////login.php////// <? /* *********************************************************** **********# Name : Shambhu Prasad Patnaik #***** **********# Company : Aynsoft #********** **********# …

1
421
Member Avatar for lester_2

This the code in products <?php require_once("inc/header.php"); require_once("inc/navbar.php"); /* if user is logged in then only allow the user to view the page */ if (!isset($_SESSION['id'])){ echo "<h1 class='text-center text-upper text-bs-primary'>please login to view your cart <a class='text-black' href='login.php'>Login</a></h1>"; exit(); } else{ $user_id = $_SESSION['id']; } $carts = $db->FetchAll("*","cart","user_id='$user_id' AND …

0
306
Member Avatar for Ram Krishna_2

Hello friends, I want to develop a online typing tutor using codeigniter......for hindi language (typing in computer with the help of **hindi indic 3** or** hindi indic 2 typing tool**) .......i know the php and codeigniter with css.....please give me guidance to develop it......what language i need to learn.....and how …

Member Avatar for alan.davies
0
729
Member Avatar for Michael_89

Hello Guys! Please i need help with my dynamic table, everything seems to be working fine except for my onchange event for each dynamically added row, it only inserts into the first row, but when i select an option from the second added row, the feilds to be updated from …

Member Avatar for kinhkha1984
0
2K
Member Avatar for sashiksu

Hello everyone. I want to build a special form. It has different kind of input types text, radio,select and combo boxes. Specility of my need is this. *I need to insert one element value as one record to database. Let's assume there are two textboxes and radio button group. It …

Member Avatar for kinhkha1984
0
525
Member Avatar for Andry_1

I'm trying to make SSO like [Yandex](http://yandex.ru/) do. How achive authentication without redirect if user has been already authenticated at another service provider? I am working on SAML, but I could not achieve implementation without a redirect.

0
244
Member Avatar for Gurjit_2

Hello everyone. I have a string that looks like this (Mango, fruits, and), (Maize, cereals, and), (Mango juice, beverages, and) I would like to convert the above string using php to something similar to this: (Mango[fruits]) AND (Maize[cereals]) AND (Mango juice[beverages]) How can i achieve this in php. I have …

Member Avatar for alan.davies
0
879
Member Avatar for joshmac

I have a function that I need help with. The purpose of the function is to sort an array of objects by field. This function was using the PHP function create_function which is now deprecated in PHP 7.2. I've been trying to rewrite the function, but the results return null. …

Member Avatar for jkon
0
473
Member Avatar for davy_yg

Hello all, I am quite impress knowing that Python has been the most popular programming language in July 2018. Check this statistic: https://pypl.github.io/PYPL.html It looks like there is a changing in trends - in 2015 PHP is rank no 2 and now rank 4. While Python rank 3 moves up …

Member Avatar for rproffitt
1
464
Member Avatar for sashiksu

Recently I'm trying to pass text boxes , radio buttons and checkboxes vaues to database. For that for the clear understanding I'll provide simple way of form. <form method="post"> <input type="text" name="KKK"><br> <input type="text" name="val[]"><br> <input type="text" name="val[]"><br> <input type="text" name="val[]"><br> <input type="radio" class="form-check-input" value="new" name="val[]">New <input type="radio" class="form-check-input" value="recondition" …

Member Avatar for alan.davies
0
4K
Member Avatar for annya

Hello, Iam not an expert in PHP as I want to echo latest value from the table please help. My table name is : sym_fruit fileds name in the above tables are : id, fruitname, date each day i will add new fruit to this table so the latest fruit …

Member Avatar for alan.davies
0
218
Member Avatar for tun712

I have css animation for preloader. I need help to update content smoothly without redirecting page, using following functions $(window).on("popstate", function() { }); window.history.pushState({path: ""},"",""); Update link & content of next page after preloader progressbar animation ends `webkitTransitionEnd ` without redirecting to page. Need help to complete following functions function …

Member Avatar for tun712
0
996
Member Avatar for Krishna_31

How i do remove duplicate questions from my excel file??? There are more then 150 questions in my excel file

Member Avatar for White_4
0
309
Member Avatar for Jara_1

$table = "<table>\n"; for ($i = 0; $i < sizeof($rounds); $i++) { $table .= "<tr><th>Week #: " . ($i + 1) . "</th><th>Match</th><th>Away</th><th>Referee</th></tr>\n";//table headers foreach ($rounds[$i] as $r ) {//iterate through an array $table .= "<tr> <td> Day :</td> <td> $r </td> <td>".$r["Away"]."</td><td> </td></tr>\n"; //i want to store values of …

Member Avatar for ryantroop
0
435
Member Avatar for sashiksu

heY guys :) recently I'm on web project which I use MySQL, bootstrap, PHP and Javascript. For this I have generated successfully dynamical forms using PHP. I'm using mysqli commands. I used dynamic forms if it not used I have to create hundred of html pages. So by doing this …

0
583
Member Avatar for Risky_1

i want select then insert in php code but my code do nothing. public function deliverOrders($id_d){ $p=$this->db->prepare("select saldo from admins where name='".$_SESSION['name']."'"); $orders=$p->fetchAll(PDO::FETCH_OBJ); return $orders; if ($orders < 1000){ echo"<script>alert('you deposit less than 1000);</script>"; } else{ $q=$this->db->prepare("update orders_foods set status=1 where id=?"); if($q->execute([$id_d])){ echo"<script>window.location.href='index.php?page=orders'; alert('berhasil di kirim');</script>"; } else{ echo"<script>window.location.href='index.php?page=orders'; …

Member Avatar for pty
0
378
Member Avatar for phphp

Sir I have these codes <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> .box{ margin:0 auto; width:30%; border:2px solid #CCC; height:auto; padding:10px; margin-top:50px; } </style> </head> <?php $my_continent=""; $my_country=""; $my_city=""; $my_zip=""; if(isset($_POST["submit"])){ $my_continent = $_POST['continent']; $my_country = $_POST['country']; $my_city = $_POST['city']; $my_zip = $_POST['zip']; } …

Member Avatar for dev_10
0
362
Member Avatar for Maqsood_4
Member Avatar for pty
0
142
Member Avatar for James_103

I have a simple MySQL database keyword search that is functional. However results for the search are not being returned if the keywords are not in the same order as entered in the database. For example searching for "dog cat mouse" will return a result, becuase this is the order …

Member Avatar for pty
0
358
Member Avatar for davy_yg

Hello, I am planning to do my Thesis on SQLIA and now I am trying to understand something about SQLrand. SQLrand - a system for preventing SQLIA against web servers. The main intuition is that by using a randomized SQL query language, specific to a particular CGI application, it is …

Member Avatar for davy_yg
0
497
Member Avatar for annya

Hello, Iam getting an fatal error " PHP Fatal error: Cannot redeclare class MysqlConnect " It was my connection file and the website was working from the past two years. Yesterday on of my friend said my website was down so that time i noticed this issue I got the …

Member Avatar for rproffitt
0
2K
Member Avatar for prashant_17

I have a script for product Invoice which save details of sold product, but it do not update stock quantity when any product sale. Product quantity in stock remain the same which should decrease.. here is the code to save invoice details using for each loop : <?php function saveInvoice( …

0
256
Member Avatar for mgn2683

I'm new to working with PHP and I am in need of some help. I am currently working on setting up a test using Dreamweaver so that users can log in, then go to the question page, and from there go to a page with a form to answer that …

Member Avatar for Shibli_1
0
3K
Member Avatar for Natalia_3

Hello guys, I am looking to create a poll in WordPress using HTML code. I found many usufull into on the web, but i have a problem with undestanding how to put answer keys side-by-side? I imagine it to look somewhat like this : Far Cry 5 Yey! (button) Nay! …

Member Avatar for Anas_7
0
163

The End.