38,020 Topics

Member Avatar for
Member Avatar for jonlloydd

I am trying to log a user out of my CMS after a set amount of time. By inactive I mean has not clicked the mouse or typed on there keyboard. So after 30 minutes of inactivity my log out function is ran. There is already a log out function …

Member Avatar for tobyITguy
0
382
Member Avatar for hrushi9

I downloaded Simple Directory https://wordpress.org/plugins/simple-directory/ & Recommended Plugins to run the Simple Directory plugin INSTALLING SIMPLE DIRECTORY http://lautman.ca/simple-directory/ But it is not working well. After Installing plugin, when you add Listings, it gives problem with `archive-listing.php` while displaying listings. How to set up pages to create directory???

Member Avatar for hrushi9
0
288
Member Avatar for ramsiva

Any body help me how to use stored procedure and sample code for how to use. I dont know usage of stored procedure. Currently i am facing interview questions on stored procedure

Member Avatar for ramsiva
0
369
Member Avatar for ehpratah

Hi Im having a hardtime making my query work the way it should be.i'm getting wrong output. basically what im trying to do is a simple user statistic that will show the user inputed data and user processed data base on the date range the user selected. heres the screenshots …

Member Avatar for ehpratah
0
284
Member Avatar for paul-lucas

Hello, please help me sold this issue. It can read the content on the MySql table but when I change the value on the input, then click on Submit, nothing is updated on the table. I don't know why. <?php global $wpdb, $current_user; $user_id = get_current_user_id(); $sql = 'SELECT `slot`, …

Member Avatar for tobyITguy
0
254
Member Avatar for Roldan_1

Hello to all, i have my problem using php in updating mysql database, i have codes here. my problem is, when i click update, all data update altogether, i dont know what is wrong on my codes, your help is much appreciated. <?php if(isset($_POST['req_code'])){ $servername = "localhost"; $username = "root"; …

Member Avatar for Gideon_1
0
328
Member Avatar for paul-lucas

Hello, after print my query print_r ($code_2); I have received the result which has the duplicate array. Please help me to merge them! Thanks. Array ( [0] => stdClass Object ( [id] => 1 [name] => admin [phone] => 353534545 [notes] => ) ) Array ( [0] => stdClass Object …

Member Avatar for paul-lucas
0
322
Member Avatar for Roldan_1

I have my codes here, i cant update my database using this codes please help. if(isset($_GET['submit'])){ $servername = "localhost"; $username = "root"; $password = ""; $dbname = "elev8groupportal"; $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } //$req_code = $_POST['req_code']; …

Member Avatar for lps
0
219
Member Avatar for berserk

I cant seem to understand the issue with this statement, admittedly i have not written this code myself but have found it and modified it to work with what im doing, as most open source code is. This is for a secure login script that will pull a salted password …

Member Avatar for berserk
0
1K
Member Avatar for ribrahim

Hello, I hope that I can get an answer for this question. I have a MYSQL table for charges which contains the following fields: ChargesID, ChargesTitle, OfficialFees and ProfessionalFees. What I need is to make a dropdown list which contain ChargesTitle and upon selection to autofill the OfficialFees and ProfessionalFees. …

Member Avatar for ribrahim
0
4K
Member Avatar for praba_web
-1
159
Member Avatar for Betterwebsites4u

Please help I am creating this contact form where everything is working fine but I am not getting attachment in the email, What am I doing wrong? Here is the code Here is the script I am using <script type="text/javascript" src="js/jquery-1.11.0.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#submit_btn").click(function() { //get input field …

Member Avatar for lps
0
623
Member Avatar for lily4nero

<?php require_once('includes/dbconn.php'); error_reporting (E_ALL ^ E_NOTICE); session_start(); $userid = $_SESSION['userid']; $username = $_SESSION['username']; ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Home</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <!--Header--> <div class="header"> <div class="logo"> <img src="images/logo.gif" alt="logo" /> </div> </div> <!--Start of content--> <div class="content"> <div class="padding"> <div class="contentarea"> …

Member Avatar for Gideon_1
0
161
Member Avatar for SimonIoa

I have a problem with mysqli syntax. I really can't see what the problem is in this code. I dont know much about it. When i use it on a function like this public function Somefunction() { $query=mysqli_query($this->db,"SELECT title,url,img FROM table WHERE status='1' ORDER BY id DESC")or die(mysqli_error($this->db)); while($row=mysqli_fetch_array($query,MYSQLI_ASSOC)) { …

Member Avatar for SimonIoa
0
175
Member Avatar for info@infotech
Member Avatar for Gideon_1
0
78
Member Avatar for sam1

hi, I am creating a form for user to update their details which is saved in the database. So far i can show their details in the form where i have a submit button but the updating part doesnt work(it doesnt update at all). here is the code: [CODE] <html> …

Member Avatar for diafol
0
3K
Member Avatar for Gideon_1

Hello everyone, I have been using xampp for my web app developments for quite a while now. Usually after the app development is done, I upload my files to paid hosting. Now, this is the case I'm designing a school's accounts managements software which will be used on an intranet. …

Member Avatar for broj1
0
1K
Member Avatar for praba_web

Hi there, I follow this tutorial for my web app. link: http://www.thesoftwareguy.in/creating-multi-user-role-based-admin-using-php-mysql-bootstrap/#comment-4583 Can anyone give me idea to do this same app using codeigniter.? Thanks.

Member Avatar for diafol
0
1K
Member Avatar for AlexDada

I was wondering if anyone could tell me how I would approach building a music search engine using php and mysql. I have a design for my Music search engine which I did using html css on Dreamweaver and I have some mp3/audio files on my computer and all i …

Member Avatar for diafol
0
405
Member Avatar for jkon

There is a problem with static variables and functions in how it is used by apps and frameworks in PHP , they are used as global functions or parameters while this is by far what they mean. It is easy to write the same functional or even procedural code in …

Member Avatar for pritaeas
0
298
Member Avatar for md.Rayad

Here is my php code. It is working fine. <?php ........ $cdt1 = Date("Y-m-d H:i:s"); $last_seen = "2015-05-20 12:15:20"; $datetime22 = new DateTime($cdt1); $datetime11 = new DateTime($last_seen); $interval1 = $datetime11->diff($datetime22); echo $interval1->format('%y years %m months and %d days %H hours, %i min and %s sec '); ......... ?> It is …

Member Avatar for diafol
0
282
Member Avatar for Sam.Samual
Member Avatar for OsaMasw
-1
115
Member Avatar for janicemurby

hi all i have following a tutorial for a groups system for my site and if i click on groups link nothing happens if someone can see whats happening Sorry for all the lines but im stuck :( see code below for that # php code # <?php $thisPage = …

Member Avatar for janicemurby
0
174
Member Avatar for rpv_sen

Hi friends i am facing some url redirection issue in my .htaccess. please help me to fix it. **my url is** domainname.com/article.php?url=test.html **my expected URL is** domainname.com/test.html **.htaccess** Options +FollowSymlinks RewriteEngine On RewriteRule ^([a-zA-Z0-9-/]+).html$ article.php?url=$1 RewriteRule ^([a-zA-Z0-9-/]+).html/$ article.php?url=$1 **Server** nginx

Member Avatar for ryantroop
0
476
Member Avatar for janicemurby

hi ive followed a w3 schools form works fine for submission but if i refresh browers i get the following error Error: INSERT INTO userprofile (postcode, town, firstname, pfirstname, sexuality, psexuality, height, pheight, bodytype, pbodytype, tattoos, ptattoos, piercings, ppiercings, drinking, pdrinking, race, prace, smoker, psmoker) VALUES ('', '', '', '', …

Member Avatar for DaveAmour
0
121
Member Avatar for chrisschristou

hello danifriends. i'm developing my website with php and i want to make dynamic header, so i create i file header.php with logo and menu and the page had all html doctype and and head tag for link with css and js..., i include the header in my page using …

Member Avatar for chrisschristou
0
678
Member Avatar for m-soft

Hi, Reading CodeIgnitier documentation I saw some statements having this form: $this->someword->somefunction(); and I don't know what is that. Is someword an multi-dimensional/associative array? I know that if I create an instance of a class I can access its properties and functions with a single -> operator or with :: …

Member Avatar for pritaeas
0
149
Member Avatar for alex_32

I have a PHP class file A with a static variable, I have one class file B that uses that class A and instantiates its static variable. i wish to access Class A's ststic varibale from another class C in another file. How do i do this. I tried this …

Member Avatar for pritaeas
0
387
Member Avatar for jonlloydd

I am trying to force log out an inactive user from my CMS. The timeout value is stored in a value called PREF_TIMEOUT in my database. Ive borrowed this code and modified it a little. The code does not seem to be doing anything. Does anyone know of a better …

Member Avatar for jkon
0
293
Member Avatar for grakovski

I see in phpbb template system it has <!-- PHP --> code <!-- ENDPHP --> tags in template and you can include php code inside them <!-- PHP --> = start tag of php <?php <!-- ENDPHP --> = ?> I want to use something else in mustache php, like: …

0
147

The End.