39,320 Topics

Member Avatar for
Member Avatar for Charles_38

<html> <head></head> <link rel="stylesheet" type="text/css" href="style.css" <body> <?php $db = mysqli_connect('localhost', 'root', '', 'formdb'); $formId = ''; $LastName = ''; $FirstName = ''; $Email = ''; $Birthday = ''; $Birthplace = ''; $Comment = ''; if (isset($_GET['upd'])){ $formId = $_GET['upd']; $results = mysqli_query($db, "SELECT * FROM tbl_form WHERE formId=$formId"); } …

Member Avatar for benanamen
0
330
Member Avatar for Olaoluwa_1

I have a Table that displays titled and first name columns and delete link on the 3rd column. Unfortunately for a reason i don't understand, records are not deleting when the Delete link is clicked. Please friends, help me figure out what's wrong here. Table <?php $user_id = $_SESSION["user_id"]; //brought …

Member Avatar for alan.davies
0
444
Member Avatar for newbie_1

Hello, I can't display images from database. I have folder called "images" next to index.php where I keep images. I suppose I have wrongly defined folder path with images or sth else. <?php $connection = new mysqli("localhost", "root", "", "crud"); $sql = "SELECT * FROM test"; $res = $connection->query($sql); if(@$res->num_rows …

Member Avatar for Tpojka
0
810
Member Avatar for nufftalon

Without going into each of the products pages and setting sidebar to appear on left, how can I code it into the woocomerce product single page using php? http://www.mabridalplus.com/?product_cat=bridal-wear

Member Avatar for Shubham_15
0
1K
Member Avatar for Eric_28

i am creating an app with android studio and i'm using mySQL.and i want to implement friends feature in my app to enable users send and recieve friend requests, i have created tables and writen the server side php code for that, i have also created an add as friend …

Member Avatar for pty
-2
1K
Member Avatar for ami_2

Hi All, I want to select specific drop down option to a selected post, for example the post is on Honda Fit, the the Drop Down should select Honda Fit automatically. The below code works fine but shows all posts instead of selecting specific to a post, e.g. select guid …

0
339
Member Avatar for galeej

Hi, I have an application which sends mail wen a new post is made in my blog.my blog is setup in local server using xampp.wen i send mail to a single address its working fine and wen i tried to send mail to multiple address i get an error saying …

Member Avatar for Kevin_40
0
1K
Member Avatar for ami_2

Hi, i have a plugin called wp deposits and a template called automotive, i need the client to be able to pay a non refundable fee of 5% which is working fine through wp deposits, the thing is wp deposit is picking price from woocommerce, i want it to pick …

Member Avatar for Bill_26
0
283
Member Avatar for Herminia CS

I'm a newbie in php and I want to create a single login page for Admin and user.When admin log in it should go to an admin page and when user log it shoult go to index page.I want help with my code, it works fine login normal users but …

Member Avatar for alan.davies
1
9K
Member Avatar for Vegeta_1

How to convert the Codeigniter code to normal HTML and PHP? Basically, I want to merge my older Codeigniter code with new HTML, CSS and PHP code.

Member Avatar for alan.davies
0
1K
Member Avatar for FarrisFahad

I have a unix timestamp for each cooment in my database. I want to output the user date and time depending on their location, or timezone. How do I do that properly?

Member Avatar for rproffitt
0
546
Member Avatar for Landalo

I've been trying to find places to sell scripts, it would be great if that info is shared with the community. Go ahead and make your contributions!

Member Avatar for rproffitt
0
170
Member Avatar for Shankar_7
Member Avatar for rproffitt
0
168
Member Avatar for elamigosam

hi, I am stuck trying to figure out how to build a table to display agents names, (that I already have, mysql table etc...) but now I need to add columns dynamicaly. I need to add (programs in witch agents are enroled, and a status of the program ( in-progress, …

Member Avatar for elamigosam
0
3K
Member Avatar for developer707

Hello, After searching over the internet how to secure a web application(forms) in PHP, in most of the cases were just suggestions not a short and real example. In some cases is suggested to use strip_tags( trim( $_POST['PARAMETER'] ) ); but when you have some special inputs like comments field …

Member Avatar for developer707
0
3K
Member Avatar for developer707

Hello, In my project I have a form with many inputs and one object is using DropzoneJS to attach files. Since I store all the inputs when I post the form I need somehow to read the file names of the uploaded files in my server, currently I can only …

Member Avatar for developer707
1
11K
Member Avatar for Rizwan_8

Hi 1.am able to run using XAMPP on PC. When i run from my board, am not getting proper data. I mean it is not fetching the file index_1.txt.html and index_1.txt file are available in same path in sd card. Anything wrong 2.Instead of using second argument with file name, …

Member Avatar for alan.davies
0
388
Member Avatar for FarrisFahad

I have a database of pictures, and votes. The pictures database has up_votes and down_votes culomns. I want to create a system using MySQL to get hot and trending pictures just like 9Gag. How can I do that?

Member Avatar for pty
0
2K
Member Avatar for FarrisFahad

I send payments to my users regularly. But sometimes the user enter a PayPal email address that cannot receive money from other PayPal users. They just can receive money from their website. How can I check for this and show an error to the user? Do I need to use …

0
398
Member Avatar for pascalbianca

Hello everyone, I used in my htlm/php page the code of site where the data is showed in this part.: <div class="row" id="records"><div class="col-sm-4" id="emp_id"></div> The value what that script gets from my database is put in id="emp_id". Now my question is as next. Is it possible to put id="emp_id" …

Member Avatar for pascalbianca
0
4K
Member Avatar for s_15

can anyone let me know what the wrong thing here as i am not able to add subcategories to category <div class="col-lg-4 mx-md-auto paper-card"> <?php if ( isset( $_POST[ 'submit' ] ) ) { if ( empty( $_POST[ 'subcat' ] ) ) { echo '<span style="color: red;"> Please Fill in …

Member Avatar for happygeek
0
329
Member Avatar for Gurjit_2

I have a table called `volume_issue` that looks like this: +----+-------------------------------------------------------+-----------------+-----------+---------------------+ | id | url | journal_title | issn | volume_issue | +----+-------------------------------------------------------+-----------------+-----------+---------------------+ | 1 | https://www.ajol.info/index.php/asan/issue/view/17048 | Africa Sanguine | 1560-8646 | Vol 19, No 2 (2018) | | 2 | https://www.ajol.info/index.php/asan/issue/view/16693 | Africa Sanguine | 1560-8646 | Vol …

Member Avatar for Gurjit_2
0
5K
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
443
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
376
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
451
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
419
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
303

The End.