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? 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. 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? 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; Link to comment https://forums.phpfreaks.com/topic/179380-wish-list/#findComment-946500 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.