| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Oct 2005
Posts: 6
![]() | |
| |
| | #3 (permalink) |
| Senior Member Join Date: Aug 2003 Location: Canada
Posts: 1,257
![]() ![]() ![]() ![]() | You should note that doing it the way you're doing now will result in a large amount of queries. I highly suggest you use an object oriented function to save yourself some server load. Loops $i++ are the key.
__________________ Near Fantastica | Matthew Good - Vancouver TS Design Group - Vancouver, BC based Graphic Design >> Do you Frawlik? << |
| |
| | THREAD STARTER #4 (permalink) |
| New Member Join Date: Oct 2005
Posts: 6
![]() | foreign_key is an integer yes. And I am aware of that this is not an perfect solution, but the first query will only retur a couple of rows, so in this specific case there's no great efficiency-saver in solving this otherwise.. ????: NamePros.com http://www.namepros.com/showthread.php?t=135476 But I solved it, I just made a new variable before the query2 Code: $num = $row['foreign_key'] $query2 = .... WHERE `thing` = $num |
| |