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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.