scripterdx Posted October 28, 2009 Share Posted October 28, 2009 last copule of days i´ve been working on a script to produce a wish list to be loaded in flash, it works fine, but to a sinlge user, (me) uses my user id to load. it´s possible to make variable the stament for user_id in a sql query? Quote Link to comment https://forums.phpfreaks.com/topic/179380-wish-list/ Share on other sites More sharing options...
mrMarcus Posted October 28, 2009 Share Posted October 28, 2009 yes. Quote Link to comment https://forums.phpfreaks.com/topic/179380-wish-list/#findComment-946483 Share on other sites More sharing options...
scripterdx Posted October 28, 2009 Author Share Posted October 28, 2009 $user=id? Quote Link to comment https://forums.phpfreaks.com/topic/179380-wish-list/#findComment-946486 Share on other sites More sharing options...
Maq Posted October 28, 2009 Share Posted October 28, 2009 $user=id? What is the column in your table called (id, user_id)? You referred to two different ones so far. Anyway, it would be something similar to (assuming you want to specify an id): WHERE id = $user; Quote Link to comment https://forums.phpfreaks.com/topic/179380-wish-list/#findComment-946500 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.