39,388 Topics

Member Avatar for
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
550
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
171
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
391
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
399
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
330
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
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
468
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
307
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
732
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
527
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
880
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
465
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

The End.