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

Hi I Need help on a php form

Hi guys I'm new to this. I tried to post this yesterday,thought it posted but don't see it today. this is my problem: This is my first try at php.I have a contact form with: First Name, Last Name,...

View Article


Need help unlinking files

Hey,    I am trying to unlink all files in 2 seperate directories using the array_map function. On one of the directories it works, and the second directory it does not unlink any of the files. I have...

View Article


How do I verify the catpcha

Hi guys, I have an email form on a website that sends the form data to an external php file (contact-form-handler.php) I have recently tried to add a captcha however I have been unsuccessful in getting...

View Article

Image may be NSFW.
Clik here to view.

uploading csv files

Hi everyone,   I got trouble uploading a csv file in php. Cant seem to figure out whats wrong, it always lead me to "nicetry" even though im sure im uploading a csv file.   upload_page <?php echo...

View Article

help in creating a search form

Hi there   I am trying to create a search form to retrive rates form multiple selections and then display the results.   i have created the database in mysql   database name: Rates   in that there are...

View Article


How to print all images stored in a file Directory?

I have been trying for a day now to print all the images stored in a directory, however at the minute i can only get one to appear.   could anyone point me in the right direction? function...

View Article

Image may be NSFW.
Clik here to view.

php filter_has_var for validation help

could someone look at this and see if they can tell what I am doing wrong? please and thanks    <?php $chkerrors = FALSE; if (!filter_has_var(INPUT_POST, "fName"));{ echo " please enter a value ";...

View Article

Second pair of eyes, why is the query failing to execute.

Think I'm missing something here. I can print/echo the $sql variable and paste it into phpMyadmin and it works just fine, but for some reason it will not work correctly here. Anybody see anything off?...

View Article


insert one row per day between two dates.

I am looking into a ROTA for my work and I have a function that inserts data about annual leave request. This was one line per request and included a start and end date recorded as UNIX time. However i...

View Article


Image may be NSFW.
Clik here to view.

Reload Page.

I have a form which when submitted should display the updates on the page however it doesn't. The data uploads into the database gracefully however it does not show on the page until it is refreshed. I...

View Article

Using an array and inserting ids from a mysql table until the array has 6 items

Hi, I want to have an empty array then when I load a page it will get the id of the mysql data an insert this into the array, up to a maximum of 6 times..   I have no ideas how to set or update arrays,...

View Article

PHP Validating Randomly Generated Number

profit_calc.php <?php $page_title = "Calculating Profit"; include ('includes/header.php'); $pnd = "&pound"; $answer = $_POST['answer']; /*if (!defined($income && $costs)) { }*/ if...

View Article

Database driven photo gallery using jquery

Hi   I'm an Illustrator with little knowledge of web development, i'm experienced in HTML, CSS. I'm ok in PHP and Jquery and SQL   I was wondering if it was possible to make a website where i can...

View Article


Today - Past Date = Time in seconds

Hey guys,   Does anyone know a simple ,clean way of getting the time between a past date and todays date in seconds? I'm trying to figure out what the Linux Timestamp is about. I know it's the time...

View Article

Image may be NSFW.
Clik here to view.

Standard Mysql/Database Practice?

Hey guys,   I was thinking about this just now. It would be great to get an idea of how you PHP gurus would handle server organization for something like a Facebook-ish site. No, i'm not trying to...

View Article


Undefined Variable

I recieved this coding on another site and changed it a little to get it to work with MYSQL database. I am able to connect to my localhost database but when I put in a search term I get this error:   !...

View Article

No results; error on line 15

Got one problem fixed on this site which is great but now I am not getting any results from my query. I am getting this error from search.php   ( ! ) Notice: Undefined index: query in...

View Article


Align picture within fieldset ,Help!

Hi friends I am trying to align a picture grabbed from database in right side within fieldset. but this is not working please help me in it friends.   echo'<fieldset...

View Article

Where to store sensitive client details (MYSQL DB credentials)

I have a security related question about storing some client information - specifically their database login credentials. My app works based on the client and so the database details need to be set at...

View Article

Image may be NSFW.
Clik here to view.

Trying to get the hang of php classes

Hi,   I am trying to get the hang of php classes and I thought the best way is to get your hands dirty I am good at the old php style, functions, array, etc... but when it comes to classes, for some...

View Article
Browsing all 13200 articles
Browse latest View live