Click here to Skip to main content
15,894,896 members
Home / Discussions / Database
   

Database

 
GeneralRe: Postgres 9.1 and C# app Pin
Mycroft Holmes25-Nov-11 0:52
professionalMycroft Holmes25-Nov-11 0:52 
GeneralRe: Postgres 9.1 and C# app Pin
Aleonis25-Nov-11 1:13
Aleonis25-Nov-11 1:13 
GeneralRe: Postgres 9.1 and C# app Pin
Mycroft Holmes25-Nov-11 12:30
professionalMycroft Holmes25-Nov-11 12:30 
GeneralRe: Postgres 9.1 and C# app Pin
Aleonis25-Nov-11 22:24
Aleonis25-Nov-11 22:24 
QuestionUsing database Pin
idbee2k322-Nov-11 5:22
idbee2k322-Nov-11 5:22 
AnswerRe: Using database Pin
R. Giskard Reventlov22-Nov-11 23:11
R. Giskard Reventlov22-Nov-11 23:11 
AnswerRe: Using database Pin
Simon_Whale22-Nov-11 23:49
Simon_Whale22-Nov-11 23:49 
AnswerRe: Using database Pin
Satheesh154623-Nov-11 6:08
Satheesh154623-Nov-11 6:08 
Hi,

PHP-Mysql combination is like bread and butter. First you need to install Mysql. Or use some packages like Wamp server.
Then ,

1. create a database
2. create a table namely 'feedback', with three fields such as dtTime, name , comment.
Create table feedback(dtTime datetime, name varchar(55), comment text);


Then on website create a page for entering user feedback. Then on serverside

<?php
$date = date('Y-m-d H:i:s');
$name = $_POST['email'];
$comment = $_POST['comment'];
mysql_connect("localhost", "root", "");
mysql_select_db('dbname');
$query = "INSERT INTO feedback VALUES($date, '$name', '$comment')";
$res = mysql_query($query);
if($res)
echo "Successfully posted your comment";
?>


for retrieving these comments, write query according to that..
GeneralRe: Using database Pin
Peter_in_278023-Nov-11 13:10
professionalPeter_in_278023-Nov-11 13:10 
Questioncharacter found after end of sql statement Pin
chandru7021-Nov-11 23:36
chandru7021-Nov-11 23:36 
AnswerRe: character found after end of sql statement PinPopular
Jörgen Andersson21-Nov-11 23:49
professionalJörgen Andersson21-Nov-11 23:49 
GeneralRe: character found after end of sql statement Pin
chandru7022-Nov-11 16:52
chandru7022-Nov-11 16:52 
QuestionHow to add Dynamic Colunms in a report Pin
Bonginkoci21-Nov-11 23:21
Bonginkoci21-Nov-11 23:21 
AnswerRe: How to add Dynamic Colunms in a report Pin
SilimSayo22-Nov-11 6:16
SilimSayo22-Nov-11 6:16 
Questioncan a trigger have parameters Pin
yousefshokati21-Nov-11 19:42
yousefshokati21-Nov-11 19:42 
AnswerRe: can a trigger have parameters? Pin
Shameel21-Nov-11 22:51
professionalShameel21-Nov-11 22:51 
AnswerRe: can a trigger have parameters Pin
Corporal Agarn22-Nov-11 3:01
professionalCorporal Agarn22-Nov-11 3:01 
GeneralRe: can a trigger have parameters Pin
yousefshokati22-Nov-11 19:33
yousefshokati22-Nov-11 19:33 
GeneralRe: can a trigger have parameters Pin
SilimSayo23-Nov-11 10:59
SilimSayo23-Nov-11 10:59 
GeneralRe: can a trigger have parameters Pin
yousefshokati23-Nov-11 19:56
yousefshokati23-Nov-11 19:56 
GeneralRe: can a trigger have parameters Pin
Chris Meech24-Nov-11 5:05
Chris Meech24-Nov-11 5:05 
GeneralRe: can a trigger have parameters Pin
SilimSayo24-Nov-11 6:18
SilimSayo24-Nov-11 6:18 
GeneralRe: can a trigger have parameters Pin
Chris Meech24-Nov-11 6:29
Chris Meech24-Nov-11 6:29 
GeneralRe: can a trigger have parameters Pin
SilimSayo24-Nov-11 10:14
SilimSayo24-Nov-11 10:14 
AnswerRe: can a trigger have parameters Pin
vankireddy satish25-Nov-11 2:36
vankireddy satish25-Nov-11 2:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.