39,326 Topics

Member Avatar for
Member Avatar for Jiby_1

1) i fetch data from database suppose $data contains all the data of table A from $data first two goes to below div <div> //bgcolor green echo $data['a']; echo $data['a']; </div> next 2 data to below div <div>//bgcolor yellow echo $data['a']; echo $data['a']; </div> again next two data to <div> …

Member Avatar for diafol
0
134
Member Avatar for rpv_sen

Hi I want to stop direct download of videos file from my webiste folder. .htaccess is not working in godaddy windows server Please help me. eg: http://www.domain.com/folder/video.mp4 If paste the URL in the browser. it should not download the file from the server.

Member Avatar for rpv_sen
0
816
Member Avatar for UK-1991

Helo, I have a confussion and I need to get it solved in core php we used to create a url parameter through which we would be able to get values from the url so hwo this could be happend in codigniter for example <a href="index.php?add=1">Add page</a> //setting up a …

Member Avatar for UK-1991
0
290
Member Avatar for solomon_13000

I am attemping to calculate the cost by issuing the query below however it always return no value: //Re-calculate the cost price $f15 = "SELECT sum(cost) FROM ingredients WHERE item_id_fk = :targetID"; $e16 = $this->l1->prepare($f15); $e16->bindParam(':targetID', $g4); $e16->execute(); $g5 = $e16->fetch(PDO::FETCH_NUM); error_log(print_r($g5[0], TRUE)); Did I miss out something? Your help …

Member Avatar for diafol
0
3K
Member Avatar for brispea

Hiya all, I really need your help with understanding. But first, please avoid offering wordpress or so as a solution. I have a couple of templates (more to come) done from scratch to meet a specific business type (very specific). My problem if a customer selects one template, how do …

Member Avatar for brispea
0
129
Member Avatar for AntonyRayan

HI, I am trying to do questions generation system in PHP. I need some idea form all of you, how to shuffle questions and answers from table based on standard, section, subject,difficulty of question (Easy, Medium, High),No of module (Like, choose the best anser, true or false, Explanation ), and …

Member Avatar for parvez alam
0
998
Member Avatar for Jiby_1

Below shown code after fetching data from database not listing the result? <?php $answer = $listcareer['bigcontent']; $bigcontent = substr($answer,0,10); print_r($bigcontent); exit(); ?>

Member Avatar for diafol
0
101
Member Avatar for UK-1991

Hello, I have created a quiz system where I tried to create a condition which is just simple one if time is up then correct answer will be shown up and the button would be disabled but I am confused and unable to make some logic about I need you …

Member Avatar for UK-1991
0
245
Member Avatar for mrhankey

hi guys, i have a site which is protected using php and stored username and passwords in mysql database. is there a script which will protect a directory and run off the mysql database username and password as opposed to just a standard htaccess file? help urgently need for this …

Member Avatar for Renu_5
0
5K
Member Avatar for AntonyRayan

Hi, I am new to this concept. I have data in my table in different languages like, English, French, Chineese, Serbian....) I want to display that languages in MPDF, how they are in table,. How to do that in MPDF? Which PDF format is best? FPDF or MPDF or TCPDF …

Member Avatar for diafol
0
105
Member Avatar for Deep_4

So, I've some free time in December and want to make a web-app that lets people login, put books they've read, review the books they've read etc. But, I'm not sure how and where to start? What Languages/Frameworks to use? Any help would be appreciated. Thanks!

Member Avatar for diafol
0
328
Member Avatar for salbic

I have an issue with the code I am working on and realised I need some help with it as I can not find out what I am doing wrong. The following code is just at part of a bigger code (that works fine) and I would be thankful if …

Member Avatar for salbic
0
201
Member Avatar for janicemurby

hi can someone check this section up for me as im getting a error from it after converting to mysqli Fatal error: Call to a member function query() on a non-object in /home/matureco/public_html/config/db_connect.php on line 67 // find total message per user if(! function_exists(unReadMsgCount) ) { function unReadMsgCount($id) { return …

Member Avatar for diafol
0
230
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
291
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
223
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
387
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
138
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
122
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
261

The End.