39,402 Topics
![]() | |
Hi i'm a newbie to PHP and MySQL. I was wondering if anyone could help me with some code to Add 1 to a number that is assigned to a person in the database. So, the person types their name in a form. Then the form has to find that … | |
I'm trying to upload .js files onto my sever. This is the code: [CODE]<html> <head> <title>Add Ubiquity Command</title> </head> <body> <form action="add_ubiquity_cmd.php" method="post" enctype="multipart/form-data"> Name: <input type="text" name="name" /><br /> Description: <textarea rows="8" cols="30" name="description"></textarea><br /> JS File: <input type="file" name="file"><br /> <input type="submit" value="Add Command" /><br/> </form> <?php if(isset($_POST["name"])) … | |
Hi frnds..... i have small doubt.. here i am copying code..plz see once.. till the table ends..it works fine..the page moves to thanku page....but the feed back is not moving to the mail(mail function )........ [B][U]feedback.php[/U][/B] [CODE]<? $contact_name=$_POST['contact_name']; $contact_phone=$_POST['contact_phone']; $contact_email=$_POST['contact_email']; $contact_comments=$_POST['contact_comments']; $mail_body='<style type=text/css><!--td {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;}--></style> … | |
Hello I need a help, a client of mine asked me to build a website and I made the website on normal html pages and now he wants all the urls to be dynamic, how do I get this done? Please help me | |
I have a website that I just created a contact form for. However. it seems like a bot has hit the form, and continously fills out emails. I don't know php very well - and someone else did most of the work. I don't want to put a captcha in, … | |
hey guys, i want to upload a pic from a computer and i want that the pic be displayed at a particular place in the website. This pic should always be there whenever the user log's in. Please give me some suggestions on how the picture can be stored in … | |
dear all, i have 2 tables with no common column. and i wanna add the columns of the second table to the first. but when i use the below command a cartesian product happens! select column1,column2,column3,column4 from table1,table2 but i want the number of rows be fixed. so i thought … | |
pleaseeeeeeee hepl meeeeeeee!!!!!!!!! i have 2 tables : time1 (noo integer,days varchar,times varchar,Tindex integer,primary key (noo,Tindex)) timetable1_1(COn integer,coursename varchar,dayss varchar,timess varchar, primary key(COn)) i have created a new table temptime1 and tried to fill it with the rows in time1 which their days and times are not available in timetable1_1 … | |
Hello I need to know the steps to follow to have customers register their name and address from a registration page and as they click a submit button, the information is automaticalle appends to another page or the same page in a different area. I have registered domains with hosting … | |
i need some help in making a database....what are need entities in making database such as forums,bulletins and login purposes.... pls repzzzzzzzzzzz | |
Hello you know phpbb3 and know how to place ads? here is your chance be an admin in my forum I will give you the ad codes just place it at the posts and the top header and i need you to create forums regarding games and off-topic discussion. forum … | |
Easy question, except I don't know how to do it. I want to ask for user's email address and then have them confirm it. How do I use php to check to make sure the confirmation matches the first email address entered? Thanks in advance! ~Amy | |
Hello all! I wanted to ask everyone what they thought about the sleep function in php. I do believe I'm going to use it for my website, but I'm really unsure how to implement it in. I wanted to use it on the login page. I googled this until I'm … | |
hi i am using php email function .in from address i am getting my ftp email id eg username:form,my mail id is as [email]form@connect.com[/email] but i want to give my own address...dynamically what i give. [ICODE] $body1="<html><head></head><body>"; $body1.="<table width='850px' border='0' align='center' cellpadding='0' cellspacing='0' style='vertical-align:top;'>"; $body1.="<tr><td><p>If you have net banking facility … | |
I've developed a website a couple of months ago and there is one thing which is really bugging me. For some reason my grid is falling out of place in the left hand corner where it says GB DE. But this only happens with Firefox, if I view it in … | |
Hello all.. Can anybody clearly explain about web 2.0??? And tel me about mashup also.... | |
Hey, I want sort an associative array of string. such as array( [hotel]=>array( [name]='Royal Cabin' ), [hotel]=>array( [name]='macdonald court' )) etc... what want is to sort the above array to a given string such as 'ro' or 'mac' wher the array is sorted and show the closet match in the … | |
Hi, I am in the process of creating a Real estate web site and it needs to have a search able database. I am trying to have someone select an option from a menu, then hit search and restrict the results based on the URL variables. I know how to … | |
hi i want to send mail to more than one user.the below code is not working.please do tell me how to do tat [ICODE] <? $to = "s@gmail.com";// note the comma $bcc = "s@gmail.com"; $from="l.w@cs.com"; $spaces=" "; $sub="hi bye"; $body="<html><head></head><body>"; $body.="<span style='text-align: left;text-indent: 5px;font-family: Verdana;font-size: 11px;color: #404040;'>"; $body.="Hi Client: <br /><br … | |
I am making a section in the users' profile where they pick their favorite teams, which might be in different leagues (NCAA, MLB, NFL). When the user picks the league, it takes them to the next page that lists the teams under their respective conferences (Big 10, Big 12, NFC, … | |
this is not my code >.< I found an online rpg engine thing online and d/l'd it when I try to start it I get this error, another problem is the writer is french so I found no english readme or anything usefull as to if I need more then … | |
Hi I am working on save the outlook mails to linux mysql database. is it possible? then i need to open the mail using php ? is it possible ? Please advise | |
Hello, I am trying to show a list of information using a FETCH and WHERE statements. This is my code: [code] $buds = mysql_query("SELECT * FROM buds2 WHERE bud_me = '$userid' AND confirmed= '1'"); $x = 1; while ($array = mysql_fetch_array($buds)) { $buddy = fetch("SELECT display_name,username FROM members2 WHERE id … | |
Hi, I am creating a real estate site, and I need a thumbnail and full size image to display. I'd like to store the images in respective folders under the Images folder on the server, and store the file name in the database. I can't get the images to display … | |
Hi any 1 can tell me how to upload image folder instead og single_2 image.I want upload all image of folder. so i ma getting problem in this. i have seen many script in which we can use multiple image upload,in which u could create more then 1 text box … | |
hi i want to calculate the no of user visited our site.can somebody please suggest how to do that thanks in advance | |
Hello, I am retrieving html out of a multipart message using: [ICODE]$html = imap_fetchbody($imapStream, $emailId, '2');[/ICODE] And I am retrieving plain text by using [ICODE]$plain = imap_fetchbody($imapStream, $emailId, '1');[/ICODE] My question is: Why is this working? I got this to work through trial and error. I don't know why I … | |
Hello, I'm trying to develop a browser interface for my load testing environment.I can ssh into the client machines & run scripts,but also wish to execute them in stages.....kinda stuck here cz i do not know how to store the state of my counter variable...plz find below my code(i have … | |
I had a website of 75 html pages Now I need to add a search into my index page. I wish to done it in PHP because my web server supports PHP. Please help me.... Thanks in Advance Rajeesh | |
Hi, I'm trying to install the php/java bridge on ubuntu hardy heron. I've installed it from the source downloaded from sourceForge. I've managed to get it run from the php command line as php test.php but when i run it from apache i get an error from the code below … | |
I am building a confidentiality form which I would like to submit to a printable page and to two or three email addresses (one being the email address of the person who filled the form out). This means that the language that is above the form needs to be printed … ![]() | |
[code="PHP"] <html> <head></head> <body> <?php $hostname="localhost"; $username="jesus_jesus"; $password="jesus"; $dbid="jesus_jesus"; $link=mysql_connect($hostname,$username,$password); mysql_select_db($dbid) or die("unable to connect"); $result=mysql_query("select jid,industrytype from career"); if($result) { echo '<select>'; while($myrow = mysql_fetch_array($result)) { echo '<option value="',$myrow['$industrytype'],'"></option>'; } echo "</select>"; } ?> </body> </html> [/code] in this code i'm getting only the listbox.not to able to retrive … | |
websites is not really my specialty...so how can I connect modules? and also how can a user update, lets say his bulletin, by just editing it just like in multiply...any suggestions or online tutorials will be appreciated ..tnx | |
Hi guys hope you can help i need to know how i would use curl to fill in a form which uses asp.net postback function with javascript anyone achieved this if yes how. Thanks Guys | |
DISCLAIMER: I am a beginner. I know how to edit html, but not much else. I recently had a website designed with an inline javascript form for my Aweber autoresponder. In order to save money on having a thank you page designed, I am using the aweber thank you pop-up … | |
As I am quite new at this web world, can anyone please be so kind and let me know what/how to use PHP so as to find the word of say bananas across ALL web pages on the internet? So I ultimately want at the end of the day, a … | |
Does mysql_real_escape_string() escape HTML character entities? I want people on my comment board to be able to post quotes in their comments, but they get escaped as raw ascii, so I run them through htmlentities() first, but it doesn't help. I only get it to work when I remove mysql_real_escape_string(), … | |
Hi all, This is the first of what I hope to be many contributions to Daniweb. Unfortunately, my first "contribution" is a question, one which will surely highlight my lack of experience with this issue. I have written a PHP "Back Office" application which talks to our hardware via a … | |
Hello, I am trying to pass multiple values, via an implode function. However, it isnt working. Here is the code from the first page, then the second page. [code=php] <?php if(isset($_POST['numItems'])) { $checkboxes = $_POST['numItems']; $string = implode($value,"^"); echo $string; } ?> <form name='CartItem' action='https://www.ram-mount.com/RamCart/CartPutItem.php' method='POST'> <input type='checkbox' name='numItems[]' value='RAM-VB-162'> … | |
hai have one combo box and text box and one submit button in(page1.php). i want to search from DB for some records based one combo box item and text typed in textbox by clicking search button. i select one item from combo box, and type text in text box and … | |
hi all, i want to develop a shopping cart which uses only sessions to store products their id and prices etc. so, i thought of an idea to store products details in a multidimensional arrays and then into session my idea is like this [code]array( [productid1]=>array( [0]=>product name [1]=>productprice [2]=>product … | |
I'm pretty much a newb when it comes to PHP and MYSQL (taught myself, so I make a lot of mistakes :confused: ) So here's the code... [code] $query = "SELECT DISTINCT(t_tag) FROM tags ORDER BY t_tag desc LIMIT 50"; $results = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_array($results)) { … | |
Hey. I'm trying to make an activation script for a website, but for some reason my sql query is giving me errors. [CODE] $sql = 'UPDATE user SET active = 1 WHERE (password = "$_GET['hash']") AND (timestamp = ".base64_decode($_GET['stamp'].")'; $result = mysql_query ($sql) or die (mysql_error()); if( mysql_num_rows($result)==1 ) { … | |
Hello, all: Wandering if anybody can help me with this: can I have more than one htaccess file in a site? as in having htaccess files in subdirectories to control or specify how files in that directory refer to "include" files? so that if I have a mini-site within a … | |
how to get print dialog box through php. that's mean when i click the submit button named as print . then it will show the print dialog box. | |
I created a list and detail page using Developers Toolbox and from the detail page, I want to be able to get to a series of other pages, all using the ID from the detail page. So...here's my example. You login and search the mbrlist.php page for your user. Based … | |
Hi, I have 2 tables in each page. when i have more than 1 page, tables are breaking into other pages. Like, end of the one table appear in next page. How can i do it stable. Because, when i print, i want each page have 2 tables without any … | |
Hi! I'm a web designer and have a little bit knowledge of action scripting (both as2 and as3). Now these days, I'm working on a new flash project regarding multi-user poker game. I've never worked before on these kind of projects, but when I was searching on google about multi-user … | |
If anybody could let me know how to create a bullet in an xml file using php. This piece of knowledge will be highly appreciated. Thanks | |
Hi I created one website with login form.In that form after login with username and password i entered into welcome page after that i clicked logout then my page gets logout then i clicked back option in my browser that time it shows well come page i want to avoid … |
The End.