![]() |
|
[C#] Get multiple picture from database - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] Get multiple picture from database (/showthread.php?tid=5931163) |
Get multiple picture from database - adenfr - Jan 18, 2019 hello guys i'm want to ask if there is a possibility to get top 10 product image (high saling) from database (C# SQLServer) it try with that with another exemple without image here is my table ![]() but i want to get the top 10 and link theme with picturebox or Shelf/Grid View or Shelf Item in dashboard as example any help?? RE: Get multiple picture from database - +Haze - Jan 18, 2019 What on earth are you talking about? RE: Get multiple picture from database - adenfr - Jan 19, 2019 (Jan 18, 2019 07:04 PM)+Haze Wrote: What on earth are you talking about? What ??? RE: Get multiple picture from database - StarZ - Jan 19, 2019 Hold on, I speak retard, Allow me to translate. (Jan 18, 2019 03:23 PM)adenfr Wrote: Sup niggaz, Add a Column for 'amountSold', int. Query: Code SELECT * FROM `TableName` ORDER BY `amountSold` DESC;Then add the images (StoreProImage) to your control along with whatever other data you wish. RE: Get multiple picture from database - adenfr - Jan 19, 2019 (Jan 19, 2019 02:08 AM)StarZ Wrote: Hold on, I speak retard, Allow me to translate. is not a solution bro amountSold =SUM(Qte) and i already did it and in your query you not selecting any image !!! can you provide more exemple RE: Get multiple picture from database - StarZ - Jan 19, 2019 (Jan 19, 2019 02:23 AM)adenfr Wrote: is not a solution bro I'm selecting EVERYTHING (all values) from the table sorting by the value of amountSold. Just grab the image and put it in the control. Also may want to add a limit of 10 to the statement. SQL Isn't the hardest thing to learn. Study up more I feel most people on this forum haven't used it in conjunction with a Desktop Application. RE: Get multiple picture from database - adenfr - Jan 19, 2019 (Jan 19, 2019 02:32 AM)StarZ Wrote: I'm selecting EVERYTHING (all values) from the table sorting by the value of amountSold. Just grab the image and put it in the control. Also may want to add a limit of 10 to the statement. SQL Isn't the hardest thing to learn. Study up more I feel most people on this forum haven't used it in conjunction with a Desktop Application. thanks bro i will try that RE: Get multiple picture from database - itcorp - Jan 19, 2019 (Jan 19, 2019 02:51 AM)adenfr Wrote: thanks bro i will try that https://pastebin.com/raw/7wkHqwM1 RE: Get multiple picture from database - adenfr - Jan 20, 2019 (Jan 19, 2019 04:28 AM)itcorp Wrote: https://pastebin.com/raw/7wkHqwM1 thank you very match RE: Get multiple picture from database - itcorp - Jan 28, 2019 (Jan 20, 2019 08:05 AM)adenfr Wrote: thank you very match you're welcome,and have you managed to solve the your problem |