39,326 Topics

Member Avatar for
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
170
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
157
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
100
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
93
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
149
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
93
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
244
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
598
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
142
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
86
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
188
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
115
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
222
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
180
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
233
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
132
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
99
Member Avatar for anita_86

Hi! I am having trouble in checking userlevel at the time of login. The pages set for admin level are not displayed if the user is not admin, but admin cant access the pages either!!:D Please solve my problem! My code is: [CODE]<?php if(!isset($_SESSION['userlevel']) || empty($_SESSION['userlevel'])) { if ($_SESSION['userlevel'] == …

Member Avatar for anita_86
0
108
Member Avatar for bbinais

if my php website is ideal for 30 minutes it shuld be redirected to login page please help me.... this is my checkuser.php [code=php] <?php session_start(); include("config.php"); if (isset($_POST['sub'])) { $myusername = $_POST['txtusername']; $mypassword = $_POST['txtpassword']; $name = stripslashes($myusername); $password = stripslashes($mypassword); $myusername = mysql_real_escape_string($name); $mypassword = mysql_real_escape_string($password); $sql = …

Member Avatar for Shanti C
0
135
Member Avatar for MackeyJenkins

Hello I'm trying to name a uploaded image to my website with a random number / letter combination and if the number it generates is taken it makes a new one untill it finds a free one, then i need to insert the url of the image into a table …

Member Avatar for MackeyJenkins
0
100
Member Avatar for hussainiat

function tempdbentry() { var regex=/^[0-9A-Za-z]+$/; //^[a-zA-z]+$/ var myname = document.ItemEntryForm.iname.value; var mycat = document.ItemEntryForm.selectcat.value; var mypic = document.ItemEntryForm.ipic.value; "<?php $phpmyname = '?><script language=javascript>document.write(myname);</script><?php'; $phpmyname = str_replace('?>', '', $phpmyname); ?>" "<?php $phpmycat = '?><script language=javascript>document.write(mycat);</script><?php'; $phpmycat = str_replace('?>', '', $phpmycat); ?>" "<?php $phpmypic = '?><script language=javascript>document.write(mypic);</script><?php'; $phpmypic = str_replace('?>', '', $phpmypic); …

Member Avatar for Airshow
0
1K
Member Avatar for Wattsits

im new to sql but long story short. just installed mysql server 5.5 and started the configuration and it failed to apply the security settings with error message 2003, cant connect to server on local host. so i cant finnish the installation and canot run mysql.exe. it just beeps at …

Member Avatar for Wattsits
0
83
Member Avatar for bmj1474

I am trying to set up a Contact form on my website that will: [LIST=1] [*]Gather the user's info [*]Validate that none of the required fields are empty, if they are, then redirect the user back to the contact form page to fill in the empty field [*]Send it to …

Member Avatar for diafol
0
152
Member Avatar for Kligham

Hi, I have a html file Top.htm: [CODE]<form action="" method="post"> <fieldset> <input id="searchbox" type="text" name="zoekfunctie" value="Zoek..." /> <input type="submit" name="zoekbutton" value="Zoek" /> </fieldset> </form>[/CODE] I then include this page in my index page (and in many more pages to come): [CODE]<div id="top"> <?php include("Top.htm"); ?> </div>[/CODE] Now the problem is …

Member Avatar for Kligham
0
186
Member Avatar for turt2live

Hello, I have run into a problem where I need to update multiple rows in an SQL table at once. I have found and tried to use the tutorials on setting an ID and then looping through the data that way ([url]http://www.daniweb.com/forums/thread35096.html[/url]) but my setup is a little different: The …

Member Avatar for diafol
0
139
Member Avatar for whiteyoh

Hi all, Im a bit stuck. I think im staring the answer right in the face but cant see it. Im after a query that references 1 table. Its output will be each unique source code along with a total of grouped data from a single column. SOURCECODE Count of …

Member Avatar for tiggsy
0
82
Member Avatar for Awah Mohamed

hey people . i am not a very good programmer . i am biginner in web designing . not a very biginner . i can design a full website in php/mysql and a can create a powerful php apps but my main problem is seo (search engine optimization ) . …

Member Avatar for Awah Mohamed
0
114

The End.