php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30773 Need help please
Submitted: 2004-11-13 13:01 UTC Modified: 2004-11-13 13:34 UTC
From: elguardian2409 at hotmail dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: Irrelevant OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: elguardian2409 at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-11-13 13:01 UTC] elguardian2409 at hotmail dot com
Description:
------------
Hello, I'm trying to create a simple code for my website. My website is about
real estate agency. And I did a programm called search.php that mades search on
mysql database where I save the property information. Everything is going all
right but I would like in the function display results change something. In
fact, I'd like when the search.php find properties that show them 4 properties
per page. How can I do the code? I know it's simple but I can't...

Starting this is display result code:
function displayResults($retVal, $timer) {
	global $config;
	$size = count($retVal);

	$header = $config["installbase"] . "/" . $config["header"];
	include($header);

	printf("\t<CENTER><H2>%s</H2></CENTER>\n", $config["displayHeader"]);

	if ($config["timed"]) { //Time taken to locate all files.
		printf("\tFound <B>%d</B> properties in %d sec.<P>\n", $size, time() -
$timer);
	} else {
		printf("\tFound <B>%d</B> properties.\n\t<P>\n", $size);
	}

	$i = 0;
	while($i <= $size - 1){
		$locationp = $retVal[$i]["location"];
		$typep = $retVal[$i]["type"];
	        $pricep = $retVal[$i]["pricez"];
               $price = $retVal[$i]["price"];
                $details = $retVal[$i]["details"];
                $ref = $retVal[$i]["ref"];
                $pic = $retVal[$i]["pic"];
                $link1 = $retVal[$i]["link1"];
                $link2 = $retVal[$i]["link2"];

Please I need help, anyone know hot to make that appears 4 properties per page,
and automaticly appears page 1, page 2, page 3, page 4, page 5 depend of the
property numbers.

The href would be something like that:
search.php?location=*&ptype=*&pricez=*&page=n?

Please i hope someone can understand what i mean. I will very pleased if someone
can help me. Thanks



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-13 13:34 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This is not a support forum!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC