pzuurveen 90 Posting Whiz in Training

You can find many tutorials about that on the web.
Here is one

pzuurveen 90 Posting Whiz in Training

sleep
also check out
set-time-limit

pzuurveen 90 Posting Whiz in Training

so you want to add skins (diverent look for each reader) to wordpress?
or are you talking about themes (admin set this trough the dashboard)?

pzuurveen 90 Posting Whiz in Training

go to your dashboard
goto settings->read
select the page you want to be you startpage

pzuurveen 90 Posting Whiz in Training

i now see that i forgot to remove te spouse in the last part :(

//  wheder we have a spouse or not, if child add it 
if($child == "Yes")
    {
    $add3 = mysql_query("INSERT INTO dependentd VALUES('childname','childhouse')");
    }
pzuurveen 90 Posting Whiz in Training

works the result is in the htmlResponse var

<form>
Select Project:*
<select name="project_id" id="project_id" >
<option value="0">Select Project</option>
<option value="1">a</option>
<option value="2">b</option>
<option value="3">c</option>
</select>
Select Week*:
<select name="week" id="week_id">
<option value="0">Select Week</option>
<option value="1">This Week</option>
<option value="2">Last Week</option>
<option value="3">2 Weeks back</option>
</select>
</form>
<div>return:<span id="returnValue"></span></div>
<script type="text/javascript" src="js/jquery-latest.js"></script>
<script>
function showValues() {
    var str = $( "form" ).serialize();
    //$( "#mydiv" ).text( str );
    $.ajax({
    type : 'POST',  
    url : 'test.php',
    data : str,
    dataType : "html",
    success: function(htmlResponse)
        {
        $("#returnValue").html(htmlResponse);
        }
    });
}

$( "select" ).on( "change", showValues );
showValues();
</script>
pzuurveen 90 Posting Whiz in Training

checkout database normalisation.
this one has some nice examples on the 2e halve of the page

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

to create a custum botton in google maps see
https://developers.google.com/maps/documentation/javascript/controls
a little over halfway down

pzuurveen 90 Posting Whiz in Training

what do you got so far?

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

You have to use base64_encode
There is even an example there by Cristiano Calligaro

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

you might want to take a look at $_SESSION

pzuurveen 90 Posting Whiz in Training

first
change your password on your remote server.
Don't post it again!

2e
you forget to select the databaseon the remote, you do on localhost

3e mysql is deprecated. check out MySQLi or PDO_MySQL

pzuurveen 90 Posting Whiz in Training
$headers = 'From: webmaster@example.com' . "\r\n";
$sen=mail($to, 'My Subject', $message,$headers);
pzuurveen 90 Posting Whiz in Training

if you call your script like yourfile.php?id=1234
$id will be 1234

pzuurveen 90 Posting Whiz in Training

Parse error: syntax error, unexpected $end in 91

You probably have open brackets
if you Indent you can easly spot where.

pzuurveen 90 Posting Whiz in Training

You can use $_SESSION

or $_POST

<input type="text" value="<?php echo $row['id'];?>"  readonly>
pzuurveen 90 Posting Whiz in Training

Look like a copy/passed erros arround line 21.
You mix mysql statments with pdo objects.
how to use pdo corectly see this

something simular at line 38

pzuurveen 90 Posting Whiz in Training

ok
look like if(!(curl_errno($ch)>0)){ is false
That means you have an error in your curl part.
so add an else echo curl_error($ch); between line 69 and 70

p.s. my name is Zuurveen, not veen

pzuurveen 90 Posting Whiz in Training

the same as this post this post

See that you didn't change to

if ($child->getName() == "URL")
$url = (string) $child; 

have you done a var_dump('$gateway_url'); yet?
post the result

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

You have "Width" in your form but uses $_POST["width"]

pzuurveen 90 Posting Whiz in Training

Does $gateway_url has the right value now?
do a var_dump($gateway_url);

also: It makes no sens to me to open a link in an IFrame and than immediately redirect (the mainframe) to a new page.
You don't need the Iframe.

pzuurveen 90 Posting Whiz in Training

line 57

 if ($child->getName() == "URL")
        $url = $child; 

$child is of type simplexml-element (object)
therefor so is $url
use (string) yo make it a string:

if ($child->getName() == "URL")
            $url = (string) $child; 

do the same on line 55 and 52

pzuurveen 90 Posting Whiz in Training
$gateway_url = $url."?ORDERID=".$orderid."&SESSIONID=".$sessionid;
?>
<iframe src="<?php echo $gateway_url; ?>" style="border:0px #FFFFFF none;" name="manframe" scrolling="no" frameborder="0" marginheight="0px" marginwidth="0px" height="60px" width="468px"></iframe>
pzuurveen 90 Posting Whiz in Training
  • install xampp
  • install wordpress
  • install same plugins as on your hosted wp
  • export data frorm hosted wp (admin/extra)
  • import data on local wp
    and you have a copy of your website on local host
pzuurveen 90 Posting Whiz in Training

and what are the error that you are getting?

pzuurveen 90 Posting Whiz in Training

there can be no output , or even empty lines outside <?php ?> before

session_start();

so do as veedeoo tells you and put it at the top of the page

<?php
session_start();
?>
<!DOCTYPE html>
<html>
pzuurveen 90 Posting Whiz in Training

I don't think or die(mysql_error() works here because you access the mysql not though php but though the shell.
to get te result back from the shell

exec('command', $result);
var_dump($result);
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

what version of php are you using
it's not default part of php before 5.3
See http://www.php.net/manual/en/fileinfo.installation.php

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

sender must be an emailadress

$sender = "markii-designs@yoursever.com";
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

Your $_POST values are lost because the redirect in form-check.php
You can also put the code from form-check.php into the index.php file.
And than have your form action point to index.php.

pzuurveen 90 Posting Whiz in Training

look to me that company/vision-mission.html get redirected to company.php?pageSlug=vision-mission

in company the vision-mision page is fechted for the data base:

wdsQuery("SELECT pages_ID, pages_title, pages_description, pages_content, pages_slug FROM " . $dbtable['pages'] . " WHERE pages_slug = '" . slugs($_GET['pageSlug']) . "'");

and echoed:

echo $r['pages_content'];
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

just do the same for the pdf as you did for the rar.
you will need a different fileatt_type (just google that)
don't forget the --{$mime_boundary}\n

pzuurveen 90 Posting Whiz in Training

here is the program

where?

pzuurveen 90 Posting Whiz in Training

no.
php runs on the server.
Then the html & javaschript output is sent to the browser.
The browser runs the javascript.

to get the javascript valus back to the server you can use ajax.
jQuey makes it easyer

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

It doesn't change anything in the <form>. Just where the data is sendto when you press your send button.

the javascript: http://www.w3schools.com/jsref/met_form_submit.asp

pzuurveen 90 Posting Whiz in Training

your sendbutten is just a link to send_email.php

to actualy send your form :<input type="submit" value="send eamail"> before the </form>
also change <form name="form2" method="post" action="send_email.php" class="search_form">
or use javascript

pzuurveen 90 Posting Whiz in Training

The html form date type is in most cases just a text.
If you want te curent time justuse the php date function.
if you want another date I recoment diverent fields for day, month and year.
Also: mysql is deprecated use mysqli.
Also 2: check out mysql_real_escape_string (or even better mysqli_real_escape_string) to prevent hacking