Search found 44 matches

by viddz
Tue Oct 23, 2012 12:11 am
Forum: Linux
Topic: screen resolution in ubuntu 12.04
Replies: 4
Views: 4946

screen resolution in ubuntu 12.04

I have installed ubuntu 12.04. but screen resolution cannot be changed in new version. any solution for this matter? i have set value manually but it always change when machine restart.
by viddz
Sun Aug 12, 2012 7:48 pm
Forum: PHP & MySQL
Topic: Pagination error
Replies: 21
Views: 22684

Re: Pagination error

I couldnt solve the problem. But i got new php ajax pagintion script it works well :D
by viddz
Sun Jul 01, 2012 8:34 pm
Forum: PHP & MySQL
Topic: Pagination error
Replies: 21
Views: 22684

Re: Pagination error

thanku very much saman this is the form which i select lab  <?php require_once('auth.php');     include("config.php");                 if (isset($_SESSION['SESS_ID']) && is_numeric($_SESSION['SESS_ID']))    {              $emp_id = $_SESSION['SESS_ID'];          } $result2 = mysql_query("Select *   ...
by viddz
Sat Jun 30, 2012 10:57 pm
Forum: PHP & MySQL
Topic: Pagination error
Replies: 21
Views: 22684

Re: Pagination error

Thanks saman but problem is still there :(

How do you normally paginate this type of query. I dont know what to do now. I have googled and see pagination scripts but almost all script are same like my script.
by viddz
Tue Jun 26, 2012 1:01 am
Forum: PHP & MySQL
Topic: Pagination error
Replies: 21
Views: 22684

Re: Pagination error

for this code $paginate.= "<a href='$targetpage?page=$next'>next</a>";  echoed results is this <<<<1st page>>>>> Array ( [lab_id] => 1 [page] => 2 [PHPSESSID] => 86i2ob11e1fg3pib7q8o5cggl2 ) <<<<2nd page>>>>> Array ( [lab_id] => 1?page=2 [PHPSESSID] => 86i2ob11e1fg3pib7q8o5cggl2 ) when i changed it ...
by viddz
Tue Jun 26, 2012 12:52 am
Forum: PHP & MySQL
Topic: Pagination error
Replies: 21
Views: 22684

Re: Pagination error

sry for the delay.. I think isset($_GET['name']) part must be isset($_GET['page']). Is that correct? yeah <?php            if (isset($_POST['lab_id']) && is_numeric($_POST['lab_id']))     {               $lab_id = $_POST['lab_id'];     }    //else{$lab_id=1;}     $targetpage = "view_all_chemicallab....
by viddz
Mon Jun 25, 2012 11:57 pm
Forum: PHP & MySQL
Topic: Pagination error
Replies: 21
Views: 22684

Re: Pagination error

yeah i have tried everything that u have suggested. I have done another change that is changing ? to & here $paginate.= "<a href='$targetpage?page=$next'>next</a>";  new code $paginate.= "<a href='{$targetpage}&page={$next}'>next</a>";  because i feel there is something wrong with links. but couldnt...
by viddz
Mon Jun 25, 2012 11:10 pm
Forum: PHP & MySQL
Topic: Pagination error
Replies: 21
Views: 22684

Re: Pagination error

variables passing correctly in page 1, but the matter is $lab_id isnt pass for the 2,3,4..... pages. what i want to here is correctly pass $lab_id for the other pages. to get an idea about posting or geting values i have included echo '<pre>';print_r($_REQUEST);echo '</pre>';  after echo $paginate; ...
by viddz
Mon Jun 25, 2012 10:39 pm
Forum: PHP & MySQL
Topic: Pagination error
Replies: 21
Views: 22684

Re: Pagination error

$targetpage = "view_all_chemicallab.php?lab_id={$_REQUEST['lab_id']}"; I see curly brackets there which is problematic. I have tried it without curly brackets. Then it gave this error. Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING ...
by viddz
Mon Jun 25, 2012 9:51 pm
Forum: PHP & MySQL
Topic: Pagination error
Replies: 21
Views: 22684

Re: Pagination error

now its showing results which belongs to lab_id=1 correctly, pagination is also correct. no errors :D but still i couldn't make this script work for POST $lab_id value two changes that i have made as u said else {      $lab_id = 1; }    $page = isset($_GET['page']) ? mysql_escape_string($_GET['page'...

Go to advanced search