473,538 Members | 2,690 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.
47
4,630
thread by: ndedhia1 | last post Mar 3 '09 by: Atli
I have data in a database that looks like this: INSERT INTO ALARMNOTIFICATIONDETAIL VALUES ('1865', '2295', '15401', '1', 'Prodprdcons11InstrumentationMonitor', 'ALL'); INSERT INTO ALARMNOTIFICATIONDETAIL VALUES ('1866', '2296', '15401', '1', 'ProdPRDCONS5InstrumentationMonitor', 'ALL'); INSERT INTO ALARMNOTIFICATIONDETAIL VALUES ('1867',...
48
2,274
thread by: mantrid | last post Nov 16 '06 by: dorayme
Hello Is there a way to prevent users copying a full size image from a web page. Displaying the image with a smaller width and height only affects the image as viewed, the actual full size image file is still downloaded. I know I can get around it by having two versions of an image, the full size one and a smaller on for display purposes. but...
48
2,349
thread by: coool | last post Aug 17 '07 by: coool
Hi I'm now trying to have a dependent lists in a form my form is a query based form i.e. I fill my MySQL query from this form I have around 30 fields/columns
48
41,350
thread by: mirianCalin | last post Feb 7 '12 by: naimlatifi
i am doing a site for appliance center.. i need to display all the products that the company offers, but my problem is that i cant display ALL the images in my database.. the first entry on the database is the only one that displays.. i am using mysql as database here's the code.. tell me what's my error and pls. kindly edit it.. **imgdata...
48
2,628
anfetienne
thread by: anfetienne | last post Apr 21 '09 by: anfetienne
ive got an upload file form and it can have as many fields as a user wants to add images but say the user accidently pushes submit and the images upload (they are renamed as 1.jpg, 2.jpg, 3.jpg etc etc) but the user still wants to upload more images.....is it possible for php to read a directory and check what the filenames are and then renamed...
49
1,683
thread by: comp.lang.php | last post Apr 19 '07 by: comp.lang.php
/** * Class for grayscaling image * * @author Phil Powell * @version 1.2.1 * @package IMAGE_CATALOG::IMAGE */ class ImageGrayscaleGenerator extends ImageResizeComponents { /
49
16,252
thread by: Julian Bowler | last post Jan 5 '09 by: Julian Bowler
Please can some one help with my problem; I am running Apache web server on my lap top, plus a mysql server and php. The version of php currently installed is 5.2.5. when i write some php to connect to my mysql database server instead of it connecting i get : Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache...
49
5,921
anfetienne
thread by: anfetienne | last post Jul 29 '09 by: anfetienne
is it possible to add php array to vars in the swfobject code?
50
3,702
thread by: 127.0.0.1 | last post Jul 17 '05 by: Gerhard Fiedler
With all the problems with having register_globals = on, I propose the following idea: We define register_globals_manual = on as a new configuration default. What this does is enable 3 new explicit variable declaration mechanisms with the same syntax as the existing static and global mechanisms. They would be httpget, httppost and...
50
4,230
thread by: Jerry Sievers | last post Jul 17 '05 by: Kenneth Downs
<venting> Fellow coders; I just get off the phone today with some clueless headhunter and after listing for her (very proudly I might add) my OS and dev tools platforms of choice; Linux/Apache/Postgres/PHP I get a few moments of silence and she mentiones to me some new wizzy
51
5,210
thread by: Mudge | last post Jul 17 '05 by: Tony Marston
Please, someone, tell me why OO in PHP is better than procedural.
51
2,731
thread by: hinksta | last post Aug 13 '07 by: pbmods
I have a query that uses ORDER BY I would like it to order by a string that is made after some sub queries at the end of the query. Is there a nice trick to do this or do I need to find a way to get the string made before the query?
51
4,086
thread by: Ojas | last post Dec 12 '07 by: Steve
Hi!, I just out of curiosity want to know how top detect the client side application under which the script is getting run. I mean to ask the how to know whether the script is running under Command Prompt or Browser or some other application? Ojas.
51
3,485
thread by: fjm | last post Jun 19 '09 by: Atli
Hey everyone. I'm back in search of a better understanding of OOP. I feel like these past couple of months have paid off for me because I am at a point where I am really beginning to understand how this all works. I'd like to get some clarification on a few things first. My questions stem from wanting to use private members and methods. I know...
52
6,358
thread by: Tony Marston | last post Jul 17 '05 by: Tony Marston
Several months ago I started a thread with the title "What is/is not considered to be good OO programming" which started a long and interesting discussion. I have condensed the arguments into a single article which can be viewed at http://www.tonymarston.net/php-mysql/good-bad-oop.html I fully expect this to be the start of another flame...
52
5,080
thread by: bb nicole | last post Mar 2 '07 by: bb nicole
Below is my forget password, why cannot function?? When i click on the submit button, it still remain on the same page and just like i didn't click anything... <?php if($go == "1") { mysql_connect("localhost","root",""); mysql_select_db("ums e-job portal"); $sql = @mysql_query("SELECT * FROM company WHERE username='$username' &&...
52
3,326
thread by: burgermeister01 | last post Jun 2 '08 by: ELINTPimp
First, let me say that this question is a rather general programming question, but the context is PHP, so I figured this group would have the most relevant insight. Anyways, this is also more of an opinion based question than one seeking a definite answer. Recently, while maintaining a rather large system. I needed to add an array class...
53
9,900
thread by: dterrors | last post Jul 17 '05 by: Umberto Salsi
Will php 6 do strong typing and/or namespaces? I was shocked to find out today that there are some people who actually argue that weak typing is somehow better. I didn't even know there was a debate. Shocking. That's like arguing that square tires are better than round. Anyway if anyone knows that php is going to intentionally stay...
53
2,970
thread by: Sanders Kaufman | last post Dec 27 '07 by: Jerry Stuckle
I'm having a BLAST writing this app as OOP as PHP allows. It's one thing to discuss the dance, but it's a thing of beauty to see the performance. I'm noticing that the constructor is a "reset" switch - just like the one on the front of my computer. Calling it seems to just dump all of the old values, free up all of the old resources, and...
53
4,384
thread by: angelicdevil | last post Jun 1 '09 by: Atli
ok i have a folder made on the server and uploaded image files to it...the link to the image file or rather the path to the image is uploaded in the database in 'image_path' , now i want that the system read the path and resize it to generate a thumbnail and display it on the browser. but the code is showing blank <? // generating a...
54
8,914
thread by: Jerry | last post Jul 17 '05 by: Erwin Moller
What are the advantages and disadvantages of using Object Oriented PHP vs Java?
54
3,585
thread by: sam.s.kong | last post Feb 10 '06 by: David Haynes
Hi! I've been programming ASP for 5 years and am now learning PHP. In ASP, you can use GetRows function which returns 2 by 2 array of Recordset. Actually, it's a recommended way in ASP when you access DB as it disconnects the DB earlier. Also, it's handy as you can directly access any data in the array without looping.
55
4,514
thread by: Matt Morgan | last post Nov 20 '11 by: Matt Morgan
I have created a form on my website but for some reason 3 sections of the form arenot submitting correctly. After clicking submit I recieve this on screen: 'We are very sorry, but there were error(s) found with the form you submitted. These errors appear below. The RAID you entered do not appear to be valid. The Accessories you entered do not...
56
2,931
thread by: tasteless | last post Apr 24 '07 by: Steve
Hi guys, I need really hard questions (about 10) about PHP programming (some of elements OOP as well, but no MySQL questions - this is different part), this questions needs to be very hard, but the experienced senior PHP developer should answered on it. I've already searched in google and google groups archive but without any good...
56
7,178
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

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.