try this:

avoid <? ?> should be <?php ?> depends if your php.ini allowed the use of <? ?>

I agree RIP! Dennis

are you using LAMP?

put the variable in session then add 1 using increment..is that what you mean?

[CODE]$_SESSION['counter']=1 ...++

$_SESSION['item']=$_SESSION['counter'] + 1

$_SESSION['item'] = 2[/CODE]

I remember this in php4 you can try.

[CODE]

<?php
class Cart {
var $items; // Items in our shopping cart

// Add $num articles of $artnr to the cart

function add_item($artnr, $num) {
    $this->items[$artnr] += $num;
}

// Take $num articles of $artnr out of the cart

function remove_item($artnr, $num) {
    if ($this->items[$artnr] > $num) {
        $this->items[$artnr] -= $num;
        return true;
    } elseif ($this->items[$artnr] == $num) {
        unset($this->items[$artnr]);
        return true;
    } else {
        return false;
    }
}

}
?>

<?php
$cart = new Cart;
$cart->add_item("10", 1);

$another_cart = new Cart;
$another_cart->add_item("0815", 3);
?>

you can used these code below in constructor..

<?php
class Cart {
/ None of these will work in PHP 4. /
var $todays_date = date("Y-m-d");
var $name = $firstname;
var $owner = 'Fred ' . 'Jones';
/ Arrays containing constant values will, though. /
var $items = array("VCR", "TV");
}

/ This is how it should be done. /
class Cart {
var $todays_date;
var $name;
var $owner;
var $items = array("VCR", "TV");

function Cart() {
    $this->todays_date = date("Y-m-d");
    $this->name = $GLOBALS['firstname'];
    /* etc. . . */
}

}
?>

[/CODE]

how about if you remove "=0" in your private $no_of_items=0;

just type inside your class.

[CODE]private $no_of_items;[/CODE]

put this on top of your product.php
[CODE]
include("class.php");[/CODE]

you have to use MANUAL in disk partitioning..in Linux..and install your fedora iso
example: fdisk -l

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
/dev/sda2 13 20934 168048640 7 HPFS/NTFS - WINDOWS 7
/dev/sda3 20934 24759 30720000 7 HPFS/NTFS - DRIVE D:

/dev/sda4 24759 38913 113694561+ 5 Extended

NOTE: /dev/sd4 is EXTENDED PARTITION OF MY 320 GIG. HDD.

/dev/sda5 24759 28584 30720000 83 Linux - REDHAT
/dev/sda6 28584 32408 30720000 83 Linux - FEDORA
/dev/sda7 32408 36233 30724096 83 Linux - UBUNTU
/dev/sda8 36234 38913 21527068+ 83 Linux - DEBIAN

as far as my knowledge is concern you have to communicate with the assigned port number from 0 to 65535.
ftp 21
http 80 etc...etc...

[CODE]if ($sectionID==4 && $categoryID!=21 && $categoryyID!=27){[/CODE]

hi can you try do not put the "<xs:attribute/>" inside the <xs:sequence></xs:sequence>

[CODE]
<xs:element name="listings">
<xs:complexType>
<xs:sequence>
<xs:element name="listing" maxOccurs="unbounded" ref="listing"/>
<xs:attribute name="id" use="required" type="xs:integer"/>
<xs:attribute name="kind"use="required" type="xs:integer"/>
</xs:sequence>
</xs:complexType>
</xs:element>

should be like this...

<xs:element name="listings">
<xs:complexType>
<xs:sequence>
<xs:element name="listing" maxOccurs="unbounded" ref="listing"/>
</xs:sequence> [COLOR="Red"]<!--here's your sequence closing tag -->[/COLOR]
<xs:attribute name="id" use="required" type="xs:integer"/>
<xs:attribute name="kind"use="required" type="xs:integer"/>
</xs:complexType>
</xs:element>

[/CODE]

any help?

I have a login system and I want the user if he exit the browser he will be automatically logout on his account.

Hi All,

I want to run a HIDDEN FUNCTION when I click "OK"...not "CANCEL" in window.onbeforeunload() is it possible?

[CODE]<script type="text/javascript">
window.onbeforeunload = function()
{
var bUnsavedFields = true;

if(bUnsavedFields)
{
    window.event.returnValue = "I WANT THE OK BUTTON NOT CANCEL :) TO TRIGGER HIDDEN FUNCTION AFTER EXIT";
}
setTimeout("myFunction();",5000);

}

function myFunction(){
alert ("hello");
}
</script>
[/CODE]

index.php

[CODE]<?php
session_start();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>AroundField | Sharing Portugal with the World</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="pt">
<--! <meta name="author" content="www.epochmultimedia.com - geral@epochmultimedia.com">
<meta name="copyright" content="2011 © A. Morgado Gama">
<meta name="description" content="A. Morgado Gama - Página temporária">
<meta name="keywords" content="reabilitar, edifícios, construção, civil">

<link type="text/css" href="temas/clientside/geral.css" rel="stylesheet" media="screen" />
<!--[if IE]><link type="text/css" href="temas/clientside/IEstuff.css" rel="stylesheet" media="screen" /><![endif]-->

</head>

<body>

<div id="container">

<div id="header">
<h1>AroundField</h1>
<p>Sharing Portugal with the World</p>
</div>

<div class="content">
<h2>Na Aroundfield acreditamos que o bom trabalho gera bons negócios. Este é o nosso compromisso. </h2>
<h3>Ligar produtores e compradores numa base global, criando uma rede comercial que integra fornecimentos, marketing e transporte.</h3>
<h3>Acompanhar todos os processos, sejam eles operacionais, logísticos ou aduaneiros, para que o seu produto chegue aos novos parceiros, nas melhores condições.</h3>
<h4>Como?</h4>
<p>Avaliação e preparação</p>
<ul>
<li>Avaliação da capacidade da empresa, e dos produtos oferecidos à exportação.</li>
<li>Pesquisa de mercado.</li>
<li>Auxílio na preparação do(s) produto(s) da empresa nacional para o mercado externo.</li>
<li>Assessoria na adequação de embalagens, rótulos em língua estrangeira, etc.</li>
<li>Auxílio na formação de preços para exportação.</li>
</ul>
<p>Promoção</p>
<ul>
<li>Selecção de possíveis países compradores.</li>
<li>Apoio à elaboração de materiais promocionais, tais como site de Internet, panfletos explicativos, catálogos, etc.</li>
<li>Captação de clientes no mercado externo.</li>
<li>Envio de amostras para promoção do produto, consignação, participação em feiras e congressos.</li>
<li>Suporte na negociação internacional.</li>
</ul>
<p>Execução</p>
<ul>
<li>Colaboração na estratégia de exportação, vendas e distribuição internacional.</li>
<li>Preparação e organização de ...

you did not read my instruction carefully.. :-) you forgot this one.
you forgot to put
<?php
session_start(); //every file must have this code PUT THIS ON TOP OF YOUR 2 FILES.
?>

I am talking about your class not the session. I am suggesting put your domDocument as parent and extends some parts of your class code. But if your code is working fine never mind my suggestion.

tips you can extend your parent classes instead of inserting new object inside your class.

[CODE]

class Cart {
var $items; // Items in our shopping cart

// Add $num articles of $artnr to the cart

function add_item($artnr, $num) {
    $this->items[$artnr] += $num;
}

// Take $num articles of $artnr out of the cart

function remove_item($artnr, $num) {
    if ($this->items[$artnr] > $num) {
        $this->items[$artnr] -= $num;
        return true;
    } elseif ($this->items[$artnr] == $num) {
        unset($this->items[$artnr]);
        return true;
    } else {
        return false;
    }
}

}

[here's the extension :-)]

class Named_Cart extends Cart {
var $owner;

function set_owner ($name) {
    $this->owner = $name;
}

}
[/CODE]

define('UPLOAD_DIR','../htdocs/MyStuff/images/');

as far as my knowledge is concern...

var $dom; $body, $root is global inside your function....if you use that inside the class use that in this format "$this->dom; $this->body; $this->root".

change all your variables with this "$this->[variables];

i hope it helps.

ftp your site and type pwd that is your root directory :-)

mark as solved... :-)

you forgot to put
<?php
session_start(); //every file must have this code
?>

[CODE] if(!is_email($_POST['email']) || $_POST['email'] == "") {

        $erro2 = 1;
        $_SESSION['email'] = "";
        $sucesso= "<p class='alert error'><strong>(!)</strong> Introduza um email válido..</p>";
        $_SESSION['success']=$sucesso;//--------> PUT THIS
        header('Location: index.php');

    }
    if ($erro1 != 1 && $erro2 != 1) {

        if (mail($para, $assunto, $conteudo, $header)) {               
           $sucesso = "<p class='alert confirm'>Mensagem enviada!</p>";
           $_SESSION['success']=$sucesso;//--------> PUT THIS
           header('Location: index.php');

          $_SESSION['nome'] = "";
          $_SESSION['email'] = "";
          $_SESSION['conteudo'] = "";

        } else {
            $sucesso = "<p class='alert error'><strong>(!)</strong> Ocorreram erros..</p>";
            $_SESSION['success']=$sucesso;//--------> PUT THIS
            header('Location: index.php');
            [/CODE]

alert and back to referrer:

echo "<script>alert(\"Username not found.\")</script>"; die("<script type=\"text/javascript\">window.history.back();</script>");

NOTE: make sure your mess.php is in small letters not Mess.php

your code is working fine.......try to put your <?=$sucesso?> in SESSION VARIABLE.

$_SESSION['success']= $successo;

call this $_SESSION['success'] not the $successo because your varibale become local to each page to make it global use $_SESSION;

your code is working fine.......try to put your <?=$sucesso?> in SESSION VARIABLE.

$_SESSION['success']= $successo;

call this $_SESSION['success'] not the $successo because your varibale become local to each page to make it global use $_SESSION;

yes i am doing financial transaction :-)

thanks for your reply...ok try to end the cookies :-)

cookie and session id are the same in php right?

HTTP_COOKIE = PHPSESSID=e9d80541298eee19f05a93989b18b6cd

as far as my knowledge is concern.

create 2 tables
company and jobs
for every (primary key)"companyid" match in jobs table (foreign key) "companyid".
from their you can count how many jobs per company.

that is one-many relationship of database.