Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › PHP Programming Need Help
New Posts  All Forums:Forum Nav:

PHP Programming Need Help

post #1 of 3
Thread Starter 
So this is my first time handling programming based on PHP/SQL. And I'm having problem with this.


Basically, I need a program to return a name from this table based on the figures listed above.


Random numbers x and y (from 1 to 500) are generated and the position in the table based on the X and Y coordinates will be used to determine which reward is obtained.


e.g.1: If x is 230 and y is 150 is , the selected item would be Nvidia



e.g.2: If x is 7 and y is 202 is , the selected item would be Apple





Thank you so much for the help!
Edited by gerikoh - 8/17/11 at 12:26am
   
Ivy's Panther
(15 items)
 
CPUMotherboardGraphicsRAM
AMD Ryzen 7 1700 @ 4ghz 1.35v ASRock AB350 Gaming-ITX/ac ZOTAC GeForce GTX 1080 8GB Mini ZT-P10800H-10P ... Team Dark Pro 2x8GB 3000Mhz 14-14-14-31 
Hard DriveCoolingOSMonitor
Samsung 960Pro 512GB M.2 NVMe Noctua NH-L9a 92mm SSO2 Windows 10 x64 Pro ASUS PG278QR 27" 1440p Gsync 165Hz 
KeyboardPowerCaseMouse
Logitech G710+ MX Brown HDPLEX 300W Hi-Fi DC-ATX + Dell 330W AC NFC S4 Mini Logitech G900 Chaos Spectrum Wireless 
Mouse Pad
Logitech G440 
CPUMotherboardGraphicsRAM
Intel Core i7 4800mq Clevo W230ST Nvidia GTX 765m 8x2GB Samsung ULV 1600 @1.25v 
Hard DriveOS
Sandisk Extreme SSD 480GB Windows Server 2012 R2 
CPUMotherboardGraphicsRAM
i7 3770 w/ vpro @ 2.5ghz 0.9v Asus Maximus V Gene Z77 MSI GeForce GTX 660ti Power Edition 4x4gb Samsung MV-3V4G3D 1600-cl7 @ 1.35v 
Hard DriveCoolingOSMonitor
2x480gb Sandisk Extreme SSD Raid0 Prolimatech Samuel+AC4 w/ Corsair SP120 Windows 7 Ultimate x64 LG D2342P 1080p 3D 
KeyboardPowerCaseMouse
Rosewill RK-9100BR Cherry MX-Brown w/ backlight Andyson Platinum 550w Modular Silverstone SG-02B Logitech MX 950 
Mouse PadAudioOther
CoolerMaster Storm Creative SB SupremeFX III Atheros Killer Wireless-N 1202+BT4.0 
  hide details  
Reply
   
Ivy's Panther
(15 items)
 
CPUMotherboardGraphicsRAM
AMD Ryzen 7 1700 @ 4ghz 1.35v ASRock AB350 Gaming-ITX/ac ZOTAC GeForce GTX 1080 8GB Mini ZT-P10800H-10P ... Team Dark Pro 2x8GB 3000Mhz 14-14-14-31 
Hard DriveCoolingOSMonitor
Samsung 960Pro 512GB M.2 NVMe Noctua NH-L9a 92mm SSO2 Windows 10 x64 Pro ASUS PG278QR 27" 1440p Gsync 165Hz 
KeyboardPowerCaseMouse
Logitech G710+ MX Brown HDPLEX 300W Hi-Fi DC-ATX + Dell 330W AC NFC S4 Mini Logitech G900 Chaos Spectrum Wireless 
Mouse Pad
Logitech G440 
CPUMotherboardGraphicsRAM
Intel Core i7 4800mq Clevo W230ST Nvidia GTX 765m 8x2GB Samsung ULV 1600 @1.25v 
Hard DriveOS
Sandisk Extreme SSD 480GB Windows Server 2012 R2 
CPUMotherboardGraphicsRAM
i7 3770 w/ vpro @ 2.5ghz 0.9v Asus Maximus V Gene Z77 MSI GeForce GTX 660ti Power Edition 4x4gb Samsung MV-3V4G3D 1600-cl7 @ 1.35v 
Hard DriveCoolingOSMonitor
2x480gb Sandisk Extreme SSD Raid0 Prolimatech Samuel+AC4 w/ Corsair SP120 Windows 7 Ultimate x64 LG D2342P 1080p 3D 
KeyboardPowerCaseMouse
Rosewill RK-9100BR Cherry MX-Brown w/ backlight Andyson Platinum 550w Modular Silverstone SG-02B Logitech MX 950 
Mouse PadAudioOther
CoolerMaster Storm Creative SB SupremeFX III Atheros Killer Wireless-N 1202+BT4.0 
  hide details  
Reply
post #2 of 3
That's pretty vague...

You've told us what you need to do, not which part of it you need help with.
post #3 of 3
Thread Starter 
The main code.

Or at least the SQL part, especially the SELECT part.



Oh nvm. I already figured it out.

I'll share the code as soon as I'm done with it.
Edited by gerikoh - 8/17/11 at 5:13am
   
Ivy's Panther
(15 items)
 
CPUMotherboardGraphicsRAM
AMD Ryzen 7 1700 @ 4ghz 1.35v ASRock AB350 Gaming-ITX/ac ZOTAC GeForce GTX 1080 8GB Mini ZT-P10800H-10P ... Team Dark Pro 2x8GB 3000Mhz 14-14-14-31 
Hard DriveCoolingOSMonitor
Samsung 960Pro 512GB M.2 NVMe Noctua NH-L9a 92mm SSO2 Windows 10 x64 Pro ASUS PG278QR 27" 1440p Gsync 165Hz 
KeyboardPowerCaseMouse
Logitech G710+ MX Brown HDPLEX 300W Hi-Fi DC-ATX + Dell 330W AC NFC S4 Mini Logitech G900 Chaos Spectrum Wireless 
Mouse Pad
Logitech G440 
CPUMotherboardGraphicsRAM
Intel Core i7 4800mq Clevo W230ST Nvidia GTX 765m 8x2GB Samsung ULV 1600 @1.25v 
Hard DriveOS
Sandisk Extreme SSD 480GB Windows Server 2012 R2 
CPUMotherboardGraphicsRAM
i7 3770 w/ vpro @ 2.5ghz 0.9v Asus Maximus V Gene Z77 MSI GeForce GTX 660ti Power Edition 4x4gb Samsung MV-3V4G3D 1600-cl7 @ 1.35v 
Hard DriveCoolingOSMonitor
2x480gb Sandisk Extreme SSD Raid0 Prolimatech Samuel+AC4 w/ Corsair SP120 Windows 7 Ultimate x64 LG D2342P 1080p 3D 
KeyboardPowerCaseMouse
Rosewill RK-9100BR Cherry MX-Brown w/ backlight Andyson Platinum 550w Modular Silverstone SG-02B Logitech MX 950 
Mouse PadAudioOther
CoolerMaster Storm Creative SB SupremeFX III Atheros Killer Wireless-N 1202+BT4.0 
  hide details  
Reply
   
Ivy's Panther
(15 items)
 
CPUMotherboardGraphicsRAM
AMD Ryzen 7 1700 @ 4ghz 1.35v ASRock AB350 Gaming-ITX/ac ZOTAC GeForce GTX 1080 8GB Mini ZT-P10800H-10P ... Team Dark Pro 2x8GB 3000Mhz 14-14-14-31 
Hard DriveCoolingOSMonitor
Samsung 960Pro 512GB M.2 NVMe Noctua NH-L9a 92mm SSO2 Windows 10 x64 Pro ASUS PG278QR 27" 1440p Gsync 165Hz 
KeyboardPowerCaseMouse
Logitech G710+ MX Brown HDPLEX 300W Hi-Fi DC-ATX + Dell 330W AC NFC S4 Mini Logitech G900 Chaos Spectrum Wireless 
Mouse Pad
Logitech G440 
CPUMotherboardGraphicsRAM
Intel Core i7 4800mq Clevo W230ST Nvidia GTX 765m 8x2GB Samsung ULV 1600 @1.25v 
Hard DriveOS
Sandisk Extreme SSD 480GB Windows Server 2012 R2 
CPUMotherboardGraphicsRAM
i7 3770 w/ vpro @ 2.5ghz 0.9v Asus Maximus V Gene Z77 MSI GeForce GTX 660ti Power Edition 4x4gb Samsung MV-3V4G3D 1600-cl7 @ 1.35v 
Hard DriveCoolingOSMonitor
2x480gb Sandisk Extreme SSD Raid0 Prolimatech Samuel+AC4 w/ Corsair SP120 Windows 7 Ultimate x64 LG D2342P 1080p 3D 
KeyboardPowerCaseMouse
Rosewill RK-9100BR Cherry MX-Brown w/ backlight Andyson Platinum 550w Modular Silverstone SG-02B Logitech MX 950 
Mouse PadAudioOther
CoolerMaster Storm Creative SB SupremeFX III Atheros Killer Wireless-N 1202+BT4.0 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › PHP Programming Need Help