473,788 Members | 2,759 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.
9
2,539
thread by: howa | last post Jan 4 '08 by: Jerry Stuckle
For example, $query = "SELECT ...'"; $res = mysql_query($query); while($row = mysql_fetch_assoc($res)) { // Do sth } If the query return say over 1M row, is it limited by the MySQL server
1
1,448
thread by: Richard Price | last post Jan 4 '08 by: Pavel Lepin
I am updating a xml parser developed by a third party. The xml below is parsed by the system using the code that follows: <Company> - <section id="officers"> - <section id="secretary"> <section id="stakeholder id">15728499</section> <section id="name">FRED BLOGGS</section> </section> - <section id="director" type="current">
0
1,121
thread by: lucas | last post Jan 4 '08 by: lucas
visitame www.lucasares.com.ar
2
3,110
thread by: daknightuk | last post Jan 3 '08 by: sumeetk
Hi people, I'm working on a project where I have a MYSQL database containing a database table which has opening hours of a load of businesses in it. Each business has 4 TIME fields for each day in the format 00:00:00 which are named to indicate the weekday i.e MONOPEN1, MONCLOSE1, MONOPEN2, MONCLOSE2, TUEOPEN1......... My original idea...
3
1,056
thread by: lilbit02 | last post Jan 3 '08 by: pbmods
Hello All, Thanks for any help you can give in advance. This is what I'm trying to do...I have entries going into a database. The entries can be UP to 1500 words. I want the query results from the database to be formatted for publishing in a book. For instance, every 5-8 sentences is a paragraph, at every new paragraph you indent, if one entry...
10
1,606
thread by: Bill Bell | last post Jan 3 '08 by: Bill Bell
The subject line is a little too general. I would like you to tell me about scripts that can receive email messages and call other scripts depending on the content of these messages. Thanks!
3
12,811
thread by: Rowan | last post Jan 3 '08 by: Rowan
When I run a small test script I get the following error. ___________________________ PHP Fatal error: Call to a member function prepare() on a non-object in /usr/local/lib/php5/pg_connect.php on line 73 <snippet_____________________> public static function db_update($sql) { $str_check = explode(" ", $sql); if($str_check == "INSERT") {...
2
1,235
thread by: Anthony Smith | last post Jan 3 '08 by: Anthony Smith
I may have more of a design problem, but here goes. I have a class that has 3 methods. One method simply calls the other two. I wanted to make the class static, and to do this in php, you just have to make the function static. So I did that for all three functions. But now I cannot call the other two functions from the first function. ...
56
7,245
thread by: UKuser | last post Jan 3 '08 by: Jerry Stuckle
Hi, I'm not sure if this can be done as I've searched the web and this forum. I am using an online merchant provider and I must post certain variables to their webforms through a form on my website. The issue is that I need to gauge whether a user has any items in their basket to decide which page I redirect them too. I could
1
1,122
thread by: Bre-x | last post Jan 3 '08 by: Bre-x
What's wrong with this script? I got error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET NEW.TSHP = 0' at line 5 CREATE TRIGGER shipumw01 BEFORE INSERT ON umw_ship_sol FOR EACH ROW BEGIN IF NEW.L0 <0 THEN
30
1,911
thread by: Logos | last post Jan 3 '08 by: Steve
I have what may be a bug, or may be a misunderstanding on how pass by reference and class inheritance works in PHP. Since I'm relatively new to PHP, I'm hoping for a little outside help to shed some light on this! (code abbreviated for clarity) I have a parent class, DetailCollection, with a child class KeycodeTracker:
1
3,050
thread by: jason1987 | last post Jan 3 '08 by: nathj
Hi, I need to get previous day from an existing date stored in a varaible $date which will not include any weekend (saturday and sunday) if it is on monday date should be for friday How can I do this?? Thanks, Jas
11
1,223
thread by: shreedhan | last post Jan 3 '08 by: Markus
HI again, OK, now I have a page pictures.php and I am using following code : printf("<a href=\"pictures.php?name=%s\">",urlencode($val)); print ("<img src=\"$val\" width=100%)/></a>"); the problem is no value is stored in $name in pictures.php I don't get anything when i print $name.
3
1,531
thread by: KoRnDragon | last post Jan 3 '08 by: Vince Morgan
Link: http://korndragon.com/resources/register.php?refer=1 Code: if(isset($_GET)){ echo "Referrer: " . $_GET; } Problem: I can't get the get variable to save to the database. I'd rather not
1
1,310
thread by: romtang | last post Jan 3 '08 by: mwasif
Tring to get help with a couple things. First thing is a good Search Engine (not like yahoo, google etc.) that searches my database somehow. A search engine that could search by 1 or more categories from within my domain. Last thing I need: After the required fields (info) are filled out and the form is submitted. The info recieved...
2
1,621
thread by: wqmmnm | last post Jan 3 '08 by: Betikci Boris
I am trying to develop a PHP site so that I may record my poker winnings and display the results on my blog. I haven't used php in a long time so I need to beginner type help. I know I am going to have to write a login page that communicates with a MYSQL sever so that shouldn't be an issue either. My issue is I am not sure if I should...
0
1,431
thread by: vertigo | last post Jan 3 '08 by: vertigo
Hello i wanted to draw graph. On X scale i have time (in seconds). I have measure points for everyday from 8 AM to 4 PM. On Y scale i have values. For one day everything looks fine. But i wanted to see a graph for two days. The problem is that bars from the first day are narrowed on the left,
3
1,268
thread by: Lawrence | last post Jan 3 '08 by: Tim Roberts
hi all, while im computing large values the variable value gets rounded off to the next higher value .How do we stop or prevent this happening.
6
5,093
code green
thread by: code green | last post Jan 3 '08 by: code green
Does sleep hand temporary control back to the Operating System or does it still demand the same resources as when the script is running? Does it work the same way as VB doEvents(). I am updating data from mssql database to MySql on an overnight scheduled task. I would like to wait a few secs to ensure the data has gone in, then run a...
1
2,631
thread by: Vegethalia | last post Jan 3 '08 by: Tim Roberts
Dear all, I'm sure that im doing something wrong, but I can't imagine what! My problem is the following: I create an image using imagecreatetruecolor, and, after some painting, I push the resulting image to the client in 256 colors: imagetruecolortopalette($this->m_oIMG, false, 256); header("Content-type: image/png");...
0
1,113
thread by: rblask | last post Jan 3 '08 by: rblask
In case anyone is interested: http://lyricsfly.com/api/
1
1,075
thread by: davidletho | last post Jan 2 '08 by: Markus
Hi guys, When I try to host this PHP site I get the following errror: Warning: require_once(D:/FTP/99102574/www.test.com.pa/includes/version.php) : failed to open stream: No such file or directory in E:\www.test.com.pa\2007\includes\joomla.php on line 72 Fatal error: require_once() : Failed opening required...
0
3,181
thread by: R.A.M. | last post Jan 2 '08 by: R.A.M.
Hello, I am using Fedora 7 Moonshine Linux with Apache installed. I have installed PHP5 using command: yum install php. Then I configured httpd adding module mod_php.so to httpd.conf (and other necessary operations). The problem is that when I am trying to start Apache using command: httpd -k start, I receive error of missing mod_php.so. To...
0
1,205
thread by: vedrandekovic | last post Jan 2 '08 by: vedrandekovic
Hello, I'am new PHP student and ( programmer ? ). I want to sell my software online but how can I create to PHP read from file on server with cd-keys on my server and send them to user e-mail. And delete sent cd-key ( first line ) after sent delete? Regards, Vedran
10
3,283
thread by: ashore | last post Jan 2 '08 by: Michael Fesser
Guys, the line below just returned "Dec 07" as the date for one month back from today. Hardly life-threatening, but any thoughts? <?php print date("M `y", mktime(0, 0, 0, date("m")-1, date("d"), date("Y")));?> AS

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.