Tags » PHP/MySQL

Insert variable into Header Location PHP

Siapa tau ada yang butuh, cara menambahkan 
variabel ke fungsi header('location: ').
Seperti ini modelnya:
header('Location: http://tujuan-link.com?
var1='.$var1.'&var2='.$var2.'&var3'.$var3);

Contoh:
header('location:siswa.php?menu=tuntunanrinc&user_id='.$id_user.
'&praktikumid='.$_GET);

Semoga bermanfaat.
PhpMySQL

MSQL TUTORIAL

1. ΑΠΛΟ JOIN (ΓΡΑΦΕΤΑΙ ΚΑΙ ΧΩΡΙΣ ΤΟ KEYWORD JOIN)

SELECT posts.title, categorys.title FROM posts,categorys WHERE posts.category_id = categorys.id

SELECT `posts`.`title`, `categorys`.`title` FROM `posts` JOIN `categorys` ON `posts`.`category_id`=`categorys`.`id` 102 more words

PHP/MYSQL