divyakrishnan 20 Junior Poster

Refer Click Here
for array sorting .
Use a for loop to iterate the array elements and create hexadecimal color value for display.

divyakrishnan 20 Junior Poster

try this

<?php
echo '<div> <a href=' .$path.$i.$s.$ext. '>  <img src=' .$path.$i.$ext. '> </div>';
?>
divyakrishnan 20 Junior Poster

Print your insert query after line no 19.

echo $sql;

Copy and paste it into phpmyadmin(or the query analyser u r using).
Execute the query and check out the errors.
Also modify

mysql_query($sql) or die ('Something went wrong with submitting your information <br>'.mysql_error);
karthik_ppts commented: useful post +5
divyakrishnan 20 Junior Poster

Use following expression

+[^\s]

.+ means any character

\s means space character

[^\s] means except space character

karthik_ppts commented: useful +5
divyakrishnan 20 Junior Poster
divyakrishnan 20 Junior Poster
karthik_ppts commented: helpful link +5
divyakrishnan 20 Junior Poster

Also put a closing brace '}' on line no 47

karthik_ppts commented: useful +5
divyakrishnan 20 Junior Poster

Thank you :)..very much...
Only the first method works fine for me.

Also I had tried

unset($_POST);

It is clearing the array.But after resubmission again $_POST array is initialized with the posted data..
I can't use header().because I wanted to display some data on the same page.


But anyway my problem solved..thank u..