39,402 Topics

Member Avatar for
Member Avatar for cubalibras

Hello, I am having a problem displaying database query in a DIV. I can display the data without issue using this code: [CODE]<?php if (isset ($_POST ['submitted'])) { include ('connect_php_projects.php'); $category = $_POST ['category']; $criteria = $_POST ['criteria']; $data = mysql_query ("SELECT * FROM discipline WHERE $category LIKE '%$criteria%'"); while …

Member Avatar for diafol
0
2K
Member Avatar for fantasma

I there everyone. I've been wondering if someone could help to glue up my broken head with this one. I've got some "labels" which show up, dynamicaly, the data coming from mySql through PHP. In those labels I've got 4 buttons for uploading an image, deleting the respective entry, editing …

Member Avatar for fantasma
0
192
Member Avatar for arshadshaikh

Hello every body, Can any body help me for the 'video thumb' issue. I am using Embed code provided by site like youtube and vimio. But when I use youtube i can get and show the thumb image of that video. But I can not display or get the thumb …

Member Avatar for diafol
0
251
Member Avatar for crenfrow

Hello, I am trying to make a contact us form for a website. The form and accompanying php should work, i think. I am new to php but know how to program in general. The form and verify.php are below with some modifications for security. contact.php snippet [CODE] <form method="post" …

Member Avatar for pritaeas
0
139
Member Avatar for tcollins412

Ok, i have a couple of questions. I am learning php and i built a log in and a register page. When u register it auto-increments the id row and the user name goes to row "user" in a mySQL database. now how would i make it so it says …

Member Avatar for TySkby
0
145
Member Avatar for punithapary

Hi, I created some web pages using php.I copied those pages from my system and paste it into FTP afterthat if i run my website it wont show any design which is in my page.If i copied my html pages and paste that into ftp that time it was working.I …

Member Avatar for chrishea
0
117
Member Avatar for Imratzio

Hi all, I have finished my php for dummis book and have few errors that I could not fix. I show u my first example. [CODE]<?php /* Program: showpets.php Description: Displays all the pets in a category. Category is passed in a variable from a form. The Information for each …

Member Avatar for Imratzio
0
139
Member Avatar for mrcniceguy

i have table users in my database))the host of my website is in US and i am currently leaving in Russia. so when i display date/time in web page it shows time as if i am in US also my clients in different countries they are experiencing the same problem.\ …

Member Avatar for mrcniceguy
0
81
Member Avatar for muralibobby2015

hello.. i have to write htaccess for mysite. actually we have two domains. '.com and .in' . for example i opened '.com' site it will actomatically access files from '.in' domain. there is no files in .com site. how to write .htaccess for this. thanks.

Member Avatar for muralibobby2015
0
142
Member Avatar for Moderns

Hello, I have folder on remote FTP server that is updated with more than XML file with different names in asynchronous (not scheduled time), I want to make a PHP application that fetch any new XML file arrives at the FTP automatically, so how can I make the PHP application …

Member Avatar for pritaeas
0
1K
Member Avatar for chirag321
Member Avatar for eyenoorul

i am using these codes to generate linear graph from mysql... <?php ini_set('display_errors', 1); error_reporting(E_ALL); session_start(); //if(isset($_SESSION['user'])) { //function generateGraph(){ include('connectsml.php'); //include('jpgraph/src/jpgraph.php'); //include('jpgraph/src/jpgraph_bar.php'); include ('jpgraph/src/jpgraph_line.php'); include ('jpgraph/src/jpgraph_log.php'); //dapatkan nama ladang; $ldgcode=$_POST['ldgcode']; $year=$_POST['year']; $sqllsblock="select * from ladang where ldgcode='$ldgcode' order by block"; $reslsblock=mysql_query($sqllsblock); if ($rowlsblock=mysql_fetch_array($reslsblock)){ do{ $data[] = $result['yield']; $y2data[] = …

Member Avatar for eyenoorul
0
240
Member Avatar for azegurb

I hava script with both $this keyword and without it. Each one does the same thing. I cant understand what does $this do. this with [B]$this[/B] [CODE]class Time { var $sTime; function GenerateCurrentTime(){ $this->sTime = gmdate("d-m-Y H:i:s"); return $this->sTime; } function ShowFutureDate($iAddDays=0){ $this->sTime = gmdate("d-m-Y H:i:s", strtotime("+" . $iAddDays . …

Member Avatar for azegurb
0
109
Member Avatar for anita_86

Hi!I am a newbie in PHP & have got a task of making event manager in PHP that too with different user levels. The problem is I cant find the exact code I am looking for. Can anyone please guide me how to display the events from database according to …

Member Avatar for anita_86
0
121
Member Avatar for reco21

Hello, I'm making a tagging system for a script. The tagging system is much like the one here. be it's not normalized like this one. It's a single table in my database with three columns. uid | id | name The 'id' field is not auto increment. It is a …

Member Avatar for reco21
0
191
Member Avatar for kkjay

Hi Guys, Aplologies for the length but I wanted to be clear. I'm trying to make a website where people can update their status's (like facebook). Just learning PHP. I have added a functionality whereby one can update their status(text only) or can update their status(text and upload a photo …

Member Avatar for codewall
0
124
Member Avatar for terrymold

Hi everyone I have over 1500 mp3 files that are available for download on a web site I look after. The files are various sizes and split between 20 folders. One folder has about 600 files. What the owner would like for his visitors is to be able to select …

Member Avatar for cooperspc
0
823
Member Avatar for Hakarune

So I got help from here earlier with one problem and a few more have arisen, the biggest is for some reason my checkbox and dropdown array won't store the data and when it's supposed to check to verify there is at least 1 selected of each nothing happens... To …

0
97
Member Avatar for oree

hey there, whenever i send an email i get "me" as sender and when opening the mail me@127.0.0.1 to me shows up in gmail. here is my code: [CODE] $head = 'From: $buyeremail' . "\r\n" . 'Replay-To: $buyeremail'. "\r\n" . 'X-Mailer:'. 'PHP/' . phpversion(); $name = $_POST['buyername']; $to = $_POST['email']; …

Member Avatar for TySkby
0
135
Member Avatar for dodgeitorelse

Hi all, I am using huvt version 1.0 server tracker to track all of our servers. With this program I am able to get players scores (refreshed at 60 second intervals). What I would like to do is take the players scores and add to my database so that I …

Member Avatar for ddymacek
0
91
Member Avatar for billmudry

Lately I have been learning how to use 'sessions' (with some degree of success) for transferring parameters between pages. I have come across a new error report that is so weird that I would not be able to envision how I could do a Google search to find what is …

Member Avatar for billmudry
0
155
Member Avatar for Imratzio

Hi all :), im towards the end of the php for dummies book and it telling me how to build a e-commece style pet Catalog. I show the code [CODE]<?php /* Program: addpet.php Description: adds new pet to the databse. A confirmation page is sent to the user. */ if(@$_POST['newbutton'] …

Member Avatar for Imratzio
0
157
Member Avatar for chandaboy

Hi, everyone, if any buddy have any tutorial of how to send the values from a textbox thorugh iphone and send this value into php file through post, if you have any tutorial then plz send it to me..

0
67
Member Avatar for chandaboy

I m making an app where i need to get facebook friend status, i can get the statuses when doing this coding.. Code: [code]NSMutableDictionary * params = [[NSMutableDictionary alloc] init]; [params setValue:@"100000********" forKey:@"uid"]; [params setValue:@"1500" forKey:@"limit"]; [params setValue:@"results" forKey:@"callback"];[/code] but when im using a dynamic value like this : Code: …

0
77
Member Avatar for khakwani

I want to convert an XML file into SOAP. And then i have to send that SOAP messgae to server. How can i do this. Thanks in advance

0
86
Member Avatar for riverbay_media

I am very new to the world of PHP and MYSQL programming and have run into a roadblock. I am trying to program an admin area of a site i am working on and am coming up with the following error when the page is loaded [QUOTE]Parse error: syntax error, …

Member Avatar for karteek.vemula
0
70
Member Avatar for cguan_77

hi guys, how to add an email address for this statement: mail('myemail@email.com',"title",$text,$headers); to add another email for this can put like this: mail('myemail@email.com,anotheremail@email.com',"title",$text,$headers); what's the correct statement for this? thanks in advance.:)

Member Avatar for cguan_77
0
89
Member Avatar for sanjaypandit

i have a problem in query i have attached a sql for query and my searching code is following [code]<div> <form name="frm" action=search.php method=post> <select name="facilities[]" id="facilities[]" style="width: 130px;" multiple="mutiple" size="3"> <option value="17">Conference hall</option> <option value="16">Meeting</option> <option value="14">Danceing</option> <option value="15">Swimming</option> <option value="18">A/c room</option> <option value="19">Dining hall</option> <option value="20">Cooking facility</option> <option …

Member Avatar for Shanti C
0
80
Member Avatar for samaniac

Hey guys, I'm getting the above error, could any of you tell me why? Here's the code [CODE]$mysqli=new mysqli("localhost", "***", "***","***") ; if(!$mysqli){ die("Database error"); } function checklogin($username, $password){ global $mysqli; $result = $mysqli->prepare("SELECT * FROM users WHERE username = ?"); $result->bind_param("s", $username); $result->execute(); if($result != false){ $dbArray=$result->fetch_array();[/CODE]

Member Avatar for hielo
0
1K
Member Avatar for lf.gene

Hi all, how do i compare one date with a list of array which consist of date? [ICODE] $date = 1990-12-3 $viewSchedule = "select * from schedule where id_user = '$idHairstlylist'"; $scheduleResult = mysqli_query($dbConn,$viewSchedule) or die(mysqli_error($dbConn)); while ($row1 = mysqli_fetch_array($scheduleResult)){ for($j=1;$j<=4;$j++){ $day[$j] = $row1['od_week'.$j]; if ($day[$j]!= $date){ echo 'hi'; } …

Member Avatar for mschroeder
0
630
Member Avatar for Borzoi

I'm currently building a website for a small charity and they've asked me if it was possible to make an admin area where they could access some of their work when they're out and about so they don't have to fill in forms twice. I can do this as I …

Member Avatar for Borzoi
0
172
Member Avatar for tape enterprise

hello, I am currently working on CMS and I want a way for the user to upload images to go along with their post how would I upload the image with php and then add it into the database for later retrieval when people look at the posts?

Member Avatar for tape enterprise
0
159
Member Avatar for paolonewage

Hello, I am trying to make a simple PHP web page as an assignment with register and login form and I am stuck in asking PHP to verify the password when it is wrong. It basically recognizes the ID & PASSWORD when they are right and send me through to …

Member Avatar for paolonewage
0
101
Member Avatar for pcchella

Hi all, In this program I want to display row one by one in table format. Please help me Regards, chelladurai P.C. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Revaluation : Sona College of Technology</title> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> <link rel="stylesheet" href="print.css" type="text/css" media="print" /> …

Member Avatar for TySkby
0
96
Member Avatar for astroboy44

Hi guys,I am trying to force download files from ftp server to my local machine using the following code. [CODE] <?php header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"" . basename($filename) . "\""); header("Content-Transfer-Encoding: binary"); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'ftp://username:password@localhost/'.$path.'/'.$filename); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec ($ch); curl_close($ch); ?>[/CODE] The above code works perfectly …

Member Avatar for astroboy44
0
1K
Member Avatar for t3chpr0digy

I have a help desk system in which I specified some default sort settings and what not. I've recently added drop down boxes to this, in hopes that a user can change the view settings for themselves. The assigned to: works fine, but I'm not sure how the person prior …

Member Avatar for sutt0n
0
150
Member Avatar for Moderns

Hello, I have php page that takes approx. 30 seconds to load! This page returns paginating data, 25 row per page. I am using correct query like "SELECT field1, field2... FROM table1 where..." My page has scripts tag like: <script>js_function</script> Now I have 25 rows per page, each row has …

Member Avatar for diafol
0
243
Member Avatar for styleest

Hi fellow programmers, i am designing a Student management system with PHP MySQL and using dreamweaver for editing. I need to do audit trails; that is to capture every operation any users does on my website. I was able to capture the logging in using the codes below but i …

Member Avatar for styleest
0
95
Member Avatar for AdriftUniform

Hi, I am trying to create a group of html links that are dependant on two arrays. The data of the arrays is populated from a mysql database, here is my code: [code=php] <?php include_once 'title.php'; include_once 'checkuser.php'; if (isset($_GET['view'])) $view = sanitizeString($_GET['view']); else $view = $user; $sql = "SELECT …

Member Avatar for AdriftUniform
0
251
Member Avatar for Blacklister

i want to update some links and data on a web page without the web page getting refreshed ..... please help me with this ....

Member Avatar for ketan_156
0
606
Member Avatar for kings

i created one directory using mkdir.now i want to create another directory inside previous directory. [CODE=php] $uploaddir1 = "resumes/".$_SESSION["uss1"]."/".$uname; echo $uploaddir1; if(is_dir($uploaddir1)) { echo "Exists!"; } else { echo "Doesn't exist" ; mkdir($uploaddir1,0777); print "created"; } [/CODE] output is Doesn't existcreated.but when i open $_SESSION["uss1"] directory the new directory was …

Member Avatar for pandikamal
0
144
Member Avatar for kardklub

Im struggling with updating the sql database for all fields . For example i have 2 select boxes in my order and if i wanted to amend both of them i change there details and press submit. The problem is i dont know how to loop it to go to …

Member Avatar for kardklub
0
89
Member Avatar for michael1999

Hi i have scripts that redirect page for language settings thanks the guy who helped me sorted out my first problem now i am facing another problem there is a script working in [url]www.server.com[/url] if you type only [url]www.server.com[/url] now i created function and if you type [url]www.server.com?redir=1[/url] this function …

Member Avatar for tiggsy
0
191
Member Avatar for suhnako

recently i downloaded [COLOR="Red"]xampp-win32-1.6.6a-installer.exe[/COLOR] with the help youtube.com......i followed all the steps until i finish downloading. fortunately, it was successful. after the download, the video shows the deletion of all the content of [COLOR="Red"]htdocs[/COLOR] [I]folder[/I]...i am now in a doubt if i will also delete all the files inside the …

Member Avatar for pritaeas
0
117
Member Avatar for Sorcher

Hello peeps! I really need a pagination for this code: [CODE]<body> <div class="myFiles-content"> <div id="myFiles-upload"> <table> <tr> <td class="login-form"> <form action="index.php?page=user_upload2" method="post" enctype="multipart/form-data"> <input class="button1" type="file" name="uploaded_file"><br> <input class="button1" type="text" name="description" maxlength="60" value="Description" onClick="this.value='';"> <input class="button1" type="submit" value="Upload"> </form> </td> </tr> </table> </div> </div><br> <table cellpadding="0" cellspacing="0" border="0"> <tr class="myFiles-thtable"> …

Member Avatar for pritaeas
0
228
Member Avatar for damsean102

I've built a blog where the user can attach a PDF to a post. This all works fine apart from one small minor detail. I call the details from the MYSQL database on the home page and use a while loop to go through the results. In the DB there …

Member Avatar for damsean102
0
1K
Member Avatar for solvision

Hey guys, nice to meet you. I have PHP/MySQL driven site. I have finally found an AJAX script to load my data in a div on the same page. It works if i click a static link, but the main purpose i need is to click link with dynamic album …

Member Avatar for pritaeas
0
183
Member Avatar for tripwirekse

Hello, I'm very new to PHP and am trying to code a basic content management system. Every time I try and test my login I get a blank page and the same notice pops up: Notice: Undefined index: action in test\newsite\transact-user.php on line 10 I've searched high and low for …

Member Avatar for pritaeas
0
236
Member Avatar for airick10

I need help with my page. I am taking two variables from another page as Posts. The two variables are numbers that I will later need to change to names they are assigned to in my table. I then start to build an html table and form. My SQL table …

Member Avatar for pritaeas
0
134
Member Avatar for jithinsil

i wanted to create a small search engine using php.. I want to fetch data from mysql database. ina textbox if any one try to search one thing, at the same time all related things are need to be come, example if one person want to check cricket, at the …

Member Avatar for Shanti C
0
101

The End.