39,316 Topics

Member Avatar for
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
489
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
387
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
427
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
791
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
484
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
175
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
179
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
Member Avatar for CreatorZeus

My Error info isnt being clear enough for me to understand the problemIs there anything worng here so i can continue on lookng for the probelm: $sql = "INSERT INTO boards ( title, genre, creator, tagline, intro, remessage, visability, recruitment, reqsheet, reqdice, reqgroup, ppweek) VALUES ( $title, $genre, $creator, ". …

Member Avatar for diafol
0
414
Member Avatar for SimonIoa

hello i want to upload an audio file. i specified the location but the file doesnt go there. it stores the path in the row in the table on database but it doesnt store the file on the folder. i define the upload path on my config file define("UPLOAD_PATH_AUDIO", "uploads_audio/"); …

Member Avatar for diafol
0
942
Member Avatar for spluskhan

Hello, I have two tables in mysql using php> 1) Consumers 2) Monthly Billing In Consumers that table contains about 100s of Consumers , and it increase monthly. 2) Monthly Billing for Billing. What i want to do ? Is there are any way that i can generate monthly billing …

Member Avatar for diafol
0
889
Member Avatar for Faisal_13

Dear Developers, This is the part of my blog.While adding new post to my blog the category option not updating to database add_post.php <h2>Add Post</h2> <?php //if form has been submitted process it if(isset($_POST['submit'])){ $_POST = array_map( 'stripslashes', $_POST ); //collect form data extract($_POST); //very basic validation if($postTitle ==''){ $error[] …

Member Avatar for Faisal_13
0
538
Member Avatar for jkon

I found myself starting to answer a question that I have answered many times , so I thought why not making a code snippet and just reference this. This is a short code snippet only to demonstrate how this thing work (with apache and rewrite engine on) , in real …

Member Avatar for jkon
2
657

The End.