Jump to content
php.lv forumi

Kavacky

Reģistrētie lietotāji
  • Posts

    2,510
  • Joined

  • Last visited

Community Answers

  1. Kavacky's post in Switch was marked as the answer   
    $page = isset($_GET['page']) ? $_GET['page'] : 'Sakums';  
    switch ($page) {
    case 'Par mums':
    include('about.php');
    break;
     
    ...
     
    case 'Sakums':
    default:
    include('news.php');
    break;
    }
  2. Kavacky's post in shop was marked as the answer   
    if ( $chaos_points > $itema_cena ) { iedod_userim_itemu();
    mysql_query("UPDATE `ibf_members` SET `points` = `points` - $itema_cena WHERE `id` = $member_id");
    echo 'Zajebis!';
    }
  3. Kavacky's post in urļu pārakstīšana was marked as the answer   
    Labāk tā, kā tu pats uzrakstīji - strādā ar explode un apstrādā. Un RewriteRule tad tev arī ir vajadzīgs tikai tas pirmais, jo visu pārējo tu nosaki un izdari jau ar PHP.
×
×
  • Create New...