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

importing multiple files into different mysql tables

ok, I've been at this for months and each time I think I get it fixed, it ends up broken again. i'm tired of looking at it, thinking I know what's wrong when I really don't have a clue.  This script...

View Article


I need help with PHP codes

Hi guys, I am taking a PHP class and I need your help. I have the instructions below: 1. Create a variable called $validations that stores an empty array. 2. For each data field’s input, make a call to...

View Article


How to store array to MySQL

I get the result from the other website and make it as array. And the output result like this, how can I store the result by each row to each field in the MySQL?     Array (     [0] => Array...

View Article

how to keep the choosed data in the <select> element? HTML

The user chooses his year of birth. This is stored in my mysql database. Easy. <select name="year" >  for ($year = 1960; $year <= 2030; $year++)  {              echo '<option...

View Article

Function to sort multidimensional array by a value

Sorry for being in the wrong forum but I couldn't post in the Code Snippets section.   Here is a quick function that will sort a multidimensional array by a given value function subval_sort(array...

View Article


Image may be NSFW.
Clik here to view.

Database wont update

This is doing my head in.  I have another page on a different table (same database) where this works fine. Yet now when I try to update the record, the eventbody (text area) just echos the data with...

View Article

how to display user's after log in

i wanted to display the user name after they logged in, i have the code below,   this is my login.php <tr bgcolor="#FFFFFF"> <td width="71">Username</td>  <td...

View Article

How to pass a user's select value to a cookie and maintain it?

I have a table with some data.   The user chooses how he wants the data in the table to be sorted in the user.php page. The table data are stored in my mysql database. Easy. However because the table...

View Article


Help with form

when the user hits submit and all the fields are filled out it should print out a little welcome note, it is doing everything except that.. help please.. im sure its one of my true or false or...

View Article


Problem in sending email with cc fields

Hi All,   I have been working on an application where I need to send  reminder mails to my users when the condition is met. I will send the reminder mail only to the users  2 days prior to the...

View Article

Help, Pretty Please stuck

I have a database on one shared hosting plan and a form on the other.. that form was originally set to just email the details when filled out.. and worked perfectly until yesterday.. when I added some...

View Article

looping variable

Im trying to loop a variable to extract each customer out the database however it just repeats the same customer   any help would be greatly appreciated. $completed_orders=mysql_query("SELECT * FROM...

View Article

MAMP gives errors, Server works perfect

MAMP is giving me the following error: E_WARNING: Cannot modify header information - headers already sent by (output started at /Users/jason/Sites/site.com/admin.site.com/show.php:1) in...

View Article


search string in data base

Hi I have one problem , I need to search any string data . Below my code. When I click, no results as well as no error   Index.php   <?php  include_once '../templete/header.php'; ?> <html...

View Article

i have an undefined index error, please aid me

<?php //connect to the database  require_once('connectvars.php');   $firstname = ( $_POST['firstname']); $lastname = ( $_POST['lastname']); $username = ( $_POST['username']); $password = (...

View Article


Mysql Multiform Tracking

Hello,   So I am having a bit of an issue with some forms I am working with. Let me first descirbe the issue at hand then we will get to my request for help.   So I have 3 tables set up with roughly...

View Article

If URL then script

The first block of code is what i want to use since i know it works, but i dont know how to use it with the code already there. <?php  if  (strpos($_SERVER['REQUEST_URI'], 'upload.php') == false) {...

View Article


Need some help...

Actually, I'm really need help with writing a web application to filling grade book of student's group.  Because, I have no idea, how to do this... And... Sorry for my mistakes)

View Article

Please help error preg_replace !

Hi, i'm having this error on my page, but i cant get it solved. Can some please help me ? I am searching for almost 2 weeks now.     Warning: preg_replace() [function.preg-replace]: No ending delimiter...

View Article

Send a Div to Mail

I'm making a system and i want to add a button that if you click it.. will send some info from a div to a friend, but to be honest i dont have any idea how can i do this..   i used google to find info...

View Article
Browsing all 13200 articles
Browse latest View live