39,320 Topics
| |
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 … | |
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 … | |
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 … | |
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? | |
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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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? | |
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 … | |
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 … | |
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... | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
hi all, have no idea.... if possible.... how to use dll file or other AjaxControlToolkit.dll file with php? | |
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/" . … | |
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 … | |
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 … | |
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? | |
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 … | |
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] |
The End.