39,320 Topics

Member Avatar for
Member Avatar for anirban1087

Hi, All Presently I am working on a MLM (Multi Level Marketing) Software using PHP & MySQL. But I am not being able to display the Down line Tree of any particular member. I am using Pre order Tree. But my product should support Spill Over Binary Tree. Please Help …

Member Avatar for Rishos
0
5K
Member Avatar for AntonyRayan

Hi, I am new to this concept. How to export data from database in EXCEL for various standards with "dynamic headings" .

Member Avatar for broj1
0
395
Member Avatar for Stefce

Hello, i want to make a categories menu which each will have its own sub-categories and that category will have own sub-categories im trying to make with arrays but i'm not really good at it.. im trying right now with bunch if statements but is there any other method of …

Member Avatar for diafol
0
2K
Member Avatar for Joe_10

I am using ms sql and php. What I am trying to do is display all the records that have the same incident number. I can get the first one to load, but im stuck how to get the rest of them. <?php $serverName = "myserver"; $connectionOptions = array("Database"=>"mydb"); $conn …

0
132
Member Avatar for wad

[CODE]<?php header('Content-type: image/JPG'); $username = "root"; $password = ""; $host = "localhost"; $database = "image"; @mysql_connect($host, $username, $password) or die("Can not connect to database: ".mysql_error()); @mysql_select_db($database) or die("Can not select the database: ".mysql_error()); $query = mysql_query("SELECT * FROM img"); while($row = mysql_fetch_array($query)){ echo $row['image']; } ?> [/CODE] that code display …

Member Avatar for pritaeas
0
13K
Member Avatar for Stefce

Hello, I have a multidimensional array i like to make every category to be clickable and to show its own sub-categories i have something like this... pls help to achieve this. function makeList(array $Array) { $Output = '<ul>'; foreach($Array as $Key => $Value) { $Output .= "<li><input type='submit' name='value[$Key]' value='$Key' …

Member Avatar for Stefce
0
330
Member Avatar for kingwash

<?php error_reporting(E_ALL ^ E_DEPRECATED); // connection to database include 'database.php'; ?> <?php if (isset($_FILES['image']) && $_FILES['image']['size'] > 0) { //// Temporary file name stored on the server $tmpName = $_FILES['image']['tmp_name']; // // Read the file $fp = fopen($tmpName, 'r'); $data = fread($fp, filesize($tmpName)); $data = addslashes($data); fclose($fp); } $name=$_POST['name']; $email=$_POST['email']; …

Member Avatar for AndrisP
0
353
Member Avatar for Amaina

I have been trying to get my PHP script return two different pages namely: get2015 and get2016. The aim is to have these two pages have pagination links below them. To achieve this i have written two scripts in two different files that look like this: file 1 = functions.php …

Member Avatar for Amaina
0
490
Member Avatar for WoW Me Web Girl

has anyone you seen this one before... it happens when my users tries to purchase a membership package. When it goes to the billing/payment page it shows this error.. Warning: Cannot modify header information - headers already sent by (output started at /home/content/a2pnexwpnas02_data01/92/3515092/html/wp-content/themes/superlist/header.php:11) in /home/content/a2pnexwpnas02_data01/92/3515092/html/wp-includes/pluggable.php on line 1174

Member Avatar for rproffitt
0
390
Member Avatar for Amaina

I have 2 tables that look like this.(see below). Table one is named tableX and table 2 is named tableY. +-------+---------+ | count | post_id | +-------+---------+ | 3 | 7209 | | 3 | 7210 | | 1 | 7211 | | 1 | 7212 | | 1 | …

Member Avatar for cereal
0
243
Member Avatar for Ronel_1

Hi everyone I'm creating a multi-part registration form using session, I have no problem with the first two page getting post value but whenever I validate the third page for error, it redirects me always to the first page where it should be redirected to the 2nd page once it …

Member Avatar for diafol
0
240
Member Avatar for NOVICE3

I am trying to load text into a form (textarea) from an existing text file resident on the server. I am having no luck. The code I am using (with variations) is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title>SVP Data</title> <link rel="stylesheet" href="main.css"/> </head> <body style="background-color:#FFFFFF"> <title>oakhurstsvp.org</title> <link …

Member Avatar for kingwash
0
2K
Member Avatar for שנהב

I'm trying to learn OOP and i'm trying to create a class which will select me info from a table and a line that i choose. (trying my best to explain it good, not sure if i'm doing very well tho) This is my code in the class: class SelectQuery …

Member Avatar for JamesCherrill
0
5K
Member Avatar for phphp

Sir I have these codes <?php session_start(); require_once("includes/connectw.php"); $query = "SELECT distinct(MONTH(date)) AS 'month' FROM arrival order by date" ; echo $query; $result = mysqli_query($con,$query)or die ("Error". mysqli_error($con)) ; if(mysqli_num_rows($result)>0){ echo "<select name='per1' id='per1'>"; echo "<option selected='selected'></option>"; foreach($month as $name) { echo "<option value='".$name."'></option>"; } echo "</select>"; } ?> $result …

Member Avatar for cereal
0
120
Member Avatar for Erik_8

this is the html: <!--this is my best site so dont look up here and steal!--> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows 1252"> </head> <body> <table bgcolor="white" align="center" border="1" width="400" cellpadding="10" cellspacing="0"> <tr> <td> <h1 align="center">Forms</h1> <hr> <form action="php.php" method="POST" name="form1"> <p><strong>Name</strong><br> <input type="text" name="name" width="20"> </p> <p><strong>Password</strong><br> …

Member Avatar for AndrisP
0
429
Member Avatar for SubratPHP

Hi!, I am getting a warning message while trying to update values in textfield but the values are getting updated in database. here is my code, <?php $id = $_GET['id']; //print_r($id); $action = $_GET['action']; $page_name = mysql_real_escape_string($_POST['page_name']); $page_content = mysql_real_escape_string($_POST['page_content']); if (isset($action) && $action=='edit') { $sql = "SELECT * FROM …

Member Avatar for jkon
0
839
Member Avatar for chandnee

$sql = "SELECT doc FROM file_loc where file_id='1'"; while($results = mysql_query("$sql") or die("Invalid query: " . mysql_error()); { // set the header for the image header('Content-type: application/pdf'); header('Content-Disposition: inline; filename = "' .$results . '"'); header('Content-Transfer-Encoding: binary'); if (isset($results)) { $pdf = new FPDI(); // get the page count $pageCount …

Member Avatar for cereal
0
792
Member Avatar for rheiniel

Hi guys you might know this about qr code im just a newbie here, my problem is that i can't produce simple qrcode that will fetch the data through the database , i wanted to create a single row of database and display it as a qrcode, can you help …

Member Avatar for rheiniel
0
290
Member Avatar for Himanshu Chawla

Hello, I am new to Jquery and task is given to me to "make a progress bar for task completion " . For example: there are 4 Sections and all those 4 section have different youtube videos . After the user clicks the section and watch the video of that …

Member Avatar for diafol
0
337
Member Avatar for zebnoon1

hello my dear Friends, for a long time i was not here. I hope u all are geting well. again i have problem in login form anyone can guide me plz, code is below <?php include "conn.php"; if($_SERVER["REQUEST_METHOD"] == "POST"){ $username = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $password = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); …

Member Avatar for zebnoon1
0
287
Member Avatar for phphp

Sir I have these codes <script> function myCall() { var data = $("#datepicker-13").val(); alert(data) var request = $.ajax({ url: "ajax_arrival.php", type: "Get", data: { "date": data }, dataType: "html" }); request.done(function(msg) { msg = data.split("##"); $("#wh_bg1").val(msg[0]); $("#wh_jt1").val(msg[1]); $("#wh_wt1").val(msg[2]); // alert(msg); }); request.fail(function(jqXHR, textStatus) { alert("Request failed: " + textStatus); }); …

Member Avatar for diafol
0
217
Member Avatar for showman13

I've been using an .htacccess file to define a rewrite rule for extracting the username from the end of a url for years. The username has always been a combination of letters and numbers following a forward / and that is all, and it has been working just fine. Here …

Member Avatar for showman13
0
506
Member Avatar for Filipe_3

Hi everyone. When I deployed my site I got this error: Fatal error: Uncaught Exception: FPDF error: Some data has already been output, can't send PDF file (output started at /srv/disk6/blablasite/rel_funcionario.php:1). I'm using fpdf v. 1.81 and I am developing in PHP (using XAMPP and Notepad ++), in that platform …

Member Avatar for pritaeas
0
1K
Member Avatar for Henryu

I'm tyring to figure out a way to compare the information in 2 different tables from 2 different databases. If they are in the same database it's easy enough but I haven't found a way to do it from 2 different databases.

Member Avatar for jkon
0
246
Member Avatar for AntonyRayan

Can anyone give example for this? I have user dashboard with graphs and tables, maps. It takes sometime to load after successful login. For that , I need a loader which waits till the page loads all the data.

Member Avatar for diafol
0
176
Member Avatar for malatamil

file read and compare with array values and remove the row values from file fopen("sample.txt",'rb'); read the first column content from file and compare with array value,if it matches then remove the entire row from file.

Member Avatar for pritaeas
0
244
Member Avatar for ramsiva

below is json format , please help me how to do in php using json_encode [ { "test": "1", "ex": { "ex1": {}, "ex2": {} } } ]

Member Avatar for amith_ami
0
180
Member Avatar for Jiby_1

In php we all know file_get_contents("https://xxxxx/p.php); is there any similar function like in Lua programming language

0
110
Member Avatar for SimonIoa

I get this error when ever i try to upload a file. Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0 Does anybody knows what …

Member Avatar for SimonIoa
0
3K
Member Avatar for Jiby_1

The End.