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 ArticleNeed 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 ArticleHow 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 Articleuploading 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 Articlehelp 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 ArticleHow 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 Articlephp 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 ArticleSecond 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 Articleinsert 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 ArticleReload 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 ArticleUsing 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 ArticlePHP Validating Randomly Generated Number
profit_calc.php <?php $page_title = "Calculating Profit"; include ('includes/header.php'); $pnd = "£"; $answer = $_POST['answer']; /*if (!defined($income && $costs)) { }*/ if...
View ArticleDatabase 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 ArticleToday - 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 ArticleStandard 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 ArticleUndefined 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 ArticleNo 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 ArticleAlign 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 ArticleWhere 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 ArticleTrying 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