Jump to content
php.lv forumi

hailaits


Kips

Recommended Posts

Sorry, ka iespeejams atkaartojos, bet jautaajums taads:

itkaa man vaards iekraasojas, ja meklee ar mazo burtu, bet ja vaards saakas ar lielo burtu tas neiekraasojas ;( Varbuut ir kaads risinaajums?

Link to comment
Share on other sites

Izklaasts: search.php izvada rakstus, kuros atrasts mekleetais vaards. Tad Links uz rakstu: read.php?id=4545&search=mekleejamaisvards. Lapaa read.php ieziimeejam vajadziigo txt ar shaadaam rindinaam:

@$test = $_REQUEST['search'];
$saturs = str_replace("$test" , "<font color=ff000>$test</font>", $saturs);

Tas takaa arii buutu siikaaik ;/

Link to comment
Share on other sites

nu tad meklee arii peec pirmaa lielaa burta

$pirmais_b=$substr($test,0,1);

$pirmais_b=strtoupper($pirmais_b);

$paareejais=$substr($test,1,strlen($test)-1);

$test=$pirmais_b.$paareejais;

kaut vai taa... droshi vien ka ir arii racionaalaaki varianti kaa to izdariit, bet tos domaa pac...

Link to comment
Share on other sites

×
×
  • Create New...