rofl90 Posted March 30, 2007 Share Posted March 30, 2007 I need to pick out of some projects a screenshot of a random project heres my table in MySQL project | screenshot path | description | * * * * * * * * * * * * * * * * * * * * * * * * Thanks in advance Link to comment https://forums.phpfreaks.com/topic/44907-php-sql-queries/ Share on other sites More sharing options...
Full-Demon Posted March 30, 2007 Share Posted March 30, 2007 You can put all rows (only the screenshotpath) into an array. Than use echo rand(0, count($array)); to get the screenshot path, which you can put directly in an img tag. Full-Demon Link to comment https://forums.phpfreaks.com/topic/44907-php-sql-queries/#findComment-218083 Share on other sites More sharing options...
neel_basu Posted March 30, 2007 Share Posted March 30, 2007 Please Confirm Are you trying to do something like this ?? some fields value is given. and you wanna search values of some other fields. if yes please Specify Which Fields are Given and Which fields you wanna search Link to comment https://forums.phpfreaks.com/topic/44907-php-sql-queries/#findComment-218109 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.