39,402 Topics
![]() | |
Hey guys, I have been moving and testing my scripts on a different web server, but I am not getting the same results on both computers. Here is the code: [CODE] <?php session_start(); //THIS FUNCTION VALIDATES INPUT function VerifyForm(&$values, &$errors) { if (strlen($values['firstname']) == 0) { $errors['firstname'] = 'Please Enter … | |
I have the following script saved as 'index.php':[CODE=php]<?php $implementation = new DOMImplementation(); $doctype = $implementation->createDocumentType('html'); $document = $implementation->createDocument('http://www.w3.org/1999/xhtml', 'html', $doctype); $head = $document->createElement('head'); $document->documentElement->appendChild($head); echo $document->saveXML();[/CODE]Now when I run the script, I get nothing at all (i.e. no source XML is being received by the browser). Error reporting is set … | |
Help, I'm a php rookie. I have a functioning form to email script, but I can't seem to get it to display checked checkboxes. I am grateful for help on this! Here's the checkbox (three checkboxes) and submit portion of my html form: [code] <label>Check all that apply: </label> <p><input … | |
Can any1 help!! I am creating a library management and student system, but depending on the 2 set passwords given will open up the next page. Library managers details will be: username: Manager password: books10 and students will be: username:student password:loan so depending on which username and password they enter, … | |
Hi i have a user form, one part is a textarea where the user tpes in information. If they just enters spaces rather than text, i want a error to appear and not accept it, what code do i need?? | |
Hi there Im getting this error message with a script im trying to use. Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/rideron1/public_html/join_form.php on line 67 No database selected The script im using works on my local server but as soon as I upload it to … | |
Hi I'm very new into this website and to PHP. I want to make a drop down to display from my database. when i wrote the option value, a drop down is displaying in my html page however all the data comes together in one drop down. I want to … | |
hello.. i am uploading excelsheet into database using php. but when i am uploading then characters are displaying ascii type. | |
How would one use Python as a PHP alternative? If there a hello world example somewhere? | |
Hey, i'm new to PHP coding and my knowledge of php is increasing. I have a problem though. Im currently making a flash game site and I want to make urls like "Domain.com/Play.php?gid=34823" And when guests or users are on that page (with ID "34823"), I want it to show … | |
Do you work with datasheets regularly ? Always getting .pdf files open in your browser and having to wait EONs for them to download/display ? Well here is a resolve for that most frustrating of problems with Adobe's "Handy file intercept" feature. Use this script to FORCE the browser to … | |
Hello, Don't know where to post this though this topic based on web development platform, i think it may goes here cause in the other software forum in daniweb i didn't get any response. Is anyone aware of screen scrapper Enterprise. I want to use that. Anybody has any good … | |
hi...I'm trying to calculate the total no of item of things in a table, so I select the same item first, then I start adding them and save the total no of items in another table...but the problem is when I start insert the new items, the existing items also … | |
trying to get i form going, so that the user can just a code from a list generated from a database(i got that bit working), and then bring up a new page with the details of that product. i cant seem to get it to send the variable through here … ![]() | |
Does anybody have any ideas of how to make an advanced search function? I would like to accept a string as the search query. i want it to run a query on the string as a whole, and for each word in the query. The problem is here: The results … | |
I have code here for a form that submits the data to my email. When I click the send this form button, it submits the email to my address with the titles that I want but not the data that has been put in the boxes. Furthermore, I want to … | |
The code below is what i am using to upload a photo to store it in a database, is it being stored correctly?? as it will not let me view them properly, any help is great!!! [code] $title = $_POST["title"]; $userfile = $_FILES['userfile']['tmp_name']; $userfile_name = $_FILES['userfile']['name']; $userfile_size = $_FILES['userfile']['size']; $userfile_type … ![]() | |
If anyone has ideas pleas help!! Ok, i have a drop down box generated from my database, the user can pick a option and then delete it from the database althoguh i doesnt seem to reogise it if it has a space in the word. How can i prevent this? … | |
How do cookies work? I've tried sessions, but when i try to get the info, it doesn't pull it in. login.php [code] <? if(isset($_SESSION['Username']) && isset($_SESSION['Password'])){ $_SESSION['Username'] = $_SESSION['Username']; $_SESSION['Password']=$_SESSION['Password']; echo '<META HTTP-EQUIV="Refresh"CONTENT="1; URL=https://www.1fixcomputermedic.com/checklogin.php">'; } else { Print '<form name="form1" method="post" action="https://www.njcomputermedic.fatcow.com/checklogin.php">'; Print '<div class=signin style="position:absolute;top:250;left:450;">'; echo $_SESSION['Username']; Print '<font … | |
I currently have some code to show the latest update on my site. I have two problems: 1) how do I get the date to Display "04-13-10". I know the php code is date("m-d-y") But how would I incorporate that for an updated item? 2) limit the number of updates … | |
i have a forum, with new posts how do i use sessions for each user to determine if the posts clicked on and not? I'm guessing sessions because that is individual to the user... e.g. new post, then click on not new post. i can't assign this to the actual … | |
String concatenation is the string manipulation method when you join 2 or more strings together. In PHP it is a quite easy task. You can use the concatenation operator which is the ‘.’ (dot). You can join 2 or more strings into one as follows: [B]$str1 = 'This'; $str2 = … | |
Hi,I wrote a piece of code that admin can add publications with their date and users and admin can view all the publications in the same page sorted by time.till here it was ok,the problem started when i wanted to add a jump menu on top of the page so … | |
What is the most effective way to upload pictures to a photo gallery? I am currently doing the excel CSV method, and just want to know if this is too time consuming and what is involved in coding a fairly complex upload form? | |
I have been working with this for a while now. User page has a counter that they can reset when they click on a link. The link goes to a script that updates the counter to zero but when I test it all rows in table update to zero. [CODE]$colname_Recordset1 … | |
hi i'm new in php, and i'm making my first db driven site. it's something similar to "news" cms concept. i made pages for uploading images, and inserting data into db table. it works. now i'm making a page where i want to display that content. here, i need some … | |
is there a way to get a value that a viarble has on one php file ... save it to a javascript or wherever and then include it to another php file.. thanksss ![]() | |
Hey folks, I need help with displaying a php array in a html table. I already have it displaying but it keeps repeating the column headings over each entry and also I want each row of the table to be a different color. I figured that the repeating column headings … ![]() | |
Ok i have a couple email functions, the one that works, sends an email to the recipiant and the one that doesnt work how i want it sends an email with an activation link in it. the working email says its from [email]support@domain.com[/email] (like i want it to say) but … | |
Hi, I'm a PHP newbie, hosting a site on godaddy. I am attempting to create a form (with some text boxes with validation) that will be filled out by users that will be sent to my email account. I'm forced to use godaddy's form mailer but I'm having trouble including … | |
Hello friends this is something weird... when i insert some italian characters in mysql. like [B]è ò à ù ì[/B] i got this in database [B]è ò à ù ì [/B] my table charset is latin1. thanks in advance. :) | |
Hi All, I read the document here with the title "Using PHP and Javascript instead of CGI" on link [url]http://python.about.com/od/cgiformswithpython/ss/phpjscgi.htm[/url] can any one elaborate it with an python code say print 10 numbers.I am confused little bit that If I write test.py file for 10 numbers How will I call … | |
hi all, I have a problem getting value from select option my code is below [CODE] <form name="secmek" action="add.php" method="post"> <select name="list" id="list"> <? @$db=mysql_connect('localhost','uname','pass'); mysql_select_db('dbname'); $sorgucat=mysql_query("select * from category"); while($satircat=mysql_fetch_row($sorgucat)) { echo "<option value='$satircat[0]'>$satircat[1]</option>"; } ?> </select> <input type="submit" value="poz" name="del"> </form> [/CODE] and this is my category table … | |
Hiya All, Not sure if i should be putting thi up on the SQL section but i think the problem lies in the PHP part of my code. This is what i've got. I'm counting the number of times a category shows up in my database returning the name of … | |
i m searching a record from database. and it contain more than 10lac records. it take lot of time and some times mysql got crashed. how i can reduce searching time..?? does xml will be helpful in this case.? | |
Hi All, This is the first time I'm working with FTP functions in PHP. I have to create a link to send a [B].sql[/B] file to another server using its' FTP logins. I used ftp_put() function in the following way [CODE]ftp_put($connection, $file_name_1, $file_name_2, FTP_ASCII);[/CODE] It works perfectly in my [B]localhost[/B]. … | |
I am asking this as general question first because I am not sure that what I am trying to do is even possible. I am using Dreamweaver 8. I have created a php page that accesses a mySQL database to include information from just one record on a form. Through … | |
Hey, I'm working on a project and require some help. I have two tables in the same database and I want to query each table using the ID just using one query. It works but it displays the same information more than once even though there is only one entry. … | |
Hi, I'm fairly new to php and am having a lot of trouble with a simple little select problem. I have tried it about 20 different ways and it just keeps spitting out errors and not working My code is: [code] <?php session_start(); // built in php function to start … | |
Hay, I had a question about a login system that i want to create. I have SQL express 2005 with value's ( business name, passwords e.d. ). This system we use to fill in what we did at the company, and how much time we spend on it. This system … | |
Having a little issue with a from and MYSQL. I created a Job Interview form that takes certain criteria from the interviewer and places that information into a database so you can extract the information later. What my problem is I'm getting no error messages or successful output. It's not … | |
I'm pretty sure this is a simple fix, but I don't see it: [CODE]foreach($rows as $row) { $result .= "<li><a href='"javascript:void(0)" onclick="javascript:chatWith('.$row->username.')">" .htmlspecialchars(getNameFormatOnline($row->name,$row->username,$ueConfig['name_format']))."</a></li>\n"; }[/CODE] This is a list of online users; putting the username inside "javascript:chatWith('USERNAME_HERE')", to initiate a chat. Thanks, James | |
I have tried using is_numeric to validate some form data to make sure it is only numbers that are entered into the form. I couldnt get it to work so I decided to try and put a-z\A-Z in preg_match. I cannot get either of them to work although there are … | |
I am working on a site that require a php script running on a server without any request, it is a bot script that keeps (not full time but at least once a day) checking client accounts and send mail to clients when something happens. ![]() | |
hi there..just wanna ask some help, regarding the creation of line graphs in php..i want to display a graph in my page..i have seen many examples but it does not fit what i wanted.. please help me.. thanks thanks ^_^ | |
Hi all I'm trying to figure out how to go about finding all <a> tags in a string and replacing the spaces within the <a> tag with underscores. Below is an example: Before [CODE=html]<a href="path/to/page" class="pageLink">Page Name</a>[/CODE] After [CODE=html]<a_href="path/to/page"_class="pageLink">Page_Name</a>[/CODE] Any help would be much appreciated. Thanks. | |
hallo there again i would like to modify some entries on my ldap server via php actually i want to move some students from one dn to another i use ldap rename but nothing happens ... [CODE] $newparent='cn='.$save[$i].',cn=****,ou=******,ou=****.,ou=******,dc=****,dc=*** $dn= $save[$i+1]; $dn2=split("[,]",$dn);//that is the name of the student(which is on the … | |
hallo there... is there a way to handle data from a POST method like [CODE]$listOfItems=$_POST['listOfItems'];[/CODE] on the variable though are inserted values of an array such as( 1234|john;3455|helen;.....e.t.c.) is there a way to "brake" the variable so as to get one by one the array values... thank you | |
Hi guys, I'm a bit of a newbie to PHP/MySQL, so please excuse me if I seem ignorant of something seemingly obvious. I'm writing a booking system for a holiday home rental company. I'm building it up slowly. What I have so far is trying to calculate the number of … ![]() | |
i have a column in mysql called origin which is type integer(not ascending or descending). All rows have an origin assigned to them can't be duplicated... e.g. two rows with the same origin(integer). when inserting a new row. Just say row 1 has origin 15 and i'm inserting a new … |
The End.