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

pzuurveen 90 Posting Whiz in Training
  1. You move te uploaded file before you check it exist.
  2. you rename the already remaned file creating something like: image_0_1_2.jpg
pzuurveen 90 Posting Whiz in Training

first create te code in html to make sure you get what you want.
Then create that html-code using javascript with document.createElement

nouth commented: thanks :) +1
pzuurveen 90 Posting Whiz in Training

line 5

 if($email == $row1['email'])

and what are you trying to do on line 4?

pzuurveen 90 Posting Whiz in Training

also check out mysql_real_escape_string
(will not solf your problem but prevent hacking)

pzuurveen 90 Posting Whiz in Training

The only thing I can think of:
make sure your url is: http://localhost/youfile.php
not c:\wampp\htdocks\yourfile.php (what you will get if just clicking on it)

pzuurveen 90 Posting Whiz in Training

What are your db-tables look like?
post your code

pzuurveen 90 Posting Whiz in Training

I'm not sure what your asking for.
to get the id of the last insert into the db: mysqli.insert-id
show the code you have problems with

pzuurveen 90 Posting Whiz in Training

are you sureif(isset($_POST['jansave'])) is true?
if not the script exit whitout output
is 'jansave' the name of your submit-button?

start with var_dump($POST) to check

pzuurveen 90 Posting Whiz in Training

also maybe:

$sql="UPDATE db SET 2nd_email_sent ='1' WHERE 2nd_email_sent ='0' AND stage_two = '1'";
pzuurveen 90 Posting Whiz in Training
pzuurveen 90 Posting Whiz in Training

does underpublic/searchforprice.php exists on your server?

pzuurveen 90 Posting Whiz in Training

If you insist to code it yourself i recommend you create a childtheme
That way if you update the parent-theme, your changes remain.
You need to change alle files like sidebar.php, sidebar-main.php.
If, at a later date, you want to change the image, you have to edit all the same files again.

pzuurveen 90 Posting Whiz in Training

one to many %s

$query_lignecommande = sprintf (" INSERT
INTO lignecommande(commande,article,quantite,prix,subtotal,total) VALUES (%s, %s, %s, %s, %s, %s)",
GetSQLValueString($row_commande['id'],"int"),
GetSQLValueString($row_panier['article'], "int"),
GetSQLValueString($row_panier['quantite'],"int"),
GetSQLValueString($row_panier['prix'],"double"),
GetSQLValueString($row_panier['subtotal'],"double"),
GetSQLValueString($row_panier['total'],"double"));
pzuurveen 90 Posting Whiz in Training

why not look for a widget or theme that does what you want?

pzuurveen 90 Posting Whiz in Training

wordpress blocks the use of $()
use jQuery() instead

pzuurveen 90 Posting Whiz in Training
foreach ($array1 as $array2) 
    {
    $number[]=$array2['number'];
    }
array_multisort($number, $array1);
pzuurveen 90 Posting Whiz in Training

Have you cheched if the new user is succesfull inserted into the database (before the activation step)?

pzuurveen 90 Posting Whiz in Training
pzuurveen 90 Posting Whiz in Training

$pdf->Cell(0,10,'id'.$row['id'],0,1); $row['id'] don't exist : your query only gets the name.
it sould be $pdf->Output($name,I); or $pdf->Output();

header('Location: '. ".pdf"); you already send the pdf to the bouwser, also requires a full filename or url

pzuurveen 90 Posting Whiz in Training

should line 25 not be header('Content-type: application/pdf'); ?