39,316 Topics

Member Avatar for
Member Avatar for AntonyRayan

Here, I included my time difference code, but I am getting NaN error. How to do time difference in my code. I need my output like, 03 Hrs : 30 Mins Here is my code: /////Calculate time duration start/////// /*function calculate_Duration() { //var start_time = document.getElementById('start_time').value; //var end_time = document.getElementById('end_time').value; …

Member Avatar for Taywin
0
290
Member Avatar for James_43

Hi all, I am trying to get a for loop to cycle through, sleep, and then keep going until a specified time. I'm running into memory errors and unsure whether this is legitimate, or because its created a memory leak. My code is: $currentTime = time(); $time = time(); while …

Member Avatar for Taywin
0
222
Member Avatar for pilucho

Hello everyone. I have the following problem get the last id from the database but you can not insert a text field, the last id has, solution? pls pls <? $localhost = "localhost"; $username = "username"; $password = "password"; $dbname = "nameMyDB"; $conn = mysqli_connect($localhost, $username, $password, $dbname); // Check …

Member Avatar for Taywin
0
386
Member Avatar for Vivek_14
Member Avatar for diafol
0
91
Member Avatar for varun_6

WAMP 2.5 server on my windows 10 machine was working completely fine, until I accidentally installed a software which silently installed Win MySQLAdmin on the same machine. That day since, Wamp server icon remains in orange color (never turns green). **Issues:** 1. localhot/ phpmyadmin displays 'access denied' error. following is …

Member Avatar for cereal
0
3K
Member Avatar for Abdulrasheed_1

Please Can Any one tell me How do I Greet a user with his name after he submited His form into my Data base /please i need your help.

Member Avatar for broj1
0
90
Member Avatar for James_43

Hi all, I'm using nginx to host multiple servers on one terminal through virtual hosts. Each one needs to be able to send emails, but I am unsure how to specify which account to use when I call the php mail() function. Should I be specifying in the nginx configs …

Member Avatar for Tonc
0
1K
Member Avatar for janicemurby

hi i have just picked up a script of the net for my site and when i uploaded in onto my site i get the following message: Warning: Cannot modify header information - headers already sent by (output started at /home/matureco/public_html/new/php/connection.php:4) in /home/matureco/public_html/new/php/session.php on line 19 ive tried different things …

Member Avatar for janicemurby
0
137
Member Avatar for Malachig

Hie guys.I am new to web development.I need a tutorial of how to auto fill textboxes in form with data from mysqldatabase.

Member Avatar for diafol
0
77
Member Avatar for Sophia_1

Hi everyone. Am trying to send email reminder for users to update their progress 1 month before end of every quarter. So every February and May etc the email notification will be autosend to the users from the system. Below is the code. Please advise if this is the correct …

Member Avatar for cereal
0
5K
Member Avatar for v1shwa

Hello, I've been asked to create a tool using 3rd party API. The API requires to send the user details in encrypted format. The problem here, they didn't mention what kind of encryption we should do. They just provided a two C++ functions to encrypt the data. I'm a PHP …

0
119
Member Avatar for anitg

My code is include "src\whatsprot.class.php"; $username = "91xxxxxxxxxxxx"; //Mobile Phone prefixed with country code so for india it will be 91xxxxxxxx $password = "password"; $identity = strtolower(urlencode(sha1($username, true))); $w = new WhatsProt($username, $identity, "WhatsApp Messaging", true); But This part of the code $w = new WhatsProt($username, $identity, "WhatsApp Messaging", true); …

Member Avatar for Taywin
0
224
Member Avatar for kgizo

Good day everyone I just want to know whether its possible to upload a file using joomla that wouldnt be downloable at all, I tried saving the file as a read only pdf file but that still made the file downloable on the web. Taking into consideration that the internet …

Member Avatar for Taywin
0
227
Member Avatar for AntonyRayan

Hai, I am new to this concept. After clicking the button it has to insert into database and has to refresh the div in jquery ajax. How to do?

Member Avatar for broj1
0
2K
Member Avatar for arshialauddin

Sir I am learning core php and how to use multiple user login and admin login seperately

Member Avatar for diafol
0
34
Member Avatar for praba_web
Member Avatar for AntonyRayan

Hi, I used this code to translate in any language, what I am typing . It is working good. But, for English, I don`t know how to do? can anybody know it? <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javascript" src="https://www.google.com/jsapi"> </script> <script type="text/javascript"> // Load the Google Transliterate API …

Member Avatar for AntonyRayan
0
259
Member Avatar for James_43

Hi all, I am aiming to create an array with the same structure as this: Array ( [798D25C0DEABD] => Array ( [quantity] => 1 ) [40B2B0FA3D222] => Array ( [quantity] => 1 ) ) The code I am using is therefore: for($i = 0; $i < count($response); $i++) { $ph[] …

Member Avatar for James_43
0
325
Member Avatar for adishardis

I have a couple of sites (on different servers) that I want to see if some critical urls are up and running and this is what I've tried: $handle = curl_init($url); curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE); /* Get the HTML or whatever is linked in $url. */ $response = curl_exec($handle); /* Check …

Member Avatar for adishardis
0
165
Member Avatar for janicemurby

hi im attempting to change my website from mysql to mysqli ive replace mysql with mysql on all the files and when i attempt to load site im gettting the following: Warning: mysqli_select_db() expects parameter 1 to be mysqli, string given in /home/matureco/public_html/config/db_connect.php on line 6 heres code for this …

Member Avatar for diafol
0
263
Member Avatar for Mushfik

How can I add parameter to this <a href="javascript:;" Or is there any way to post data on the same page on that link above Thanks

Member Avatar for Taywin
0
229
Member Avatar for Aeonix

It might be obvious, but I can't seem to understand it. So don't laugh. Let's assume this scenario. My website has 5 themes, there are 5 buttons. Clicking each button changes theme respectively and uniquely. I use JavaScript to do that, so I set name of theme in a cookie, …

Member Avatar for Aeonix
0
495
Member Avatar for castajiz_2

For the last 5 months I've tried to organize myself and my friends in order to collect some relevant information on news sites (information about global warming, pollution, ecology etc.) The only solution that I've found was to use a local search engine from the news site and type in …

Member Avatar for jwenting
0
248
Member Avatar for Engr Chid

a PHP code for Matrix plan of Multi-level marketting software. This is a logic where a referal gets paid s his down line increases. a kind of social marketting.

0
68
Member Avatar for toxicandy

Hi all, I have been using this tutorial: [bootply.com](http://www.bootply.com/lxa0FF9yhw) and I almost have it working, the problem is that my table is generated VIA AJAX from a php file. Basically I see my table but no working pagination unless I open chrome web tools and go to console and paste …

Member Avatar for diafol
0
311
Member Avatar for toxicandy

I have a quick question, I am hoping it is an easy answer but if I wanted a query like the following: SELECT * FROM items ORDER BY date ASC Is there anyway to replace the order by information with prepared statement attributes? would either of the following work? SELECT …

Member Avatar for cereal
0
405
Member Avatar for Faiz97

How To connet mssql to php please please please help meeee. I'll wait for you guys to answer

Member Avatar for Faiz97
0
448
Member Avatar for 12Strings

Hi, been awhile. I'm fighting this captcha form; it's been a battle (flaws in code) now all looks fine but it doesn't send to email. What's the obvious prob?? <?php $name=''; $visitor_email=''; $user_message=''; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Preview</title> </head> <body bgColor=#ccffff onload=doCookie() onunload="thank-you.php"> …

0
74
Member Avatar for ivylyn

iam using php in developing our website which is our user has to check banana symptoms that he observe on his plantation,out of that checked symptoms our system will show the possible disease based on what he checked, but i have a problem, if i checked 1 and 4 checkbox …

Member Avatar for ivylyn
0
139
Member Avatar for Kadence

I'm looking for a graphic library to create a visual for data that involves between about 100 to 300 data points. Each set of data points covers a full day - so one day would have a few hundred data points total, and I'm looking to plot a graph of …

Member Avatar for diafol
0
253

The End.