-----Ursprüngliche Nachricht----- Von: Andreas Dau [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 4. März 2002 10:37 An: 'DL Neil' Betreff: AW: syntax Q > -----Ursprüngliche Nachricht----- > Von: DL Neil [mailto:[EMAIL PROTECTED]] > Gesendet: Montag, 4. März 2002 10:09 > An: Andreas Dau; [EMAIL PROTECTED] > Betreff: Re: syntax Q > > Hello Andreas, > > > I just encountered the following: let $a be a numeric php expression, > a > > the corresponding integer field in a table. When I say: "UPDATE table > > SET a=$a" it denies the update. When I say: "Update table SET a='$a'" > it > > performs the update. Uhm, now I am wondering. Isn't 'something' > supposed > > to be a string? > > > Agreed. > What does the SQL CREATE statement look like? Created with phpmyadmin, column type integer(10). Value to be inserted comes from a method=post script at no point treated other as a numeric... > What does PHP's assignment of value to $a (and relevant statements > leading up to it) look like? > Are you sure (the PC thinks) they are both integers? > > Please advise, > =dn --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php