39,320 Topics

Member Avatar for
Member Avatar for dineshphp
Member Avatar for xuexue

is there anything that can replace a butoon in php which acts like a button? because we all know that buttons in php act independently, meaning once button a is clicked, the functions of button b will be disregarded already right? because i have several buttons in the page and …

Member Avatar for xuexue
0
101
Member Avatar for SuntechWebsites

Hello, I am looking for a few things... 1. How to put an upload field into a web page to that I can upload files to a directory on server. 2. I want to be able to choose different directories to upload it to (clients) 3. I would like to …

Member Avatar for SuntechWebsites
0
77
Member Avatar for drewpark88

I am trying to figure out the best way to configure my search bar. It will be searching my website for posts members have posted. I tried this but this does not work. Here is the PHP file that I use as the form action. Do you know how or …

Member Avatar for drewpark88
0
115
Member Avatar for Stefano Mtangoo

What are your thought on this? There are many framework there and my thought was CakePHP is rather popular. I'm I wrong? What do you think?

Member Avatar for Stefano Mtangoo
0
105
Member Avatar for xylude

I need to replicate the encryption shown below: [code] def self.encrypt(password, salt) Digest::SHA1.hexdigest("--#{salt}--#{password}--") end [/code] I am trying something like this to no avail: [code] $salt = 'edc93eaf81aa1d64368c35213f192bb4ea81d20d'; $password = $_POST['input']; $password = sha1($salt.$password); echo "password sha1 value: " . $password; [/code]

Member Avatar for ruby_rocks
0
542
Member Avatar for cane23

i have a small problem deleting from the data base that i have created using a form. this is the error that i am getting on the webpage Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right …

Member Avatar for MrYrm
0
138
Member Avatar for benk1

Hi guys, I have a simple php shopping basket which stores the products in an array. To add a new value into the array, I have the following: [CODE]$cart .= ','.$_GET['id'];[/CODE] I was just wondering if there is an equivalent line of code to remove a single array value with …

Member Avatar for MrYrm
0
96
Member Avatar for aditi_19

Hi, I am trying to send email in php for which i installed PEAR mail package. The installation is fine but when i try to run the email script, i get this error : [B]Failed to connect to smtp.csaauto.com:25 [SMTP: Failed to connect socket: No connection could be made because …

Member Avatar for pritaeas
0
181
Member Avatar for ramakrishnankt

Hi, my table has id,startdate,enddate,starttime,endtime,salelocation,imagename both dates are in date type and starttime and endtime are in time type. I want to check if my data consisting of startdate,starttime,enddate,endtime cannot be present in table and must be a valid date and time duration. How to check this valid date and …

Member Avatar for ramakrishnankt
0
144
Member Avatar for whiteyoh

Hi all, Im pretty ok with PHP and have recently been breaking down a project using foreign keys to identify various bits of information. This is my problem. I have an items table, which is made up of ID, country and area. It previously has the actual word of the …

Member Avatar for pritaeas
0
128
Member Avatar for ravi0703

Hi, My Name is Ravi Shankar. I have query in PHP Code. I had written the code as if client click on check box, it will generate 16 digits random number in adjacent text box. My query is, before display the 16 digits random number i have to show a …

Member Avatar for diafol
0
87
Member Avatar for vishalonne

Hi Every One I am designing one site in Zen Cart 1.3.8a almost every thing is completed, here I came for one simple help from you all. I want few text fields and drop down boxes should generate when user click on Add new item Button and the previous entered …

Member Avatar for vishalonne
0
156
Member Avatar for veledrom

Hi, I installed vsftp and filezilla. I use host:127.0.0.1, user:root, password:(don't have any), post:21 to connect to ftp but not successful. Does anyone know how to do this? Thanks

Member Avatar for veledrom
0
78
Member Avatar for ElegantElephant

I have a dropdown list and the selected item depends on the record the form is for. How do I allow PHP to determine which item in the list is selected according to how that row is configured?

Member Avatar for saiprem
0
80
Member Avatar for maleko

I have a postgresql view on which I'm running the following query : [CODE]select count(*) AS "Assigned Calls" ,to_timestamp(createdon)::date from vw_issues where to_timestamp(createdon)::date>='11/10/2009' and to_timestamp(createdon)::date<'11/11/2009' group by to_timestamp(createdon)::date order by to_timestamp(createdon)::date[/CODE] when run in phppgadmin the result is displayed as Assigned Calls to_timestamp 20 2009-10-12 13 2009-10-13 etc... I need …

Member Avatar for saiprem
0
153
Member Avatar for scmsimplybest

Hello Guys, I m Building A Chat Application..in which i have 2 different user types like Admin & Merchant...I Have Taken User type A for Admin & M for Merchant...First I have Created Only Single LogIn Form for both user types & given DropDown So that If He Selects Merchant …

Member Avatar for scmsimplybest
0
167
Member Avatar for druveen

hi i am getting field names in $productname through post method that i have to insert into while loop.... while($res=mysql_fetch_array($result)) { $resproductname=$res $productname;']; } is there any way to do that ...plz help...thanks in advance...

0
58
Member Avatar for srya

hai to all, i am new to php , can u tel how to calculate a no of posts for a particular title . i have a table post project in database it has a 8 fields id , name ,title ,category,date ,description,cat id(category id),no of posts. and how to …

Member Avatar for rajabhaskar525
0
119
Member Avatar for PHP4LIFE

Hey all, Im new to php but i have made a registration page, only thing is i need to make a login. The hard part is I want to show the login box to un-logged in users and say "Welcome USERNAME, Logout" to logged in users. I know there will …

Member Avatar for rajabhaskar525
0
106
Member Avatar for semanticart

Hey guys i have the following code and i need to be able to look through a section of html and pick out all the elements that have the classname cmsedit. The code below does that however if the element has new lines or tabs in it ect the the …

Member Avatar for cwarn23
0
97
Member Avatar for prem2

HI, I am new to mysql i want to know why mysql have autoincrement with keys.. Is their possible to declare only auto increment to a column.

Member Avatar for harry_watson
0
83
Member Avatar for rajeesh_rsn

Hai, In one of my project I found a serious bug with session. In IE and Firefox It works fine but in Opera and Safari ... it doesn't working. I will give the testing code which I wrote Page 1 ( index.php ) [ICODE]session_start(); $_SESSION['uname']="I_am_Rajeesh"; header('Location: two.php');[/ICODE] Page 2 (two.php …

Member Avatar for harry_watson
0
116
Member Avatar for mangel.murti

hi all, have no idea.... if possible.... how to use dll file or other AjaxControlToolkit.dll file with php?

Member Avatar for harry_watson
0
64
Member Avatar for rondroid

Hi everyone, I have a form page where the customer enters their email address to see if they have forms available to download. Once they submit that I use the following code to see if they do indeed have stuff available: [CODE]<?php $email = $_POST['email'] ; $directory = "http://nycityliving.com/forms/" . …

Member Avatar for rondroid
0
90
Member Avatar for bas_brain

hi, I am beginning my journing on php development and i am trying to do my own MVC framework. I have a huge problem whith URLS. My URL Format: [url]http://example.com/index.php/Controller/Function/Arg1/Arg2/ArgN[/url] everything is working fine but per example when i call it like: [url]http://example.com/index.php[/url], The default Controller is called, no problems …

Member Avatar for samarudge
0
79
Member Avatar for remoh71

Hi, I'm new to PHP and I'm having trouble getting a prepared statement to work properly using a "dynamic" sort clause. I'm trying to create a generic function that accepts sortOrder and sortDirection as parameters. It works fine if I only use a single parameter (order by ?) but when …

Member Avatar for remoh71
0
1K
Member Avatar for ElegantElephant

I have a date in the form DD-MM-YYYY, I know how to explode it into just DD, MM and YYYY on its own but how do I check if this date is valid? For example 01-02-2009 is valid but 31-02-2009 is not. Any way to check this?

Member Avatar for diafol
0
111
Member Avatar for dylank

Hello DaniWeb Community! I am trying to create a web page that utilizes Ajax and PHP to connect to my mySql database and look up a username and password. You have all most likely seen the web page that has the template code on it: [url]http://www.phpeasystep.com/workshopview.php?id=6[/url] This code is nice …

Member Avatar for mwasif
0
4K
Member Avatar for mrjoli021

im new to php why is this rss feed not working. all i get i a blank page. [code =php] $rss = simplexml_load_file('http://feeds.feedburner.com/linuxtoday/linux?format=xml'); foreach($rss->item as $item) { echo "<b>$item->title</b>" , "<br />",$item->description, "<br /><br />"; echo sprintf("<a href='%s' target='_blank'>Read more</a>", $item->link), "<br /><br /><br />"; } [/code]

Member Avatar for smartness
0
80

The End.