wat is er hier fout aan krijg deze code:
dit is mijn code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
if($_SERVER['REQUEST_METHOD'] == 'POST')
{
$sTrans['name'] = 'naam';
$sTrans['cats'] = 'categarie';
$sTrans['price'] = 'prijs';
$sTrans['information'] = 'informatie';
$sTrans['picture1'] = 'picture1';
$sTrans['picture2'] = 'picture2';
$sQuery = mysql_query("
INSERT INTO
products
(
pro_sid,
pro_name,
pro_cats,
pro_price,
pro_information,
pro_picture1,
pro_picture2,
pro_remote,
pro_date
)
VALUES
(
'" . mysql_real_escape_string($rowUser['use_id']) . "',
'" . mysql_real_escape_string($_POST['name']) . "',
'" . mysql_real_escape_string($_POST['cats']) . "',
'" . mysql_real_escape_string($_POST['price']) . "',
'" . mysql_real_escape_string($_POST['information']) . "',
'" . mysql_real_escape_string($_POST['picture1']) . "'
'" . mysql_real_escape_string($_POST['picture2']) . "'
'" . mysql_real_escape_string($_SERVER['REMOTE_ADDR']) . "',
NOW()
)
");
if(mysql_error())
{
echo mysql_error();
}
else
{
echo $_POST['name'],'is ctoeveg';
}
}
}
?>
|
|
|
16-08-2010 18:02
Dit topic is 126 keer bekeken door 22 verschillende leden
Reacties op: "Probleem met toevoegen van data in php"
1
Reageer op: "Probleem met toevoegen van data in php"
1