Jump to content

php get page error....


plodos

Recommended Posts

Error is

Not Found

The requested URL /add.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

İm trying to learnd $_GET method....Whats the error, I didnt see...Pls help

a.php

if($add_person)
{	header('Location: http://www.xxx.com/add.php?cpage='.$count_commit.'     ');
}

b.php

<?php
include("dbconfig.php");

switch($_GET['cpage']) {
    case "1":
        check(1);
        break;
    case "2":
      check(2);
        break;
    default:
    	echo "error";
}

function check($number){
$search = $number;

$data = mysql_query("select p.*
                     from join_person_committee j, person p
                     where j.person_id = p.person_id AND j.person_id='$search'
                     ORDER BY p.person_id ASC LIMIT $baslangic,$limit"); 

while($info=mysql_fetch_array($data))
{
	echo"			{$info['university']}<br>";
}

}}
?>

Link to comment
https://forums.phpfreaks.com/topic/111382-php-get-page-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.