Current Page: 1 of 1
Results 1 - 20 of 20
10 years ago
emick
<?php $calculate = $_POST ['calculate']; $b = $_POST ['b']; $h = $_POST ['h']; $i = 0.5; // var declaration if ( $calculate !="" ) { // calculation $total = $i * $b * $h; echo ("the area of triangle is : $total <br>" ) ; } ?> <form method="post" action="<?php $PHP_SELF ?>"> Base <input type="Text" name
Forum: WampServer English
11 years ago
emick
thank you very much for helping me sir. you are great problem solver!
Forum: WampServer English
11 years ago
emick
i've deleted it. but i still have same prob. do you have teamviewer?
Forum: WampServer English
11 years ago
emick
MYSQL
Forum: WampServer English
11 years ago
emick
pink. ok now i have another prob. i reinstall the wamp, but i cant access phpMyAdmin. #2002 - No connection could be made because the target machine actively refused it. The server is not responding (or the local server's socket is not correctly configured).
Forum: WampServer English
11 years ago
emick
i've many time asking people but i couldnt solve my prob. my prob is when i key in data to the form and submit, the data ddnt save in db.
Forum: WampServer English
11 years ago
emick
no, im use wamp on my laptop and xampp on my another pc. the icon color when it's online is green on red on offline.
Forum: WampServer English
11 years ago
emick
i hv no idea bout this coding. i've it try on xampp then got nothing error and it was connected to db. btw i have to use wamp for this project.
Forum: WampServer English
11 years ago
emick
no the msg didnt appear either 'Could not connect: ' or 'Connected successfully'. i've look at my php error log, thre is nothing there.
Forum: WampServer English
11 years ago
emick
the msg didnt appear, only "Thank you! Information entered" that appear. $db = mysql_connect("localhost", "root" if ( ! $db ) { die( 'Could not connect: ' . mysql_error() ); } echo 'Connected successfully' mysql_select_db("coffeehouse", $db); $sql = "INSERT INTO comment (UserId, Name, Email, Comment) VALUES ('$UserId','$Name','$Email
Forum: WampServer English
11 years ago
emick
it doesnt working, or maybe i have problem in my database? i have 1 table in my db and 4 columns. primary key is UserId. 2
Forum: WampServer English
11 years ago
emick
there is no error on my coding.
Forum: WampServer English
11 years ago
emick
the data that user input in form didt save in database. may you help me?
Forum: WampServer English
11 years ago
emick
somebody help me to find way how to resolve my prob. this is my code. <html> <head> <title>Contact Us</title> <link rel = "stylesheet" type = "text/css" href = "cssmenu.css"> <link rel = "stylesheet" type = "text/css" href = "table.css"> <link rel = "stylesheet" type = "text/
Forum: WampServer English
11 years ago
emick
oh, okey. btw thank you
Forum: WampServer English
11 years ago
emick
now it become Notice: Undefined variable: name in C:\wamp\www\test\hi.php on line 9 Notice: Undefined variable: submit in C:\wamp\www\test\hi.php on line 9 Thank you! Information entered. this is my coding <html> <body> <?php if ( array_key_exists('submit', $_POST ) ) { // process form $db = mysql_connect("localhost", "root" mysql_select_db(&
Forum: WampServer English
11 years ago
emick
please help me, i have no idea about undefined variable. here is the code. <html> <body> <?php if ($submit) { // process form $db = mysql_connect("localhost", "root" mysql_select_db("mydb",$db); $sql = "INSERT INTO employees (first,last,address,position) VALUES ('$first','$last','$address','$position')"; $result = mysql_query($s
Forum: WampServer English
Current Page: 1 of 1