pzuurveen 90 Posting Whiz in Training

Why not use explode

pzuurveen 90 Posting Whiz in Training

remove the style="display:none;" from

    <ul id="playlist1" style="display:none;">
        <?=$output?>
    </ul>
diafol commented: Still laughing. Heh heh. +15
pzuurveen 90 Posting Whiz in Training
if (isset($_POST['chkNumberck'])) $returnArray=$_POST['chkNumberck'];
else $chkNumberck= array();
$count=5;

echo"<form action='test.php' method='post'>";
for ($sub_id=0 ;$sub_id < $count;$sub_id+=1) 
    {
    echo "<input type='checkbox' name='chkNumberck[]'  value=$sub_id "; 
    if (in_array($sub_id,$chkNumberck)) echo"checked='checked'";>
    }
echo "<input type='submit' /></form>";
pzuurveen 90 Posting Whiz in Training

2e part:

       $output ="";
           while($record = mysqli_fetch_assoc($query_confirm)) {
                $output .= "<tr>";
                $output .= "<td>" . $record["p_date"] . "</td>";
                $output .= "<td>" . $record["p_day"] . "</td>";
                $output .= "<td>" . $record["timein"] . "</td>";
                $output .= "<td>" . $record["timeout"] . "</td>";
                $output .= "<td>" . "06:25:22" . "</td>";
                $output .= "<td>" . $record["p_date"] . "</td>";
                $output .= "</tr>";
                }   
            return $output; 

not sure about the 1st part.
Are $dateval1 eand $dateval2 in the proper format?
how is p_date defined? date? dateTime?

pzuurveen 90 Posting Whiz in Training

also:

echo "<td><a id='more' href='http://www.niloofar3D.ir' onClick='return popup(this, \"mypopup\")'><button>&raquo;</button></a></td>";
pzuurveen 90 Posting Whiz in Training

html line 9

<input type="submit" name="y" value="submit my data" />

Your submit-button is called 'y' not submit
either change that line or your php_handler.php line 3:

if (isset($_POST['y'])){
pzuurveen 90 Posting Whiz in Training
pzuurveen 90 Posting Whiz in Training

make sure your browser points to http://localhost/yourfile.php and NOT file://c:/wamp/htdocs/yourfile.php

pzuurveen 90 Posting Whiz in Training

have you checked out the php mail function?

pzuurveen 90 Posting Whiz in Training

do you get any error messages?

pzuurveen 90 Posting Whiz in Training

have you checked out move-uploaded-file?
take a look at the example

pzuurveen 90 Posting Whiz in Training

problably just a past error line 2:
<?phpforeach($row as $b):?>
must be
<?php foreach($row as $b):?>

but where is the endforeach;

pzuurveen 90 Posting Whiz in Training
if(!empty($stu_fname) &&
   !empty($stu_lname) && 
   !empty($stu_email) && 
   !empty($stu_telp)  && 
   !empty($stu_skype) )  {
pzuurveen 90 Posting Whiz in Training

edit: nevermind

pzuurveen 90 Posting Whiz in Training

if $_GET['Id'] (line 1) is not set, $row['PageId'] (line 27) will no exist

pzuurveen 90 Posting Whiz in Training

sleep
also check out
set-time-limit

pzuurveen 90 Posting Whiz in Training
// always do this:
require "connection.php";
$add = mysql_query("INSERT INTO contacts VALUES('$name','$house')");
$add2=NULL; // so we can do: if ($add2) do stuff
$add3=NULL;
//  wheder we have a child or not, if spouse add it 
if($spouse == "Yes")
    {
    $add2 = mysql_query("INSERT INTO dependents VALUES('$spousename','$spousehouse')");
    }
//  wheder we have a spouse or not, if child add it 
if(($spouse == "Yes") AND ($child == "No"))
    {
    $add3 = mysql_query("INSERT INTO dependentd VALUES('childname','childhouse')");
    }
pzuurveen 90 Posting Whiz in Training

better:

function makeArray($keys, $value)
        {
        $var=array();   
        $index=array_shift($keys);
        if (!isset($keys[0]))
            {
            $var[$index]=$value;
            }
        else 
            {   
            $var[$index]=makeArray($keys,$value);            
            }
        return $var;
        }

$keys = array('key1', 'key2', 'key3');
$value = 'some value';   
$md =makeArray($keys,$value);
var_dump($md);
pzuurveen 90 Posting Whiz in Training

works:

$keys = array('key1', 'key2', 'key3');
$value = 'some value';
$string='$md';
foreach($keys as $index => $key)
    {   
    $string.="['$key']";
    }
 $string.= '=$value;';
 eval($string);
 var_dump($md); 

but:

If eval() is the answer, you're almost certainly asking the
wrong question. -- Rasmus Lerdorf, BDFL of PHP

pzuurveen 90 Posting Whiz in Training

Best start with html.
php is mostly used to create html pages dynamically.

pzuurveen 90 Posting Whiz in Training

vars inside ' ' are treated as plain text
vars inside " " are treated as var
so
should work

echo "<img src='libchart-1.3\libchart\demo\generated\demo25_$email.gif'>";

also posible

echo '<img src="libchart-1.3\libchart\demo\generated\demo25_'.$email.'.gif">';
pzuurveen 90 Posting Whiz in Training

do var_dump($sql); to see if the query looks like you want it to.
(post the resulst)

also read this artical about mysql-php-sql-injection

pzuurveen 90 Posting Whiz in Training

is that from the query from line 88?
cant, there is no query at line 88, but there must be one.

pzuurveen 90 Posting Whiz in Training

change the ` (back tick) in the query value part to ' (single qoute)
stings are surounde by a single qoute.
Colomnames by a back tick

pzuurveen 90 Posting Whiz in Training

In your exampele, &pn; &adj-no; and &n; are values of $node->sense->pos not child-elements

pzuurveen 90 Posting Whiz in Training

can you post the (part of) xml-file?

pzuurveen 90 Posting Whiz in Training

N is the number of levels of subdirectory used.
"N;/temp" makes no sence.
3; /temp does, but is not necessary and not recommended, so do you reley need it?
see php#ini.session.save-path

pzuurveen 90 Posting Whiz in Training

your html

<p><label for="img1">صورة 1</label>
<input type="file" name="img[]" id="fileField1" />
<input type="text" name="label[]" id="Limage1" placeholder="Add label">
</p>

your php

...
$tmp_name = $_FILES["img"]["tmp_name"][$key];
$name = $_FILES["img"]["name"][$key];

$label = $_POST['label'][$key];

....
// change your query to save $label in your db

if($result){
    // header('Location:includes/pan/projects/google/face.php?propid='.$p);
    // cant redirect, have to do 4 more images
}else{
echo"Error";
}
...
pzuurveen 90 Posting Whiz in Training

wordpress has it own opload tools for images and other 'media'.
But it uses ftp when you do an update.
What is not working for you?

pzuurveen 90 Posting Whiz in Training

You change the use the filename that you already changed as the oridanal one. $filename_data=explode(".", $_FILES['img']['name']);
The solustion is to take this out of the while loop.
You also need to test if the file exist in the $target dir as you do inside the loop