39,402 Topics

Member Avatar for
Member Avatar for nonshatter

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 …

Member Avatar for nonshatter
0
67
Member Avatar for jrw89

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 …

Member Avatar for jrw89
0
135
Member Avatar for LittleMeemz

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 …

Member Avatar for LittleMeemz
0
125
Member Avatar for caro88

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, …

Member Avatar for genevish
0
183
Member Avatar for leeZA1

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??

Member Avatar for colweb
0
76
Member Avatar for rustifer

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 …

Member Avatar for rustifer
0
233
Member Avatar for abrish24

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 …

Member Avatar for Tekkno
0
141
Member Avatar for muralibobby2015

hello.. i am uploading excelsheet into database using php. but when i am uploading then characters are displaying ascii type.

Member Avatar for cwarn23
0
96
Member Avatar for ultimatebuster

How would one use Python as a PHP alternative? If there a hello world example somewhere?

Member Avatar for snippsat
0
137
Member Avatar for Ruko

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 …

Member Avatar for Will Gresham
0
335
Member Avatar for ReDuX

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 …

Member Avatar for w3m
0
156
Member Avatar for througheye

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 …

Member Avatar for througheye
0
78
Member Avatar for star_lavender

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 …

Member Avatar for star_lavender
0
106
Member Avatar for Atomika3000

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 …

Member Avatar for diafol
0
93
Member Avatar for sacarias40

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 …

Member Avatar for sacarias40
0
168
Member Avatar for YenkoSC

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 …

Member Avatar for JRM
0
99
Member Avatar for leeZA1

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 …

Member Avatar for diafol
0
140
Member Avatar for leeZA1

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? …

Member Avatar for leeZA1
0
100
Member Avatar for computerfox

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 …

Member Avatar for cwarn23
0
77
Member Avatar for bjeffries

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 …

Member Avatar for genevish
0
107
Member Avatar for MDanz

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 …

Member Avatar for cwarn23
0
99
Member Avatar for johncarreras

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 = …

Member Avatar for cwarn23
0
74
Member Avatar for ssharifi

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 …

Member Avatar for cwarn23
0
133
Member Avatar for bjeffries

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?

Member Avatar for bjeffries
-1
126
Member Avatar for phpDave

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 …

Member Avatar for phpDave
0
193
Member Avatar for overwise

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 …

Member Avatar for overwise
0
84
Member Avatar for manolisvl46

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

Member Avatar for diafol
0
81
Member Avatar for KBL

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 …

Member Avatar for diafol
0
256
Member Avatar for sacarias40

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 …

Member Avatar for sacarias40
0
123
Member Avatar for abby524

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 …

Member Avatar for abby524
0
212
Member Avatar for sam023

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. :)

Member Avatar for cwarn23
0
250
Member Avatar for jituhds

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 …

0
30
Member Avatar for azegurb

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 …

Member Avatar for HITMANOF44th
0
131
Member Avatar for baseballfury

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 …

Member Avatar for baseballfury
0
195
Member Avatar for sam023

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.?

Member Avatar for sam023
0
102
Member Avatar for niranga

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]. …

Member Avatar for niranga
0
982
Member Avatar for cleigh

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 …

Member Avatar for cleigh
0
119
Member Avatar for Phil++

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. …

Member Avatar for Encrypted
0
66
Member Avatar for QWaz

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 …

Member Avatar for QWaz
0
951
Member Avatar for ErikV

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 …

Member Avatar for ErikV
0
147
Member Avatar for SMHouston

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 …

Member Avatar for SMHouston
0
167
Member Avatar for jamesbarnhill

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

Member Avatar for CFROG
0
149
Member Avatar for piers

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 …

Member Avatar for piers
0
128
Member Avatar for slucia

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.

Member Avatar for diafol
0
74
Member Avatar for xuexue

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 ^_^

Member Avatar for pritaeas
0
46
Member Avatar for Venom Rush

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.

Member Avatar for Venom Rush
0
143
Member Avatar for manolisvl46

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 …

0
96
Member Avatar for manolisvl46

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

Member Avatar for manolisvl46
0
57
Member Avatar for mikeypc2010

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 …

Member Avatar for soldierflup
0
150
Member Avatar for MDanz

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 …

Member Avatar for JRM
0
88

The End.