| Need help; Display rows from my database | |
|---|---|
| Tweet Topic Started: Mar 30 2009, 04:29 AM (301 Views) | |
| kryssy23 | Mar 30 2009, 04:29 AM Post #1 |
|
Hey everyone, I am trying to make a very basic tipping site for my familyto use. I have the first round in the database but i can seem to get the results printed on the page. I have tried to read the mysql_fetch_assoc section on php.net but i dont really understand what they are trying to say. if anyone could help that would be great
Thanksin advanced
|
![]() |
|
| Darksorrow131 | Mar 30 2009, 04:48 PM Post #2 |
|
$row = mysql_fetch_assoc($results); gives you a row of the data, where you can extract each column by its name - in your case, $row['homeTeam'] would give the value of the homeTeam column. $row = mysql_fetch_row($results); gives you a row of the data as well, but you don't get to use the column names; instead you will need to do $row[0] and $row[1] which would give the 1st and 2nd columns. $row = mysql_fetch_array($results); allows you to use both $row['homeTeam'] and $row[0] for the same result. |
|
(let loop () (loop)) ((lambda (x) (x x)) (lambda (x) (x x))) (let ((k #f)) (call/cc (lambda (cc) (set! k cc)) (k)) ((call/cc call/cc) (call/cc call/cc)) -- Infinite loops are awesome! -- Tell me if you have other awesome infinite loops! | |
![]() |
|
| Knight13 | Mar 31 2009, 01:30 AM Post #3 |
|
0
Edited by Knight13, Mar 20 2010, 07:40 PM.
|
![]() |
|
| kryssy23 | Mar 31 2009, 01:33 AM Post #4 |
|
yer i think they should or at least have a few examples with explanations or something...maybe even a video could help |
![]() |
|
| PauloMillerz | Apr 5 2009, 02:21 PM Post #5 |
![]()
|
yea if i need a tutorial or a description of something in PHP, that webby is the first one i IGNORE!! lol |
If you like... RATE IT!! Add to my reputation to the left?
| |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Web-Based Programming Support · Next Topic » |







10:18 AM Jul 11