Results 1 to 7 of 7
Thread: mysql ..
Hybrid View
-
8th June 2010 22:39 #1
mysql ..
, , - . submit- "TEXT", , . PHP, ( XAMPP) netb, table1, . - . - owner text, machine text price, . - . , Submit - error . .. ?
, ..Code:<?php $owner = $_POST['owner']; $machine = $_POST['machine']; $price = $_POST['price']; mysql_connect ("localhost", "admin", "12345") or die ('ERROR: ' . mysql_error()); mysql_select_db ("netb"); $query="INSERT INTO table1 (owner, machine, price)VALUES ('".$owner.", ".$machine.", ".$price."')"; mysql_query($query) or die ('Error adding your entry'); echo "Database updated with the following data: " .$owner. " ".$machine." ".$price ; ?>
0.1.8.5.2.6.3.1.9.7
-
8th June 2010 22:41 #2
mysql_error(). VALUES , .
EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|
-
8th June 2010 22:49 #3
. - echo, , , - - ..
0.1.8.5.2.6.3.1.9.7
-
8th June 2010 22:49 #4
mysql_real_escape_string() . , .
POST .
magic_quotes_gpc php . , , -.
, , echo- ( ).
PHP- MySQL.
... or die() , or die() , , $query:
echo htmlspecialchars($query), .
-
8th June 2010 22:50 #5
( ).
, *.Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
8th June 2010 22:50 #6
, ' .
Code:$query="INSERT INTO table1 (owner, machine, price)VALUES ('$owner','$machine', '$price')";. HWBG !
-
8th June 2010 22:54 #7
. , . , guys
0.1.8.5.2.6.3.1.9.7




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in