39,321 Topics

Member Avatar for
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
87
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
267
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
121
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
138
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 crazycat503

I have a series of video links. On each click, I want to open the video modaly. I thought of using internal divs for each video (hidden at page load) but then it didn't seem to be a good practice since I would need 5 div for each video's player. …

Member Avatar for Airshow
0
134
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
263
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
366
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
178
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
141
Member Avatar for big24fan

I have a MySQL Database with several tables that have the same fields in them. I have updated the "cp_ads_welcome_msg" field of the "WP_7_OPTIONS" table with the data that I would like to update all the other tables with. This code works if wanted to update each table one at …

Member Avatar for EmilyJohnson
0
75
Member Avatar for veledrom

Hi, I am using this function to download an image that I uploaded before by using Codeigniter. Function successfully downloads it with same name but when I try to open it, I get an error which says "Cannot be opened... file format... is not supported..." Please help. Thanks CONTROLLER: [CODE]public …

0
75
Member Avatar for karthik_ppts

Hi Frendz, I need to include speedometer application in my vehicle tracking system. Actually the current speed of the vehicle is stored in database. I need to show that speed in analog speedometer. If anyone have experienced with speedometer application in php then help me.

Member Avatar for karthik_ppts
0
287
Member Avatar for FrustratedOwner

I'm not sure if this is the right place. All my research that I've done says yes. I'm just starting out in building a site. I've got some coding knowledge but would rank myself a novice, just starting out. I'm looking to build a poll generator to insert into my …

Member Avatar for twiss
0
145
Member Avatar for branding4you

I have table in mysql, have values in row i want when page loads the highest value is alwyas the selected one. Im using two queries first one pulls the top value and adds it to box then it populates the rest, so it shows this top value twice, is …

Member Avatar for branding4you
0
263
Member Avatar for veledrom

Hi, I want to buy a Codeigniter book to learn its framework and develop PHP applications with it. I've been using PHP about 4 years but never used any kind of framework before. Which one of these books would be good for me to get staring: [URL="http://www.amazon.co.uk/CodeIgniter-Professional-Development-Adam-Griffith/dp/1849510903/ref=sr_1_1?s=books&ie=UTF8&qid=1304357639&sr=1-1"]CodeIgniter 1.7 Professional Development[/URL] …

Member Avatar for veledrom
0
197

The End.