Seksīgais Signis ([info]mans_psihiatrs) rakstīja [info]koderi kopienā,
@ 2011-06-01 15:47:00

Previous Entry  Add to memories!  Tell a Friend!  Next Entry
PHP
tā,bērni,kkas man te neštimmē.
ideja ir sekojoša,ka skripts stradā uz localhosta,bet,kad uzmet uz servera,ne sūda nestradā,mavka.
Skripta funkcija ir rādit random postus kā parladē lapu.
Japiezime,ka lietots tiek wordpress dzinejs,bet attiecīgais plugins ir nahrenizēts,lai nemaisa gaisu.
Kapēc tā un vai tas ir normāli manā vecumā?un ko man tagad darīt?

$rand_post = new WP_Query();
$rand_post->query('posts_per_page=1&orderby=rand');
//print_r($rand_post);
if ($rand_post->have_posts()) {
$count = 0;
while ( $rand_post->have_posts() ) {
$rand_post->the_post();


(Lasīt komentārus)

Nopūsties:

No:
Lietotājvārds:
Parole:
Ievadi te 'qws' (liidzeklis pret spambotiem):
Temats:
Tematā HTML ir aizliegts
  
Ziņa:

Gandrīz jau aizmirsu pateikt – šis lietotājs ir ieslēdzis IP adrešu noglabāšanu. Operatore Nr. 65.
Neesi iežurnalējies. Iežurnalēties?