Click here to Skip to main content
15,921,774 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: php website setup Pin
omlac16-Mar-09 20:48
omlac16-Mar-09 20:48 
GeneralRe: php website setup Pin
tech60321-Mar-09 6:43
tech60321-Mar-09 6:43 
QuestionGlobal variable across multiple files and multiple code snippets Pin
Joan M2-Mar-09 9:51
professionalJoan M2-Mar-09 9:51 
AnswerRe: Global variable across multiple files and multiple code snippets Pin
Mohammad Dayyan2-Mar-09 20:32
Mohammad Dayyan2-Mar-09 20:32 
AnswerRe: Global variable across multiple files and multiple code snippets Pin
jceresini6-Mar-09 12:27
jceresini6-Mar-09 12:27 
Questionhowto insert ip address into mysql database Pin
Parinay Bansal1-Mar-09 18:47
Parinay Bansal1-Mar-09 18:47 
AnswerRe: howto insert ip address into mysql database Pin
jceresini6-Mar-09 13:02
jceresini6-Mar-09 13:02 
AnswerRe: howto insert ip address into mysql database Pin
jschell22-Mar-09 9:23
jschell22-Mar-09 9:23 
Parinay Bansal wrote:
$sth = $dbh->prepare("insert into loginout values ($ref->{'CARD_ID'}, '$name' , now(), NULL");


It is missing a closing paren. Could be something else wrong too.

As a note in my experience it has been considered a best practice to explicitly name fields. The advantage to that is that it allows the database itself to be changed without impacting code.

So rather than

insert into mytable values(x,y)

use

insert into mytable(col1, col2) values(x,y)
Questiongetting error "Use of uninitialized value in concatenation (.) or string" what this? Pin
Parinay Bansal1-Mar-09 3:35
Parinay Bansal1-Mar-09 3:35 
AnswerRe: getting error "Use of uninitialized value in concatenation (.) or string" what this? Pin
jschell22-Mar-09 9:28
jschell22-Mar-09 9:28 
AnswerRe: getting error "Use of uninitialized value in concatenation (.) or string" what this? Pin
dpminusa15-May-09 22:46
dpminusa15-May-09 22:46 
QuestionShrishti Informatics Pin
petermechele27-Feb-09 6:21
petermechele27-Feb-09 6:21 
AnswerGo away advertiser! Pin
EliottA27-Feb-09 7:56
EliottA27-Feb-09 7:56 
AnswerRe: This sh*tty company Pin
Pete O'Hanlon27-Feb-09 8:45
mvePete O'Hanlon27-Feb-09 8:45 
QuestionI need code apriori algorithm in PHP Pin
chin418626-Feb-09 2:16
chin418626-Feb-09 2:16 
AnswerRe: I need code apriori algorithm in PHP Pin
EliottA26-Feb-09 2:24
EliottA26-Feb-09 2:24 
AnswerRe: I need code apriori algorithm in PHP PinPopular
Luc Pattyn26-Feb-09 3:04
sitebuilderLuc Pattyn26-Feb-09 3:04 
AnswerRe: I need code apriori algorithm in PHP Pin
jceresini6-Mar-09 12:34
jceresini6-Mar-09 12:34 
AnswerRe: I need code apriori algorithm in PHP Pin
bulg17-Mar-09 12:45
bulg17-Mar-09 12:45 
QuestionCall by Reference Pin
MorrisLin24-Feb-09 23:24
MorrisLin24-Feb-09 23:24 
AnswerRe: Call by Reference Pin
Curtis Schlak.27-Feb-09 11:51
Curtis Schlak.27-Feb-09 11:51 
GeneralRe: Call by Reference Pin
MorrisLin9-Mar-09 23:24
MorrisLin9-Mar-09 23:24 
Questionwebsite page shown broken however it is not actually Pin
random423-Feb-09 22:35
random423-Feb-09 22:35 
AnswerRe: website page shown broken however it is not actually Pin
EliottA24-Feb-09 2:11
EliottA24-Feb-09 2:11 
GeneralRe: website page shown broken however it is not actually Pin
random411-Mar-09 19:41
random411-Mar-09 19:41 

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.