38,020 Topics

Member Avatar for
Member Avatar for natchattack

Ok i am pretty new to php so i could be missing a simple trick here. I need to be able to read all text files within a given directory and have them appear in a combo box by file name. After searching for what seems like forever, i can …

Member Avatar for esilva002
0
235
Member Avatar for charvie

Is Multiple download files possible using PHP? We did find a code for single download. but we need it for multiple download. can anybody help me? Thank you! :)

Member Avatar for FloridaCI
0
131
Member Avatar for rkayd

I am wondering if this is possible: I have a web page that displays a table which includes Work Order Numbers. I would like to make the numbers into a link that when I click it it automatically brings up an edit form for that particular record. For example, here …

Member Avatar for rkayd
0
178
Member Avatar for davy_yg

Hallo all, I try to install joomla (php based CMS) in my IIS server. When I run the file (index.php): [url]http://localhost/Joomla/[/url] (it only shows me a list of file names in the folder. [url]http://localhost/Joomla/index.php[/url] (it shows me the php codes in IE instead of showing me the running joomla application. …

Member Avatar for almostbob
0
148
Member Avatar for cliffcc

How to rewrite the code so do the loop in this case? [code] <?php require("connect.php"); $banner1 = mysql_query("SELECT * FROM banner WHERE bannerid ='1'"); $row1 = mysql_fetch_assoc($banner1); $bannerpath1 = ($row1['bannerpath']); $bannerheight1 = ($row1['bannerheight']); $bannerwidth1 = ($row1['bannerwidth']); $bannerdescription1 = ($row1['bannerdescription']); $banner2 = mysql_query("SELECT * FROM banner WHERE bannerid ='2'"); $row2 = …

Member Avatar for perfectweb
0
176
Member Avatar for klemme

I am trying to send data from a contact form to my email adress. IT IS FROM LOCALHOST - THE SITE IS NOT ONLINE. My form looks like this: [CODE] <form name=form1 method=post action=send_contact.php> <p>Emne:</p><input name=subject class=input type=text id=subject size=64> <br /><br /> <p>Forespørgsel:</p><textarea name=detail cols=50 rows=7 id=detail></textarea> <br /><br …

Member Avatar for digital-ether
0
278
Member Avatar for abhi10kumar

Some times not saving date time buy I am inserting date and time, but storing 0000-00-00 00:00:00 [U]Here is the code[/U] <?php include("connect_mysql.php"); $date=date("Y-m-s H:i:s"); mysql_query("insert into buy_db (from_site, date_time_buy, model, ip) values ('".$_REQUEST['site']."', '$date','".$_REQUEST['model']."', '".$_REQUEST['ip']."')"); //header('Location:'.$_REQUEST['url']); ?> Attachment including: 1. Data in Table 2. Table Structure

Member Avatar for vibhaJ
0
163
Member Avatar for Xaelian

I'm making a PHP script for controlling my mssql databases. But I ran into a couple of problems. The first problem is that I want to make a combobox out of all the databases in my microsoft SQL server. The following SQL syntax gives the results that I'm looking for, …

Member Avatar for Xaelian
0
86
Member Avatar for raghujosh

I am doing a preg_replace on a string and the replacement contains a count variable that needs to be placed inbetween the pattern. But I am having difficulty doing that as the count is taken as a pattern and not as a count variable. Here is my code. $count = …

Member Avatar for vibhaJ
0
120
Member Avatar for dineshsurve

<?php require_once('config.php'); $ID=$_SESSION['ID']; $UserID=$_SESSION['UserID']; $tbl_name = "tbl_users"; //To check Data Insersion $Curr_Password=$_POST['currentpassword']; //echo $Curr_Password; $new_Password=$_POST['npassword']; $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); mysql_select_db(DB_DATABASE, $link) or die( "Unable to select database"); $query="UPDATE $tbl_name SET Password = '".$new_Password."' WHERE Password='".$Curr_Password."' and id=$ID and Status=1"; echo $query; $result=mysql_query($query,$link); if(mysql_num_rows($result) ==1) //line no 38. { echo …

Member Avatar for vibhaJ
0
265
Member Avatar for raghujosh

How can we establish an or condition in a regex pattern. I would like to match the following in a string ">" OR "/>". How can I do that using regex?

Member Avatar for vibhaJ
0
80
Member Avatar for jacksantho

Hi, I uploaded the excel and the data is successfully inserted to the database, by submitting the "submit button" using php script. There is an final stage for me to do is the validation of the excel before inserting the data to the database. I don't get any idea on …

Member Avatar for chrishea
0
1K
Member Avatar for IWDesigns

hi, im looking for a simple script that will let users draw basic images online. i just need something with a pencil/paintbrush and colours, does anyone know of anything in php or javascript that is available? or could anyone point me in the right direction so i could learn how …

Member Avatar for diafol
0
119
Member Avatar for Dannis86

I'm trying to learn to program with PHP, and i got XAMPP. I watched a tutorial on youtube. It should say, ''Please enter a username and a password''. But instead it just shows a blank page. My index= [ICODE]<html> <form action='login.php' method='post'> Username: <input type='text' name=úsername'><br> Password: <input type='password'name='password'><br> <input …

Member Avatar for Dannis86
0
2K
Member Avatar for bharanidharanit

Hi, I would like to develop ecommerce site using fuzzy logic. Any ideas? Where to start with? got confused in writing rules for it and implementing the filtering concept based on the user visit.

Member Avatar for chrishea
0
80
Member Avatar for buymypies

So the scenario is on my page I have a form along with a countdown timer. If the countdown timer reaches 0:00 I have a statement which activates and is supposed to submit the form as it stands. here is that statement: [CODE] if (Todays_Date >= Target_Date) { clearTimeout(timeoutID); $('#testForm').submit(); …

Member Avatar for TySkby
0
136
Member Avatar for Amr87

Hello Everyonr , I`m Junior PHP developer , and I have problems using phpmailer v .9 I`m using Windows 7 OS and I don`t know if I have SMTP client or not anyway, I used the following code [CODE]<?php require ("includes/phpmailer/phpmailer.inc.php"); require ("includes/phpmailer/smtp.inc.php"); $to_name = "Site Admin"; $to = "chemist_amr87@yahoo.com"; …

0
44
Member Avatar for llamaboy

Hi all, I have few php pages. One is a dynamic form, one is an file holding some arrays, one is a script that is the action for the form and the other two are to update the array. What I am trying to do is append an array using …

Member Avatar for llamaboy
0
195
Member Avatar for ivan3510

Hi! I have a php code that reads xml file. In xml file I have the german letter ö (this xml file is saved as UTF). This is mistake. I don't get ö. I get some strange carachters (like ö). Can somebody help me? Thanks a lot!

Member Avatar for twiss
0
132
Member Avatar for methuselah90

hi everyone i am trying to get validate captcha on my form but i would like validation to take place on the form without a change of state. currently the page refreshes to display the error message and the page loses all form values and i can understand that this …

Member Avatar for twiss
0
230
Member Avatar for holmiboii

I've just finished the form for e-mail with auto fill subject after choose one in dropdown menu. But I seriously don't know how to redirect it to send to my E-mail could someone help me out? Thanks! ^^ E-mail = [email]holmiboii@infernixe.com[/email] Website: [url]http://www.infernixe.com/main/contact.php[/url] [CODE]<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" id="contactform"> …

Member Avatar for holmiboii
0
363
Member Avatar for klemme

I am trying to send email from my contact us form on my site. At the moment i am testing it on my localhost, with these php.ini settings: [CODE] [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = pop3.mail.dk ; http://php.net/smtp-port smtp_port = 110 ; For Win32 only. ; …

Member Avatar for digital-ether
0
177
Member Avatar for cossay

Is dreamweaver for professional developers or people who have very little knowledge of programming?

Member Avatar for digital-ether
0
113
Member Avatar for jacksantho

Hi, I will be uploading the EXCEL data (or CSV data). By clicking the SUBMIT BUTTON, i wants [B]to open and to read the data[/B] of this uploaded excel file and at the same time wants to save this uploaded excel data(content) to my database. I don't wants to save …

Member Avatar for twiss
0
103
Member Avatar for cliffcc

How to creat the button for 'Export'? Thanks! I want to combine below two sets of code [CODE] <?php echo"<a href='export.php?'>Export</a> ?> [/CODE] [CODE] <?php echo"<input type='button' value='Export'>"; ?> [/CODE]

Member Avatar for cliffcc
0
105
Member Avatar for loopylou8

Hi, I am working on a gallery feature for my website. Currently I have the images displaying using a mysql query which returns the images and a product description for each image. I would like to add to the gallery by having a clickable link under each picture which will …

Member Avatar for Sorcher
0
111
Member Avatar for newbie14

Dear All, I have seen this site [url]http://www.sendesignz.com/index.php/jquery/77-how-to-create-expand-and-collapse-list-item-using-jquery[/url]. There is a nice code on the expand and collapse. The problem now in my database I got one table is the route and one is the route details. So when expand will show the route details and close just show the …

Member Avatar for newbie14
0
111
Member Avatar for Joshua Kidd

Hello all, I am having an issue. The issue being is that i have a page connecting to a database and displaying it in tables. The problem is, is that I have one column in my page where I want to do this: [CODE]<td bgcolor="#817679"><center><? echo $rows['Airport']; ?><? echo $rows['Type']; …

Member Avatar for almostbob
0
81
Member Avatar for transplantedNYr

So I have these two very basic tables. CODE PROJNAME ------------ -------------- 101 ProjectX 222 ProjectY 355 ProjectZ 973 ProjectAlpha ID NAME PROJCODE HOURS ----- ------------ -------------- ------------ 55055 Smith 101 20 55055 Smith 222 10 39002 Bob 973 25 00001 Preston 355 5 10000 Logan 355 5 00777 Bond …

Member Avatar for transplantedNYr
0
151
Member Avatar for cuonic

Hi... Again :) Just after i fixed my previous problem thanks to me failing to put an echo before ".." I worked out that the incorrect image was showing. I'm making a stock trading website, and there will be an red arrow pointing downwards when it detects at - (negative …

Member Avatar for cuonic
0
140

The End.