Quantcast
Channel: PHP Freaks: PHP Help
Browsing all 13200 articles
Browse latest View live

php error handling

hi ive encountered around 15 problems at once but just about all of them are on the same row <!DOCTYPE HTML> <html> <head> <style> .error {color: #FF0000;} </style>...

View Article


foreach loop in OOP

I'm a beginner currently studying Object Oriented Programming. The code in question is quite long so I will just share the snippet that I can't understand. private $productlist = array(); public...

View Article


New to PHP and need help with web page accessing a server

Hello, I'm new to this forum and PHP and need some help.  At work, we have users with Windows and Macs, so an Access database will not work because of the Macs.  I need a program that allows a user to...

View Article

Using multiple arrays or read in data

Ok, I was helped with using/displaying the following array:     Posted Yesterday, 10:06 AM Ok, new to PHP ... trying to figure out how to use a multidimensional array,the one shown below. The print_r...

View Article

Automatic line breaks and hyperlinks in text area field?

I have a site that is using some simple php to submit a form, but I would like to be able to have it automatically add the line breaks whenever I press enter when entering my text, as well as...

View Article


Prevent Direct Access to PHP File

Hi All,   I am looking into different methods to prevent users from directly accessing a php file. For example, if you have a form with an action="whatever.php" on it, a user can inspect the element in...

View Article

shopping cart - changing size options to update price

Hi   I have a shopping cart whereby the product details for each product are loaded from the MYSQL database into an array and echoed out onto the product page. I have been trying to change it so that...

View Article

Combine arrays, remove duplicates, sport, use in WHILE statement

Ugh - title should say sort, not sport, sorry.   This should be easy, but for the life of me, I cannot get this to work. I've been staring at it for so long, I'm going nuts.   Ultimately, what I'm...

View Article


PHP Script to Randomize Text Boxes?

Hi, Looking for a pretty simple script.   Need a drop down box for the user to select the number of text boxes that will appear. Once the text boxes load the user will be able to type their data in...

View Article


Simple PHP Array from MySQL row

Hi there,   Just a simple question for all you coders. I'm trying to make a PHP Array from MySQL results.   The two rows are 'players' and 'time'. The players row has plain numerical data and time,...

View Article

Re-cache image with CURL

Hi,   I have a image upload script and a image viewer. The image viewer works something like this: http://www.website.com/image/id_of_image/width/height   That will cache and render an image with...

View Article

Can some one help me add some additional functionality

I was surfing the net looking for a quick and dirty way to take a table with 3 headers, 1 footer and its contents are create a comma delimited CSV file. what I came across is the following:...

View Article

Image may be NSFW.
Clik here to view.

PHP add/remove table Postgresql

Hi I have data from database in postgresql. I show them like this <form name="delete" id="delete action="<?php echo $PHP_SELF?>" onsubmit="return sprawdz()" method="post" > <?php...

View Article


How to make include() function work on localhost.

Hey guys,   i am working for the first time on a localhost.   at the moment i have an index file and i want to start splitting the page up to make this website dynamic.   at first i tried to take my...

View Article

php form repeat button after submit and null input

hello, i know the title looks little bit strange but i have an issue with my php form , after i submit with empty input box i don't get the echo results as wanted in the code with unanswered mark , as...

View Article


synch two databases remote and my local

I need to synch two databases remote and my local. I have searched for ideas and they offer me the database replication but, my problem is, I don't know how to use the replicated database for...

View Article

vote development please

hey guys  i`m new in php oop programming and i  created a method that  selecting  data from single table in data base need your reviews and tips   here is the code :  require_once "Config.Class.php";...

View Article


Forms produced and validated in While Loop

Hey everyone, I have a page that I created for users to select certain products to reserve.  Each product is listed and a form is created using a while loop.  For some of the products, the user selects...

View Article

Beginner PHP function questions

Hi guys,I am trying to understand these questions regarding function and how or where can i get some knowledge to understand and create the code.questions are:1. Open the text file “status.txt” as read...

View Article

update user details sql query not working

Hi again ,   Im trying to create  form which allows the users to edit their data , I've created the form ,added the sql i think is right but its not working and giving me sql erro that the data can't...

View Article
Browsing all 13200 articles
Browse latest View live