Upload Image from web form into directory, rename image to unique id of mysql database row

I have a web form that has textboxes along with an upload control. Once clicking the "submit" button, I would like the the image to be uploaded to a directory that I will choose, the image to be renamed to the current unique ID of the data row that the other data fields are going into, the URL/link to the renamed image be copied to the access database row. I need it to be renamed so that way it does not become a duplicate. What php coding can I use to do this? The first code below is the process php the second is the HTML form.

So basically what I want to do is upload the image "not" to the mysql database but to a file directory. Rename it so I won't have duplicates and insert a link and name of the image onto the same row as the rest of the info the user is giving on the form.

Can anyone start me off how to begin this or direct me somewhere. Thanks!
<?php
session_start();

	$con = mysql_connect("localhost","","");
	if (!$con){die('Could not connect: ' . mysql_error());}

// if residential
if($_POST['type'] == "residential"){
		mysql_select_db("", $con);
		$sql = "INSERT INTO apartments (username, title, county, town, type, description, phone, rooms, bath, square, rent) VALUES ('".$myusername."', '".$_POST['title']."', '".$_POST['county']."', '".$_POST['town']."', '".$_POST['type']."', '".$_POST['description']."','".$_POST['phone']."','".$_POST['rooms']."','".$_POST['bath']."','".$_POST['square']."','".$_POST['rent']."')";

		$result = mysql_query($sql) or die(mysql_error());
}
// if commercial
else if($_POST['type'] == "commercial"){
		mysql_select_db("", $con);
		$sql = "INSERT INTO comm (username, title, county, town, type, description, phone, rooms, bath, square, rent) VALUES ('".$myusername."', '".$_POST['title']."', '".$_POST['county']."', '".$_POST['town']."', '".$_POST['type']."', '".$_POST['description']."','".$_POST['phone']."','".$_POST['rooms']."','".$_POST['bath']."','".$_POST['square']."','".$_POST['rent']."')";

		$result = mysql_query($sql) or die(mysql_error());
}

	echo "<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><br /><h1>You Have Successfully Posted</h1>";
	echo "<p>&nbsp;</p><p>&nbsp;</p><br /><a href='index.php'>go to your ACCOUNT page</a>";
		
?><?php
session_start();

	$con = mysql_connect("localhost","","");
	if (!$con){die('Could not connect: ' . mysql_error());}

// if residential
if($_POST['type'] == "residential"){
		mysql_select_db("", $con);
		$sql = "INSERT INTO apartments (username, title, county, town, type, description, phone, rooms, bath, square, rent) VALUES ('".$myusername."', '".$_POST['title']."', '".$_POST['county']."', '".$_POST['town']."', '".$_POST['type']."', '".$_POST['description']."','".$_POST['phone']."','".$_POST['rooms']."','".$_POST['bath']."','".$_POST['square']."','".$_POST['rent']."')";

		$result = mysql_query($sql) or die(mysql_error());
}
// if commercial
else if($_POST['type'] == "commercial"){
		mysql_select_db("", $con);
		$sql = "INSERT INTO comm (username, title, county, town, type, description, phone, rooms, bath, square, rent) VALUES ('".$myusername."', '".$_POST['title']."', '".$_POST['county']."', '".$_POST['town']."', '".$_POST['type']."', '".$_POST['description']."','".$_POST['phone']."','".$_POST['rooms']."','".$_POST['bath']."','".$_POST['square']."','".$_POST['rent']."')";

		$result = mysql_query($sql) or die(mysql_error());
}

	echo "<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><br /><h1>You Have Successfully Posted</h1>";
	echo "<p>&nbsp;</p><p>&nbsp;</p><br /><a href='index.php'>go to your ACCOUNT page</a>";
		
?>

Open in new window

<form method="POST" action="processform.php" enctype="multipart/form-data">
  <table width="601" border="0">
  <tr>
    <td width="70" height="68"><div align="right"><span style="color: #F00">*</span>Title</div></td>
    <td width="13"><div align="center">:</div></td>
    <td width="504"><label for="title"></label>
      <span id="sprytextfield4">
      <input name="title" type="text" id="title" size="70" maxlength="75" />
      <span class="textfieldRequiredMsg"><br />
      A value is required.</span><span class="textfieldMinCharsMsg">Minimum number of characters not met.</span></span></td>
  </tr>
  <tr>
    <td><div align="right">County</div></td>
    <td><div align="center">:</div></td>
    <td><label for="county"></label>
      <select name="county" id="county">
        <option>Bronx</option>
        <option>Brooklyn</option>
        <option>Manhattan</option>
        <option>Queens</option>
        <option>Staten Island</option>
    </select></td>
  </tr>
  <tr>
    <td><div align="right">Town</div></td>
    <td><div align="center">:</div></td>
    <td><label for="town"></label>
    <input name="town" type="text" id="town" size="50" maxlength="30" /></td>
  </tr>
  <tr>
    <td><div align="right">Type</div></td>
    <td><div align="center">:</div></td>
    <td><label for="type">
      <select name="type" id="type">
        <option>Residential</option>
        <option>Commercial</option>
      </select>
    </label></td>
  </tr>
  <tr>
    <td><div align="right">Description</div></td>
    <td><div align="center">:</div></td>
    <td><label for="description"></label>
    <textarea name="description" cols="70" rows="25" id="description"></textarea></td>
  </tr>
  <tr>
    <td><div align="right">Phone</div></td>
    <td><div align="center">:</div></td>
    <td><label for="phone"></label>
      <span id="rental_phone">
      <input type="text" name="phone" id="phone" />
<span class="textfieldInvalidFormatMsg">Invalid format.</span></span><br />
<span style="font-style: italic; font-size: 12px;">ex. (123) 456-7890</span></td>
  </tr>
  <tr>
    <td><div align="right">Rooms</div></td>
    <td><div align="center">:</div></td>
    <td><label for="rooms"></label>
      <select name="rooms" id="rooms">
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
        <option>5</option>
        <option>6</option>
    </select></td>
  </tr>
  <tr>
    <td><div align="right">Bath</div></td>
    <td><div align="center">:</div></td>
    <td><label for="bath"></label>
      <select name="bath" id="bath">
        <option>1</option>
        <option>2</option>
        <option>3</option>
        <option>4</option>
    </select></td>
  </tr>
  <tr>
    <td><div align="right">Square ft.</div></td>
    <td><div align="center">:</div></td>
    <td><label for="square"></label>
    <input name="square" type="text" id="square" size="6" maxlength="6" /></td>
  </tr>
  <tr>
    <td><div align="right"><span style="color: #F00">*</span>Rent</div></td>
    <td><div align="center">:</div></td>
    <td><label for="rent"></label>
      <span id="currency">
      <input name="rent" type="text" id="rent" size="6" maxlength="5" />
    <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldMinValueMsg">The entered value is less than the minimum required.</span><span class="textfieldMaxValueMsg">.</span></span></td>
  </tr>
  <tr>
    <td><div align="right"><span style="color: #F00">*</span>Fees</div></td>
    <td><div align="center">:</div></td>
    <td><label for="fees"></label>
      <span id="rental_fee">
      <input type="text" name="fees" id="fees" />
      <br />
    <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldMinCharsMsg">Minimum number of characters not met</span>.</span></td>
  </tr>
  <tr>
    <td><div align="right">Image 1</div></td>
    <td><div align="center">:</div></td>
    <td><input id="image1" type="file" name="file[]"></td>
  </tr>
  <tr>
    <td><div align="right">Image 2</div></td>
    <td><div align="center">:</div></td>
    <td><input id="image2" type="file" name="file[]"></td>
  </tr>
  <tr>
    <td><div align="right">Image 3</div></td>
    <td><div align="center">:</div></td>
    <td><input id="image3" type="file" name="file[]"></td>
  </tr>
  <tr>
    <td><div align="right">Image 4</div></td>
    <td><div align="center">:</div></td>
    <td><input id="image4" type="file" name="file[]"></td>
  </tr>
  <tr>
    <td><div align="right">Image 5</div></td>
    <td><div align="center">:</div></td>
    <td><input id="image5" type="file" name="file[]"></td>
  </tr>
  <tr>
    <td colspan="3">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><input type="submit" name="button" id="button" value="Submit" />
    <input type="reset" name="button2" id="button2" value="Reset" /></td>
  </tr>
</table>
</FORM>

Open in new window

genesisvhAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
Seems like there are a lot of questions here.  Not sure where you are on your PHP and MySQL skills, but I would definitely recommend that you start with mastery of the exercises in this book.
http://www.sitepoint.com/books/phpmysql4/

Can you show us what you have tried to do with image uploading?
0
genesisvhAuthor Commented:
Well I found this code and I want to added to the process php form above also adjust  so I can add 5 images.
<?php  

// filename: 

// first let's set some variables

// make a note of the current working directory, relative to root.
$directory_self = str_replace(basename($_SERVER['PHP_SELF']), '', $_SERVER['PHP_SELF']);

// make a note of the directory that will recieve the uploaded files
$uploadsDirectory = $_SERVER['DOCUMENT_ROOT'] . $directory_self . 'classified/images/';

// make a note of the location of the upload form in case we need it
$uploadForm = 'http://' . $_SERVER['HTTP_HOST'] . $directory_self . 'posting_form.php';

// make a note of the location of the success page
$uploadSuccess = 'http://' . $_SERVER['HTTP_HOST'] . $directory_self . '';

// name of the fieldname used for the file in the HTML form
$fieldname = 'image1';

//echo'<pre>';print_r($_FILES);exit;

// Now let's deal with the uploaded files

// possible PHP upload errors
$errors = array(1 => 'php.ini max file size exceeded', 
                2 => 'html form max file size exceeded', 
                3 => 'file upload was only partial', 
                4 => 'no file was attached');

// check the upload form was actually submitted else print form
isset($_POST['submit'])
	or error('the upload form is neaded', $uploadForm);
	
// check if any files were uploaded and if 
// so store the active $_FILES array keys
$active_keys = array();
foreach($_FILES[$fieldname]['name'] as $key => $filename)
{
	if(!empty($filename))
	{
		$active_keys[] = $key;
	}
}

// check at least one file was uploaded
count($active_keys)
	or error('No files were uploaded', $uploadForm);
		
// check for standard uploading errors
foreach($active_keys as $key)
{
	($_FILES[$fieldname]['error'][$key] == 0)
		or error($_FILES[$fieldname]['tmp_name'][$key].': '.$errors[$_FILES[$fieldname]['error'][$key]], $uploadForm);
}
	
// check that the file we are working on really was an HTTP upload
foreach($active_keys as $key)
{
	@is_uploaded_file($_FILES[$fieldname]['tmp_name'][$key])
		or error($_FILES[$fieldname]['tmp_name'][$key].' not an HTTP upload', $uploadForm);
}
	
// validation... since this is an image upload script we 
// should run a check to make sure the upload is an image
foreach($active_keys as $key)
{
	@getimagesize($_FILES[$fieldname]['tmp_name'][$key])
		or error($_FILES[$fieldname]['tmp_name'][$key].' not an image', $uploadForm);
}
	
// make a unique filename for the uploaded file and check it is 
// not taken... if it is keep trying until we find a vacant one
foreach($active_keys as $key)
{
	$now = time();
	while(file_exists($uploadFilename[$key] = $uploadsDirectory.$now.'-'.$_FILES[$fieldname]['name'][$key]))
	{
		$now++;
	}
}

// now let's move the file to its final and allocate it with the new filename
foreach($active_keys as $key)
{
	@move_uploaded_file($_FILES[$fieldname]['tmp_name'][$key], $uploadFilename[$key])
		or error('receiving directory insuffiecient permission', $uploadForm);
}
?>

Open in new window

0
Ray PaseurCommented:
Line 87: get rid of the @ in front of your function calls.  The @ suppresses error messages and you really want to see all the error messages at this point in the application life cycle.  Add error_reporting(E_ALL); to the top of your scripts.

There are so many moving parts in the question(s) here - you might get better answers if you tried to separate the question into its component parts -- how to get a unique id or name for a file?  how to upload a file?  how to know the file is an image and not a virus?  All of these things are important to the app.  I can show you some examples of the parts from my teaching library but the integration into the web application will be up to you.

Here is an example of how to upload files.
<?php // RAY_upload_example.php
error_reporting(E_ALL);


// MANUAL REFERENCE PAGES
// http://docs.php.net/manual/en/features.file-upload.php
// http://docs.php.net/manual/en/features.file-upload.common-pitfalls.php
// http://docs.php.net/manual/en/function.move-uploaded-file.php
// http://docs.php.net/manual/en/function.getimagesize.php


// PHP 5.1+  SEE http://us3.php.net/manual/en/function.date-default-timezone-set.php
date_default_timezone_set('America/Chicago');

// ESTABLISH THE NAME OF THE 'uploads' DIRECTORY
$uploads = 'RAY_junk';

// ESTABLISH THE BIGGEST FILE SIZE WE CAN ACCEPT - ABOUT 8 MB
$max_file_size = '8192000';

// ESTABLISH THE MAXIMUM NUMBER OF FILES WE CAN UPLOAD
$nf = 3;

// ESTABLISH THE KINDS OF FILE EXTENSIONS WE CAN ACCEPT
$file_exts = array
( 'jpg'
, 'gif'
, 'png'
, 'txt'
, 'pdf'
)
;

// LIST OF THE ERRORS THAT MAY BE REPORTED IN $_FILES[]["error"] (THERE IS NO #5)
$errors = array
( 0 => "Success!"
, 1 => "The uploaded file exceeds the upload_max_filesize directive in php.ini"
, 2 => "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form"
, 3 => "The uploaded file was only partially uploaded"
, 4 => "No file was uploaded"
, 5 => "UNDEFINED ERROR"
, 6 => "Missing a temporary folder"
, 7 => "Cannot write file to disk"
)
;




// IF THERE IS NOTHING IN $_POST, PUT UP THE FORM FOR INPUT
if (empty($_POST))
{
    ?>
    <h2>Upload <?php echo $nf; ?> file(s)</h2>

    <!--
        SOME THINGS TO NOTE ABOUT THIS FORM...
        ENCTYPE IN THE HTML <FORM> STATEMENT
        MAX_FILE_SIZE MUST PRECEDE THE FILE INPUT FIELD
        INPUT NAME= IN TYPE=FILE DETERMINES THE NAME YOU FIND IN $_FILES ARRAY
        ABSENCE OF ACTION= ATTRIBUTE IN FORM TAG CAUSES POST TO SAME SCRIPT
    -->

    <form name="UploadForm" enctype="multipart/form-data" method="post">
    <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $max_file_size; ?>" />
    <p>
    Find the file(s) you want to upload and click the "Upload" button below.
    </p>

    <?php // CREATE INPUT STATEMENTS FOR UP TO $n FILE NAMES
    for ($n = 0; $n < $nf; $n++)
    {
        echo "<input name=\"userfile$n\" type=\"file\" size=\"80\" /><br/>\n";
    }
    ?>

    <br/>Check this box <input autocomplete="off" type="checkbox" name="overwrite" /> to <strong>overwrite</strong> existing files.
    <input type="submit" value="Upload" />
    </form>
    <?php
    die();
}
// END OF THE FORM SCRIPT



// WE HAVE GOT SOMETHING IN $_POST - RUN THE ACTION SCRIPT
else
{
    // THERE IS POST DATA - PROCESS IT
    echo "<h2>Results: File Upload</h2>\n";

    // ACTIVATE THIS TO SEE WHAT IS COMING THROUGH
    //    echo "<pre>"; var_dump($_FILES); var_dump($_POST); echo "</pre>\n";

    // ITERATE OVER THE CONTENTS OF $_FILES
    foreach ($_FILES as $my_uploaded_file)
    {
        // SKIP OVER EMPTY SPOTS - NOTHING UPLOADED
        $error_code    = $my_uploaded_file["error"];
        if ($error_code == 4) continue;

        // SYNTHESIZE THE NEW FILE NAME
        $f_type    = trim(strtolower(end    (explode( '.', basename($my_uploaded_file['name'] )))));
        $f_name    = trim(strtolower(current(explode( '.', basename($my_uploaded_file['name'] )))));
        $my_new_file = getcwd() . '/' . $uploads . '/' . $f_name . '.' . $f_type;
        $my_file     =                  $uploads . '/' . $f_name . '.' . $f_type;

        // OPTIONAL TEST FOR ALLOWABLE EXTENSIONS
        if (!in_array($f_type, $file_exts)) die("Sorry, $f_type files not allowed");

        // IF THERE ARE ERRORS
        if ($error_code != 0)
        {
            $error_message = $errors[$error_code];
            die("Sorry, Upload Error Code: $error_code: $error_message");
        }

        // GET THE FILE SIZE
        $file_size = number_format($my_uploaded_file["size"]);

        // IF THE FILE IS NEW (DOES NOT EXIST)
        if (!file_exists($my_new_file))
        {
            // IF THE MOVE FUNCTION WORKED CORRECTLY
            if (move_uploaded_file($my_uploaded_file['tmp_name'], $my_new_file))
            {
                $upload_success = 1;
            }
            // IF THE MOVE FUNCTION FAILED
            else
            {
                $upload_success = -1;
            }
        }

        // IF THE FILE ALREADY EXISTS
        else
        {
            echo "<br/><b><i>$my_file</i></b> already exists.\n";

            // SHOULD WE OVERWRITE THE FILE? IF NOT
            if (empty($_POST["overwrite"]))
            {
                $upload_success = 0;
            }
            // IF WE SHOULD OVERWRITE THE FILE, TRY TO MAKE A BACKUP
            else
            {
                $now    = date('Y-m-d');
                $my_bak = $my_new_file . '.' . $now . '.bak';
                if (!copy($my_new_file, $my_bak))
                {
                    echo "<br/><strong>Attempted Backup Failed!</strong>\n";
                }
                if (move_uploaded_file($my_uploaded_file['tmp_name'], $my_new_file))
                {
                    $upload_success = 2;
                }
                else
                {
                    $upload_success = -1;
                }
            }
        }

        // REPORT OUR SUCCESS OR FAILURE
        if ($upload_success == 2) { echo "<br/>It has been overwritten.\n"; }
        if ($upload_success == 1) { echo "<br/><strong>$my_file</strong> has been saved.\n"; }
        if ($upload_success == 0) { echo "<br/><strong>It was NOT overwritten.</strong>\n"; }
        if ($upload_success < 0)  { echo "<br/><strong>ERROR: $my_file NOT SAVED - SEE WARNING FROM move_uploaded_file() COMMAND</strong>\n"; }
        if ($upload_success > 0)
        {
            echo "$file_size bytes uploaded.\n";
            if (!chmod ($my_new_file, 0755))
            {
                echo "<br/>chmod(0755) FAILED: fileperms() = ";
                echo substr(sprintf('%o', fileperms($my_new_file)), -4);
            }
            echo "<br/><a href=\"$my_file\">See the file $my_file</a>\n";
        }
    // END FOREACH ITERATOR - EACH ITERATION PROCESSES ONE FILE
    }
}

Open in new window

0
genesisvhAuthor Commented:
I thing I have most of the script done, but in the form I have 4 inputs for images. On the script I can only figure out how to include only one. As $fieldname1 = 'image1'; How do I include the rest of the images to be included throughout the script? This code is pretty much what I want to do.
<?php 
session_start(); 

// filename: upload.processor.php

// first let's set some variables

// make a note of the current working directory, relative to root.
$directory_self = str_replace(basename($_SERVER['PHP_SELF']), 'user/', $_SERVER['PHP_SELF']);

// make a note of the directory that will recieve the uploaded files
$uploadsDirectory = $_SERVER['DOCUMENT_ROOT'] . $directory_self . 'images/';

// make a note of the location of the upload form in case we need it
$uploadForm = 'http://' . $_SERVER['HTTP_HOST'] . $directory_self . 'process_form.php';

// make a note of the location of the success page
$uploadSuccess = 'http://' . $_SERVER['HTTP_HOST'] . $directory_self . 'multiple.upload.success.php';

// name of the fieldname used for the file in the HTML form
$fieldname1 = 'image1';
$fieldname2 = 'image2';
$fieldname3 = 'image3';
$fieldname4 = 'image4';

//echo'<pre>';print_r($_FILES);exit;

// Now let's deal with the uploaded files

// possible PHP upload errors
$errors = array(1 => 'php.ini max file size exceeded', 
                2 => 'html form max file size exceeded', 
                3 => 'file upload was only partial', 
                4 => 'no file was attached');

// check the upload form was actually submitted else print form
isset($_POST['submit'])
	or error('the upload form is neaded', $uploadForm);
	
// check if any files were uploaded and if 
// so store the active $_FILES array keys
$active_keys = array('jpg','gif','png','pdf');
foreach($_FILES[$fieldname1]['image1name'] as $key => $filename1)
{
	if(!empty($filename1))
	{
		$active_keys[] = $key;
	}
}

// check at least one file was uploaded
count($active_keys)
	or error('No files were uploaded', $uploadForm);
		
// check for standard uploading errors
foreach($active_keys as $key)
{
	($_FILES[$fieldname1]['error'][$key] == 0)
		or error($_FILES[$fieldname1]['image1tmp_name'][$key].': '.$errors[$_FILES[$fieldname1]['error'][$key]], $uploadForm);
}

	
// check that the file we are working on really was an HTTP upload
foreach($active_keys as $key)
{
	@is_uploaded_file($_FILES[$fieldname1]['image1tmp_name'][$key])
		or error($_FILES[$fieldname1]['image1tmp_name'][$key].' not an HTTP upload', $uploadForm);
}
	
// validation... since this is an image upload script we 
// should run a check to make sure the upload is an image
foreach($active_keys as $key)
{
	@getimagesize($_FILES[$fieldname1]['image1tmp_name'][$key])
		or error($_FILES[$fieldname1]['image1tmp_name'][$key].' not an image', $uploadForm);
}
	
// make a unique filename for the uploaded file and check it is 
// not taken... if it is keep trying until we find a vacant one
foreach($active_keys as $key)
{
	$now = time();
	while(file_exists($uploadFilename[$key] = $uploadsDirectory.$now.'-'.$_FILES[$fieldname1]['image1name'][$key]))
	{
		$now++;
	}
}

// now let's move the file to its final and allocate it with the new filename
foreach($active_keys as $key)
{
	@move_uploaded_file($_FILES[$fieldname1]['image1tmp_name'][$key], $uploadFilename[$key])
		or error('receiving directory insuffiecient permission', $uploadForm);
}
$con = mysql_connect("localhost","","");
	if (!$con){die('Could not connect: ' . mysql_error());}

// if residential
if($_POST['type'] == "residential"){
		mysql_select_db("", $con);
		$sql = "INSERT INTO apartments (username, title, county, town, type, description, phone, rooms, bath, square, rent, fees) VALUES ('".$myusername."', '".$_POST['title']."', '".$_POST['county']."', '".$_POST['town']."', '".$_POST['type']."', '".$_POST['description']."','".$_POST['phone']."','".$_POST['rooms']."','".$_POST['bath']."','".$_POST['square']."','".$_POST['rent']."')";

		$result = mysql_query($sql) or die(mysql_error());
}
// if commercial
else if($_POST['type'] == "commercial"){
		mysql_select_db("", $con);
		$sql = "INSERT INTO comm (username, title, county, town, type, description, phone, rooms, bath, square, rent, fees) VALUES ('".$myusername."', '".$_POST['title']."', '".$_POST['county']."', '".$_POST['town']."', '".$_POST['type']."', '".$_POST['description']."','".$_POST['phone']."','".$_POST['rooms']."','".$_POST['bath']."','".$_POST['square']."','".$_POST['rent']."')";

		$result = mysql_query($sql) or die(mysql_error());
}

	echo "<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><br /><h1>You Have Successfully Posted</h1>";
	echo "<p>&nbsp;</p><p>&nbsp;</p><br /><a href='index.php'>go to your ACCOUNT page</a>";
	?>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
genesisvhAuthor Commented:
My fault for not being able to completely give a full explanation.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.