siedze wlasnie w ksiazkach i czytam na temat laczenia tabel jednak to gorsze ( bo jeszce tego nie rozumiem ale juz niedlugo biggrin.gif ) niz sie mi wydawalo

Ok sytuacja wyglada tak
[tabela1] [tabela2] [tabela3] [tabela4]

kazda ma pola
ID, salary, location, position, duration, sdesc, requirements, company,

mam kod wyszukiwania
  1. <? 
  2. if ($search) // perform search only if a string was entered. 
  3. { 
  4. mysql_connect("localhost","root","") or die ("Problem connecting to Database"); 
  5.  
  6. $query = "SELECT * FROM tabela1 WHERE location ='$search'"; 
  7.  
  8. $result = mysql_db_query("prolinc", $query); 
  9.  
  10. if ($result) 
  11. { 
  12. echo "Here are the results:<br><br>"; 
  13. echo "<table width=90% align=center border=0><tr> 
  14. <td align=center bgcolor=#00FFFF>Position</td> 
  15. <td align=center bgcolor=#00FFFF>Location</td> 
  16. <td align=center bgcolor=#00FFFF>Salary</td> 
  17. <td align=center bgcolor=#00FFFF>Duration</td> 
  18. </tr>"; 
  19.  
  20. while ($r = mysql_fetch_array($result)) { // Begin while 
  21. $salary = $r["salary"]; 
  22. $location = $r["location"]; 
  23. $position = $r["position"]; 
  24. $duration = $r["duration"]; 
  25. $sdesc = $r["sdesc"]; 
  26. $requirements = $r["requirements"]; 
  27. $company = $r["company"]; 
  28. echo "
  29. <tr> <td colspan=4 bgcolor="#333333"></td></tr>
  30. <tr> 
  31. <td>$position</td> 
  32. <td>$location</td> 
  33. <td>$salary</td> 
  34. <td>$duration</td></tr> 
  35. <tr> <td colspan=4 bgcolor="#ffffa0">$sdesc</td></tr>
  36. <tr> <td colspan=4 bgcolor="#333333"></td></tr>"; 
  37. } // end while 
  38. echo "</table>"; 
  39. } else { echo "problems...."; } 
  40. } else { 
  41. echo "Search string is empty. <br> Go back and type a string to search"; 
  42. ?>


jednak jest do niego pare ale i jedno duze ale JAK ?

1. w tym ustawieniu jedynie tabela1 jest przeszukiwana na dodatek pod kontem location
2. w wynikach wyszukania jest pare informacji jednak teraz zeby dorzucic link ktory bedzie prawidlowo przenosil uzytkownika do wiecej informacji potrzebuje jakos oznakowac wyniki wyszukiwania

Jak macie jakies sugestie napiszcie a ja dalej wracam do ksiazek z SQL pozdrawiam