You are here: php question. Pls take a look and see if you can help « PHP Programming Language « IT news, forums, messages
php question. Pls take a look and see if you can help

Posted by needaticker on 11/12/46 11:26

Hi All,

I've created a new table (eg/ 'XM_newtable') on my database and in it I
have a single field (eg/ 'newfield')

I have entered 100 values under the 'newfield' and what I need to do is
display these values at random wherever I insert a bit of code.

My problem is that I don't know what bit of code to insert


I guess that it will be a code similar to below. But what would the
direct path to this field be? And how can I make the result be random
from this field?

<?php
print("$newfield");
>

The final thing that I would like is that if the field doesn't have any
entries (so if I take out the 100 values that I've put in) then I would
like to have the code print the message "sorry but no value available!"


All help is always appreciated.


Thanks

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация