| ★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum4/HTML/000508.html | Nouvelle recherche | Portail wanayoo |
|
|
DevShed Discussion Forums
![]() MySQL
![]() how can i pass veriable in mysql_query
|
| next newest topic | next oldest topic |
| Author | Topic: how can i pass veriable in mysql_query |
|
abbas Member |
i want to pass a verible in mysql_query i tested following code but compile error came for that String query,acctnbr,amount; accntnbr = [(whatever the variable is)]; query = "insert into tablename (acctnbr,amount) values (%s,%s)",acctnbr,amount);
|
|
esconsult Member |
Do like so... $var1 = "4352"; $query = "insert into table (acctnbr,amount) values ('$var1', '$var2')"; ------------------ |
All times are MST (US) | next newest topic | next oldest topic |
![]() |
|
Copyright © 1997-2000 ngenuity. All rights reserved.
Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.