Jump to content

nickbunyun

Members
  • Posts

    54
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

nickbunyun's Achievements

Member

Member (2/5)

0

Reputation

  1. how do i go about getting each row as an array everytime i open the page is loaded?
  2. can u explain a lil more the ajax function.. and i do use the get[id] and it shows.. but it shows by # of rows, not by the actual row#.
  3. thats when deleting right ?.. but quick question, this is gonna be a "feedback" a guestbook form. Ppl are gonna put their infos in, and im gonna have to echo them out. its not gonna be a dynamic cms or anything like that.. so wouldnt it be easier just to fix the thing that doesnt echo the right thing? btw, I'd like to thank both of u to actually dedicate time to help me, sry if i dont explain things as well.
  4. yeah but how do i do that to change automatically ? if i have like 80 rows, and i delete row 20, i do not wanna go thru 59 rows of change
  5. ya it does.. echo "<tr><td>$r[date]</td> <td>$r[zipcode]</td> <td> <a href=viewfull.php?full=$r[id] target='_blank'>View</a> || Delete </td> </tr>"; on my View (where it shows only zipcode, id, and "view button) it all works perfectly i have ID ZIP TOOLS 1 45123 View (links to viewfull.php?full=1) 3 45123 View (links to viewfull.php?full=3) 5 45123 View (links to viewfull.php?full=5) 11 45123 View (links to viewfull.php?full=11) 21 45123 View (links to viewfull.php?full=21) But When I go to viewfull.php?full... viewfull.php?full=1 >> echoes from ROW ID 1 viewfull.php?full=2 >> echoes from ROW ID 3 viewfull.php?full=3 >> echoes from ROW ID 4 viewfull.php?full=4 >> echoes from ROW ID 11 viewfull.php?full=5 >> echoes from ROW ID 21 If i only have 5 rows, and the #s are , 1,3,4,11,21 .... it will have be shown as full=1,2,3,4,5 if i go to full=11, 21 (a number higher than the # of rows) it shows empty.
  6. ok.. no heres the thing I have to add/remove rows in the data base. and id is auto increment. This is how it looks now db Row 1 = viewfull.php?full=1 db Row 2 = viewfull.php?full=2 db Row 4 = viewfull.php?full=3 db Row 9 = viewfull.php?full=4 db Row 12 = viewfull.php?full=5 db Row 20 = viewfull.php?full=6 but when its viewing the php, it shows that when i click on "VIEW" (link viewfull.php?full=20), it shows it empty, but when i got to viewfull.php?full=6 than it shows the contents of my 20th db row.
  7. i have about 14 rows in the database.. but some #s are like.. 1 2 3 12 14 15 16 25 etc, because i deleted some of the unneccesary rows.. but the way it reads it now is that like this row 1,2,4,8,10,15,20 reads it as id?=1,2,3,4,5,6,7,8,9 so right now my last db row is 22, but on the viewfull.php?=15.
  8. ok so another little problem... ok so i have the code.. ... mysql_select_db("ehc", $con); //make your query $result = mysql_query("SELECT * FROM feedback"); $count=1; while($row = mysql_fetch_array($result)){ if($count != $row_num){ $count++; continue; } else{ echo "<table border='1'>"; ...
  9. thanks guys +1 rep to all of you.. .. if there was a rep system
  10. lol.. it actually works the way it is right now o.O php if wierd.
  11. yay!! it works! you guys are awesome! if i have any other problem i know where to come!
  12. ok when click on viewfull.php?full=1 to open a pop up and show row 1. when click on viewfull.php?full=6 to open a pop up and show row 6. im following hansford example soince its the only lead i got now.. but im not understanding much, so can u tell me what and where i need to set?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.