Click here to Skip to main content
15,908,015 members
Home / Discussions / Database
   

Database

 
AnswerRe: Help with this SQl Logic without using UDF Pin
Not Active9-Feb-10 5:52
mentorNot Active9-Feb-10 5:52 
GeneralRe: Help with this SQl Logic without using UDF Pin
Vimalsoft(Pty) Ltd9-Feb-10 19:41
professionalVimalsoft(Pty) Ltd9-Feb-10 19:41 
GeneralRe: Help with this SQl Logic without using UDF Pin
nainakarri10-Feb-10 17:55
nainakarri10-Feb-10 17:55 
GeneralRe: Help with this SQl Logic without using UDF Pin
Vimalsoft(Pty) Ltd10-Feb-10 19:35
professionalVimalsoft(Pty) Ltd10-Feb-10 19:35 
GeneralRe: Help with this SQl Logic without using UDF Pin
Mycroft Holmes10-Feb-10 20:02
professionalMycroft Holmes10-Feb-10 20:02 
GeneralRe: Help with this SQl Logic without using UDF Pin
Vimalsoft(Pty) Ltd10-Feb-10 20:06
professionalVimalsoft(Pty) Ltd10-Feb-10 20:06 
AnswerRe: Help with this SQl Logic without using UDF Pin
Mycroft Holmes9-Feb-10 13:38
professionalMycroft Holmes9-Feb-10 13:38 
QuestionReading variables in Insert Query Pin
gregarion9-Feb-10 2:47
gregarion9-Feb-10 2:47 
SOrry, I posted this question earlier but it was in the wrong area , so i had to repost it here


mysql_query(connection, "INSERT INTO main (Name , FriendName) VALUES('Mark', 'John')"); 


This coding works fine when i run it in my Netbeans.

What i would like to do is instead of having to hardcore the inserted values into the query, i would like it to read from a variable. For exmaple the data to be inserted is from a string... like....


string NewName= "Monaco";
string NewFriendName = "Polo";



How do i edit my sql statements so variables can be inserted into the Insert statement so the query will read the variables and then store their values in the database. Really need some help in this
AnswerRe: Reading variables in Insert Query Pin
loyal ginger9-Feb-10 2:54
loyal ginger9-Feb-10 2:54 
GeneralRe: Reading variables in Insert Query Pin
gregarion9-Feb-10 2:58
gregarion9-Feb-10 2:58 
GeneralRe: Reading variables in Insert Query Pin
Maximilien9-Feb-10 4:18
Maximilien9-Feb-10 4:18 
GeneralRe: Reading variables in Insert Query Pin
David Skelly9-Feb-10 5:27
David Skelly9-Feb-10 5:27 
GeneralRe: Reading variables in Insert Query Pin
gregarion9-Feb-10 5:29
gregarion9-Feb-10 5:29 
GeneralRe: Reading variables in Insert Query Pin
David Skelly10-Feb-10 6:04
David Skelly10-Feb-10 6:04 
GeneralRe: Reading variables in Insert Query Pin
Richard MacCutchan9-Feb-10 6:32
mveRichard MacCutchan9-Feb-10 6:32 
Questiondoubt in multiple criteria Pin
Mogamboo_Khush_Hua9-Feb-10 2:44
Mogamboo_Khush_Hua9-Feb-10 2:44 
AnswerRe: doubt in multiple criteria Pin
Mycroft Holmes9-Feb-10 13:21
professionalMycroft Holmes9-Feb-10 13:21 
AnswerRe: doubt in multiple criteria Pin
WoutL9-Feb-10 20:12
WoutL9-Feb-10 20:12 
GeneralRe: doubt in multiple criteria Pin
Hesham Amin9-Feb-10 20:34
Hesham Amin9-Feb-10 20:34 
GeneralRe: doubt in multiple criteria Pin
Mogamboo_Khush_Hua10-Feb-10 5:31
Mogamboo_Khush_Hua10-Feb-10 5:31 
GeneralRe: doubt in multiple criteria Pin
WoutL10-Feb-10 6:24
WoutL10-Feb-10 6:24 
QuestionProblem with query Pin
gregarion9-Feb-10 2:42
gregarion9-Feb-10 2:42 
AnswerRe: Problem with query Pin
loyal ginger9-Feb-10 2:56
loyal ginger9-Feb-10 2:56 
GeneralRe: Problem with query Pin
gregarion9-Feb-10 2:59
gregarion9-Feb-10 2:59 
QuestionAccess 2007 calculation query Pin
Dalek Dave9-Feb-10 1:26
professionalDalek Dave9-Feb-10 1:26 

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.