Jump to content
php.lv forumi

formateshana


hEiti

Recommended Posts

echo "<table border='0'>
<tr>
<th></th>
<th>  _group </th>
<th>  _group </th>
</tr>";

ka lai panaku kad starp tagiem <th></th> varu ielikt tekstu kas cita faila definets zem _text ???? izmeginajos ar visam kjepam ko vareju atrast neizdevas ;( varbut kads vell var piemest lasam vielu shim.. ta lai vairs nav jus jamoca :) vai ari kady keyname ko iesist google...

Link to comment
Share on other sites

Lai nesaktu jaunu diskusiju pie reizes ludzu kads pasakiet

<select name="select" method="post">

<option value="grapple">GR Series</option>

<option value="harvester">GRS Series</option>

<option value="grapple piston">Hr Series</option>

<option value="industrial">GPR Series</option>

<option value="compact piston">GIR Series</option>

<option value="brm">CPR Series</option>

<option value="br">BRM Series</option>

<option value="hydraulic braking system">BRH Series</option>

<option value="hooks">HA Series</option>

</select>

 

ka panakt kad db tiek ieraxtits tas kas ir raxtits uz value ?

Link to comment
Share on other sites

Pirmo jautājumu nesapratu, otrais - pareizi jāuzraksta htmls:

<form method="post" action="lapa.php">
<select name="select">
<option value="grapple">GR Series</option>
<option value="harvester">GRS Series</option>
<option value="grapple piston">Hr Series</option>
<option value="industrial">GPR Series</option>
<option value="compact piston">GIR Series</option>
<option value="brm">CPR Series</option>
<option value="br">BRM Series</option>
<option value="hydraulic braking system">BRH Series</option>
<option value="hooks">HA Series</option>
</select><input type="submit"></form>

un tad iekš lapa.php

$selects=$_POST['select'];
//te seko vaicājuma, kas ievietos DB izveide

Link to comment
Share on other sites

liels paldies un tad nakoshais jautajums :D

no db query nak ara visi ieraxti no tabulas ... a ka lai uzliek katram ieraxtam kaut ko kas varetu izskatities shadi bet nedarbojas :D

  echo "<td><a href="tests/'$row['modelis']'.pdf">" . $row['modelis'] . "</a></td>";

ideja tada kad folderi stav faili.pdf kas saucas ta pat ka ieraxts $row['modelis'] un man vajag lai tam ko printe tabulas rinda no $row['modelis'] automatiski virsu iet links uz tests/$row['modelis'] .pdf lai uz ta uzspiezot direktotu uz pdf failu ar pilnu aprakstu :) jau iepriex visiem paligotajiem :)

Link to comment
Share on other sites

×
×
  • Create New...