New Posts  All Forums:Forum Nav:

PHP & MySQL issue - Page 2

post #11 of 24
Thread Starter 
Still nada frown.gif
Speedy
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 EX58-UD4P NVIDIA GeForce GTX 285 Corsair  
Hard DriveCoolingOSMonitor
Seagate Barracuda CM Hyper 212+ Ubuntu 12.04 w/KDE 25.6" Hanns-G 
KeyboardPowerCaseMouse
Saitek Eclipse II Corsair 750 Watt Antec 902 Logitech Wireless Trackball 
  hide details  
Reply
Speedy
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 EX58-UD4P NVIDIA GeForce GTX 285 Corsair  
Hard DriveCoolingOSMonitor
Seagate Barracuda CM Hyper 212+ Ubuntu 12.04 w/KDE 25.6" Hanns-G 
KeyboardPowerCaseMouse
Saitek Eclipse II Corsair 750 Watt Antec 902 Logitech Wireless Trackball 
  hide details  
Reply
post #12 of 24
Quote:
Originally Posted by Iggy0828 View Post

Still nada frown.gif

That wasn't to fix the problem tongue.gif
Hang 10 on the problem...

Hang on!

You can't have more than one submit button inside the form. To edit a single item, the easiest method is to wrap each item in their own form with their own submit button.
Edited by tompsonn - 9/28/12 at 3:21am
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
post #13 of 24
Thread Starter 
Ok, I moved the form lines to the beginning of the while loop

still the same problem :/
Edited by Iggy0828 - 9/28/12 at 3:34am
Speedy
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 EX58-UD4P NVIDIA GeForce GTX 285 Corsair  
Hard DriveCoolingOSMonitor
Seagate Barracuda CM Hyper 212+ Ubuntu 12.04 w/KDE 25.6" Hanns-G 
KeyboardPowerCaseMouse
Saitek Eclipse II Corsair 750 Watt Antec 902 Logitech Wireless Trackball 
  hide details  
Reply
Speedy
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 EX58-UD4P NVIDIA GeForce GTX 285 Corsair  
Hard DriveCoolingOSMonitor
Seagate Barracuda CM Hyper 212+ Ubuntu 12.04 w/KDE 25.6" Hanns-G 
KeyboardPowerCaseMouse
Saitek Eclipse II Corsair 750 Watt Antec 902 Logitech Wireless Trackball 
  hide details  
Reply
post #14 of 24
Can we see display.php again, now?
Also, you may wish to use spoiler tags around your code tags smile.gif
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
post #15 of 24
Thread Starter 
I don't know what you mean by spoiler tags. (Now I do!)
Warning: Spoiler! (Click to show)
Code:
<?php
$con = mysql_connect("localhost", "username", "password");
if (!$con) {
        die('Could not connect: ' . mysql_error());
}
mysql_select_db("database_name",$con);
$result = mysql_query("SELECT * FROM Items");
echo '<table border="2" width="5000" cellspacing="0" cellpadding="3">';
echo "<tr>";
echo '<th width="8">DBID</th>';
echo '<th width="12">SoD Item ID</th>';
echo '<th width="4">Tier</th>';
echo '<th width="255">ItemName</th>';
echo '<th width="4">AC</th>';
echo '<th width="4">STR</th>';
echo '<th width="4">STA</th>';
echo '<th width="4">DEX</th>';
echo '<th width="4">AGI</th>';
echo '<th width="4">CHA</th>';
echo '<th width="4">WIS</th>';
echo '<th width="4">INT</th>';
echo '<th width="4">HP</th>';
echo '<th width="4">Mana</th>';
echo '<th width="4">MR</th>';
echo '<th width="4">FR</th>';
echo '<th width="4">CR</th>';
echo '<th width="4">PR</th>';
echo '<th width="4">DR</th>';
echo '<th width="6">FT</th>';
echo '<th width="6">CrtStr</th>';
echo '<th width="6">MdShld</th>';
echo '<th width="6">StnRes</th>';
echo '<th width="6">DmgRed</th>';
echo '<th width="6">Aggr</th>';
echo '<th width="6">SplWrd</th>';
echo '<th width="12">Instrument</th>';
echo '<th width="6">InsMod</th>';
echo '<th width="12">BaneType</th>';
echo '<th width="6">BneDmg</th>';
echo '<th width="12">SkillMod</th>';
echo '<th width="6">ModAmt</th>';
echo '<th width="255">FocusEffect</th>';
echo '<th width="255">SpellEffect</th>';
echo '<th width="6">WpnDmg</th>';
echo '<th width="6">WpnDly</th>';
echo '<th width="6">WpnTyp</th>';
echo '<th width="6">Ear</th>';
echo '<th width="6">Neck</th>';
echo '<th width="6">Head</th>';
echo '<th width="6">Face</th>';
echo '<th width="6">Chest</th>';
echo '<th width="6">Back</th>';
echo '<th width="6">Arms</th>';
echo '<th width="6">Shldrs</th>';
echo '<th width="6">Wrist</th>';
echo '<th width="6">Waist</th>';
echo '<th width="6">Hands</th>';
echo '<th width="6">Fingers</th>';
echo '<th width="6">Legs</th>';
echo '<th width="6">Feet</th>';
echo '<th width="6">Primry</th>';
echo '<th width="6">Secdry</th>';
echo '<th width="6">Range</th>';
echo '<th width="6">Ammo</th>';
echo '<th width="6">Charm</th>';
echo '<th width="6">T2 Aug</th>';
echo '<th width="6">T3 Aug</th>';
echo '<th width="6">T5 Aug</th>';
echo '<th width="255">Mob</th>';
echo '<th width="4">BRD</th>';
echo '<th width="4">BST</th>';
echo '<th width="4">CLR</th>';
echo '<th width="4">DRU</th>';
echo '<th width="4">ENC</th>';
echo '<th width="4">MAG</th>';
echo '<th width="4">MNK</th>';
echo '<th width="4">NEC</th>';
echo '<th width="4">PAL</th>';
echo '<th width="4">RNG</th>';
echo '<th width="4">ROG</th>';
echo '<th width="4">SHD</th>';
echo '<th width="4">SHM</th>';
echo '<th width="4">WAR</th>';
echo '<th width="4">WIZ</th>';
echo '<th width="255">Notes</th>';
echo "</tr>";

while($row = mysql_fetch_array($result))
{
        echo '<form action="edit_form.php" method="post">';
        echo "<tr>";
        echo "<td><input type=\"text\" id=\"id\" value={$row['id']}></td>";
        echo "<td>" . $row['soditemid'] . "</td>";
        echo "<td>" . $row['Tier'] . "</td>";
        echo "<td width=\"80\">" . $row['ItemName'] . "</td>";
        echo "<td>" . $row['AC'] . "</td>";
        echo "<td>" . $row['STR'] . "</td>";
        echo "<td>" . $row['STA'] . "</td>";
        echo "<td>" . $row['DEX'] . "</td>";
        echo "<td>" . $row['AGI'] . "</td>";
        echo "<td>" . $row['CHA'] . "</td>";
        echo "<td>" . $row['WIS'] . "</td>";
        echo "<td>" . $row['INT'] . "</td>";
        echo "<td>" . $row['HP'] . "</td>";
        echo "<td>" . $row['Mana'] . "</td>";
        echo "<td>" . $row['MR'] . "</td>";
        echo "<td>" . $row['FR'] . "</td>";
        echo "<td>" . $row['CR'] . "</td>";
        echo "<td>" . $row['PR'] . "</td>";
        echo "<td>" . $row['DR'] . "</td>";
        echo "<td>" . $row['FT'] . "</td>";
        echo "<td>" . $row['CS'] . "</td>";
        echo "<td>" . $row['MS'] . "</td>";
        echo "<td>" . $row['SR'] . "</td>";
        echo "<td>" . $row['DmgR'] . "</td>";
        echo "<td>" . $row['Aggr'] . "</td>";
        echo "<td>" . $row['SpellWard'] . "</td>";
        echo "<td>" . $row['Instrument'] . "</td>";
        echo "<td>" . $row['InstrumentMod'] . "</td>";
        echo "<td>" . $row['BaneType'] . "</td>";
        echo "<td>" . $row['BaneDmg'] . "</td>";
        echo "<td>" . $row['SkillMod'] . "</td>";
        echo "<td>" . $row['SkillModAmt'] . "</td>";
        echo "<td>" . $row['FocusEffect'] . "</td>";
        echo "<td>" . $row['SpellEffect'] . "</td>";
        echo "<td>" . $row['WeaponDmg'] . "</td>";
        echo "<td>" . $row['WeaponDly'] . "</td>";
        echo "<td>" . $row['WeaponType'] . "</td>";
        if($row['earslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['neckslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['headslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['faceslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['chestslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['backslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['armslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['shoulderslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['wristslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['waistslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['handslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['fingerslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['legslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['feetslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['prislot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['secslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['rangeslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['ammoslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['charmslot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['aug2slot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['aug3slot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['aug5slot'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        echo "<td>" . $row['mob'] . "</td>";
        if($row['brdclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['bstclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['clrclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['druclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['encclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['magclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['mnkclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['necclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['palclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['rngclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['rogclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['shdclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['shmclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['warclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        if($row['wizclass'] == "on") {
                echo "<td>" . "Y" . "</td>";
        }
        else {
                echo "<td>" . "N" . "</td>";
        }
        echo "<td>" . $row['notes'] . "</td>";
        echo "<td><input name=\"update\" type=\"submit\" value=\"Edit\" /></td></tr>";
        echo "</form>";
}
echo "</table>";
mysql_close($con);
?>

Edited by Iggy0828 - 9/28/12 at 3:49am
Speedy
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 EX58-UD4P NVIDIA GeForce GTX 285 Corsair  
Hard DriveCoolingOSMonitor
Seagate Barracuda CM Hyper 212+ Ubuntu 12.04 w/KDE 25.6" Hanns-G 
KeyboardPowerCaseMouse
Saitek Eclipse II Corsair 750 Watt Antec 902 Logitech Wireless Trackball 
  hide details  
Reply
Speedy
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 EX58-UD4P NVIDIA GeForce GTX 285 Corsair  
Hard DriveCoolingOSMonitor
Seagate Barracuda CM Hyper 212+ Ubuntu 12.04 w/KDE 25.6" Hanns-G 
KeyboardPowerCaseMouse
Saitek Eclipse II Corsair 750 Watt Antec 902 Logitech Wireless Trackball 
  hide details  
Reply
post #16 of 24
Is there a value in the ID text field for each row?
Time for a var_dump( $_POST ); in edit_form.php again.

And by spoiler tags I mean .... the same as a code tag, except replace code with "spoiler" tongue.gif
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
post #17 of 24
Thread Starter 
Yes there is an ID in each row when it runs display.php

Yeah I know what they are tongue.gif I wasn't sure why you wanted me to use them. (I figured it out)
Code:
array(1) { ["update"]=> string(4) "Edit" }
Speedy
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 EX58-UD4P NVIDIA GeForce GTX 285 Corsair  
Hard DriveCoolingOSMonitor
Seagate Barracuda CM Hyper 212+ Ubuntu 12.04 w/KDE 25.6" Hanns-G 
KeyboardPowerCaseMouse
Saitek Eclipse II Corsair 750 Watt Antec 902 Logitech Wireless Trackball 
  hide details  
Reply
Speedy
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 EX58-UD4P NVIDIA GeForce GTX 285 Corsair  
Hard DriveCoolingOSMonitor
Seagate Barracuda CM Hyper 212+ Ubuntu 12.04 w/KDE 25.6" Hanns-G 
KeyboardPowerCaseMouse
Saitek Eclipse II Corsair 750 Watt Antec 902 Logitech Wireless Trackball 
  hide details  
Reply
post #18 of 24
Quote:
Originally Posted by Iggy0828 View Post

Yes there is an ID in each row when it runs display.php
Yeah I know what they are tongue.gif I wasn't sure why you wanted me to use them. (I figured it out)
Code:
array(1) { ["update"]=> string(4) "Edit" }

ID is still not there! What the heck...
Can you add another form field, doesn't matter what it is called or what is in it, and then re-run the above.
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
post #19 of 24
Thread Starter 
I added:
Code:
$testvar = "Hello";
echo "<td><input type=\"text\" name=\"test\" value=\"{$testvar}\" /></td>";



array(2) { ["test"]=> string(5) "Hello" ["update"]=> string(4) "Edit" }
Speedy
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 EX58-UD4P NVIDIA GeForce GTX 285 Corsair  
Hard DriveCoolingOSMonitor
Seagate Barracuda CM Hyper 212+ Ubuntu 12.04 w/KDE 25.6" Hanns-G 
KeyboardPowerCaseMouse
Saitek Eclipse II Corsair 750 Watt Antec 902 Logitech Wireless Trackball 
  hide details  
Reply
Speedy
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 920 EX58-UD4P NVIDIA GeForce GTX 285 Corsair  
Hard DriveCoolingOSMonitor
Seagate Barracuda CM Hyper 212+ Ubuntu 12.04 w/KDE 25.6" Hanns-G 
KeyboardPowerCaseMouse
Saitek Eclipse II Corsair 750 Watt Antec 902 Logitech Wireless Trackball 
  hide details  
Reply
post #20 of 24
Let's change this:
Code:
echo "<td><input type=\"text\" id=\"id\" value={$row['id']}></td>";

To this:
Code:
echo "<td><input type=\"text\" id=\"id\" value=\"{$row['id']}\"></td>";

Although that should make squat of a difference.
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
My System
(30 items)
 
"Zeus"
(13 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i5 2500K (4.5ghz @ 1.320v) Gigabyte Z68X-UD3R-B3 MSI R7970 Lightning Corsair 16GB (4x4GB) 
Hard DriveHard DriveHard DriveHard Drive
Plextor PX-256M5S 256GB Crucial M4 128GB Hitachi HDS721010CLA332 Hitachi HDS723020BLA642 
Hard DriveHard DriveHard DriveOptical Drive
Hitachi HDS723020BLA642 Hitachi HUA722010CLA330 WDC WD10EARS-00Z5B1 TSSTcorp CDDVDW SH-S223B 
CoolingCoolingOSMonitor
Phanteks PH-TC14PE with TY-140's Lamptron FCv5 (x2) Windows 7 Ultimate 64-bit Dell U2412M 
MonitorMonitorMonitorKeyboard
Dell U2412M Dell U2212HM Dell U2212HM Ducky DK9087 G2 Pro 
PowerCaseMouseMouse Pad
Corsair AX-750 Corsair Obsidian 650D Microsoft IntelliMouse Optical  XTRAC Ripper XXL 
AudioAudioAudioAudio
Westone W3 IEMs RE-272 IEMs Shure SE-215 IEMs Schiit Bifrost DAC 
AudioAudio
Schiit Asgard 2 amp HiVi Swan M50W 2.1 
CPUMotherboardGraphicsRAM
Intel Core i7 950 GA-X58-UD3R Radeon HD 5450  24GB Corsair @ 1333mhz 
Hard DriveOSPowerCase
4x WD Cavair Red 1TB in RAID 0 Windows Server 2008 R2 x64 Corsair HX-520 LianLi LanCool 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding