Jump to content
php.lv forumi

tabula


Gochix

Recommended Posts

Varbūt arī vēl nevērt.. Uzdevums sekojošs, man uz db stāv row ar nosaukumu char_colorname kurā ir vainu blue vai red vai yellow

 

kā ar function pārvērst viņu iekš php/html skripta.. lai piemēram if $row[`char_colorname`] = yellow , font color yellow.. kkā tā..

Link to comment
Share on other sites

  • Replies 44
  • Created
  • Last Reply

Top Posters In This Topic

for( $i= 0 ; $i <= 0 ; $i++ ){
}
while($row = mysql_fetch_array($result)){   //Creates a loop to loop through results
echo "<tr><td align=center width=30><font color=white>" . $i++ ."</td></font> 

Tu šo kodu kaut kur pieglabā. Pēc pāris gadiem paliks jautri ap sirdi, šo atrodot. ;)

Link to comment
Share on other sites

> 100 ir krietni par maz.

 

Tas protams, bet lai atrisinātu to problēmu, kas viņam bija, tāds laiks būtu pilnīgi pietiekams, lai bez problēmām un ar saprašanu to atrisinātu.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...