473,813 Members | 2,802 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
8
3,324
thread by: backups2007 | last post Oct 15 '07 by: backups2007
Say for example, I want to add 50 more books to a database of 100 books. How could I do it using the Update method? It is for the inventory module of the system that I'm working on. Please help. Thanks.
6
1,607
thread by: Philth | last post Oct 15 '07 by: Philth
No doubt this has been covered lots in detail. I think I've almost got is sorted but for this one error. "Parse error: syntax error, unexpected T_VARIABLE in /home/fhlinux162/g/greatestalbumsever.com/user/htdocs/php/image.php on line 11" Usually something to do with a bracket missing or something, but I can't see what it is. My code is...
5
1,183
thread by: rajeshkumarvm | last post Oct 15 '07 by: rajeshkumarvm
Hi i am new born child for php.I want to make one dll and connect to php pages.So anyone tell me how to make dll and how to connect the php pages with clearly thank u rajesh
0
1,231
thread by: mattelau | last post Oct 15 '07 by: mattelau
Hi all, Here is an XML file I'd like to parse with php. It's a mozilla install.rdf file. <?xml version="1.0"?> <RDF:RDF xmlns:em="http://www.mozilla.org/2004/em-rdf#" xmlns:NC="http://home.netscape.com/NC-rdf#" xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <RDF:Description RDF:about="urn:mozilla:install-manifest"
3
1,609
thread by: DavidPr | last post Oct 15 '07 by: MarkoKlacar
I've wrestled with this code all day and I just can't figure out what the problem is. I have this same code on the add_job.php page and the edit_job.php page and neither one is enter in the correct information into the database. But first here's a synopsis of what happens up to this point: The registration script adds users to the users...
3
3,029
thread by: DavidPr | last post Oct 15 '07 by: ak1dnar
I'm using this javascript: <script type='text/javascript' language='JavaScript'> function PopUp(url) {...
2
1,556
thread by: idorjee | last post Oct 15 '07 by: idorjee
hi, can anyone please tell me how to run a shell script in php. i tried the following way, but doesn't work. the file permissions are OK. <? if($_POST){ exec('/Users/lab/test/cron/update_test.sh'); } ?>
3
1,316
thread by: backups2007 | last post Oct 15 '07 by: backups2007
How do I simultaneously update rows of data in a database? Should I Update it one by one? Or is there any other way to do it? $query = mysql_query("UPDATE tblProducts SET prod_code='$prod_code1'"); if($query) { $query2 = mysql_query("UPDATE tblProducts SET prod_code='$prod_code2'"); if($query2)
1
1,074
thread by: The Creature From Groom Lake | last post Oct 15 '07 by: Steve
How to I expand the zise of a range of values under a redraw routine?
16
1,374
thread by: Summercool | last post Oct 14 '07 by: Lars Eighner
the sticky form is that if validation didn't pass, re-display the form with the value in the text input again (and for other input field as well...) no book I read did it correctly so far. (just for the text input) to reduce the problem, how about write a PHP program that will submit to itself, so that typing in
5
1,975
thread by: Evan Jou | last post Oct 14 '07 by: Henri
Hi there, I have a simple question for you experts here that I've installed Apache, PHP and MySQL on my Windows machine and set up a test script(test.php) like what is listed in a book. It's like <?php @mysql_connect("localhost","root","password") or die("Could not connect to MySQL server!); @mysql_select_db("mysql")
12
1,768
thread by: DMcN | last post Oct 14 '07 by: numberwhun
Firstly this is my first post so thanks in advance for any help. I have created a form in my web page using Flash and all the variables seem OK. So now I have set up the CGI form on my web server (to respond to the enter button) using Matt Wrights script (I know NMS is better from research but my host demands I use their Matt's formmail script...
5
13,723
thread by: Chris | last post Oct 14 '07 by: Lars Eighner
I am trying to output Monday of the current week i.e. if Monday is the 8th I want to display 'Monday 8th' for any date between Monday 8-14th. I would appreciate any help, the code below is heading in the right direction but doesn't quite give me the results I am looking for. $givenday = mktime(0,0,0,10,08,2007); $Monday =...
2
1,185
thread by: mantrid | last post Oct 14 '07 by: stragatto
Im using header("location: http://www.example.com"); to goto a new page I wish to make it open the new page in a new browser window. How do I modify the above script to do this? Thanks Ian
1
1,227
thread by: bnashenas1984 | last post Oct 14 '07 by: pbmods
Hi everyone Does anyone know how to include a file outside the HTDOCS root? When I login to my ftp htdoc is the folder where I put my index.php but I want to put a file outside this folder and include it in the index file file.php HTDOCS (folder)+ | -index.php
7
1,929
thread by: tuananh87vn | last post Oct 14 '07 by: pbmods
I and some of my friends are going to write a blog like Yahoo! blog and I'm supposed to make "my blog" page, which includes something like the displayed blog content, comments and of course certain functions like compose blog entry, edit or delete... can anyone help me analyse this page and then the process? ah, and the text editor- like the...
10
2,844
thread by: Gotts | last post Oct 14 '07 by: bsprogs
Hi, I have a script which based on an id passed to the page is retrieving a filename and path from the database of a file and then outputting the file for download. I specifically did it this way (see the code below) so user would have a choice of "Saving" or "Running" the file. The problem is that with this method when a file is clicked for...
20
2,037
thread by: william.hooper | last post Oct 14 '07 by: Michael Fesser
If I have a form: <FORM ACTION="test.php"><INPUT TYPE=SUBMIT NAME="hello" VALUE="Delete"</FORM> then in test.php I could write: $value = $_POST; to set $value="Delete".
2
1,270
thread by: DavidPr | last post Oct 14 '07 by: pbmods
I'm getting - parse error, unexpected T_LNUMBER - error messages referring to the last "if" lines of this code. What I'm trying to do is check the database and if this user's article row isn't empty AND the article that's in there isn't older than 90 days then execute the "if" clause. I've tried it two different ways and neither of them work....
3
1,900
vijcbe
thread by: vijcbe | last post Oct 14 '07 by: Markus
Hello friends!! Hope someone will fix this issue for me.. I am making a web page in PHP, in which users will enter into their login and do manupulations. After they click logout, the go to the logout page. Here, when they click the back button of the browser, they go to the previous page where they enter the data which should not be shown to...
6
4,113
thread by: cutlass | last post Oct 14 '07 by: pbmods
Need help in thus script. Trying to create the script that uses comparison operators and functions to compare two strings entered by user. When I add in the info in the script section everything falls apart. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html...
2
6,676
thread by: kilo | last post Oct 14 '07 by: kilo
Hey.. I need someone hwo can help me making my sql table.. I have no php skills. I have payed for a php program that shoud make dictation for people that have some problems reading danish.. with sound and text.. When I'm making the dictation with PHP I'm getting an error like this.: Query failed (SELECT word FROM repository): Table...
2
1,824
thread by: Sebarry | last post Oct 14 '07 by: Sebarry
Hi, I have a Javascript function that creates a number of checkboxes dynamically using document.createElement. The checkboxes are created fine but even when they are checked they don't appear in $_POST in Internet Explorer. The same code works fine in Firefox and I can get the details of the checkboxes that are checked. Does anyone know of any...
0
1,063
thread by: Summercool | last post Oct 14 '07 by: Summercool
I wonder what's the historical use of microtime() returning a string? is the string actually useful at some point? i see code every where just get back the value and constructing it as a float. why not returning it as a float when microtime() was first written?
6
1,261
thread by: rajeshmishra | last post Oct 13 '07 by: pbmods
I want to know the php code to make an telephone diary..i mean exactly .,suppose the in database the name stored is " Manoj mishra ",but in the form by typing only"manoj" we can see the details of manoj mishra..how could we do it..?pls giv an example for clear understanding..

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.