Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 07-15-2004, 05:48 PM
scottsgameroom's Avatar
Super Talker

Posts: 101
Trades: 0
Ne Luck
scottsgameroom is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-15-2004, 06:55 PM
Unknown.

Posts: 1,693
Trades: 0
The coding for the search page would go like this...

You can save this as whatever you want (search.php, browse.php etc.)

PHP Code:
<title>Scotts Game Room Portal - Reviews - Browse</title>
<?php

echo "<a href='?id=a'>A</a> <a href='?id=b'>B</a> <a href='?id=c'>C</a> <a href='?id=d'>D</a> 
<a href='?id=e'>E</a> <a href='?id=f'>F</a> <a href='?id=g'>G</a> <a href='?id=h'>H</a> 
<a href='?id=i'>I</a> <a href='?id=j'>J</a> <a href='?id=k'>K</a> <a href='?id=l'>L</a> 
<a href='?id=m'>M</a> <a href='?id=n'>N</a> <a href='?id=o'>O</a> <a href='?id=p'>P</a> 
<a href='?id=q'>Q</a> <a href='?id=r'>R</a> <a href='?id=s'>S</a> <a href='?id=t'>T</a> 
<a href='?id=u'>U</a> <a href='?id=v'>V</a> <a href='w'>W</a> <a href='?id=x'>X</a> 
<a href='?id=y'>Y</a> <a href='?id=z'>Z</a>"
;

if(!isset(
$_GET['id'])) echo "</br></br><b>Please select a letter above to browse through the reviews!</b>

"
;

else
{
$id $_GET['id'];

include 
'db_connect.php';

$query="SELECT * FROM reviews WHERE title LIKE '$id%'";
$result=mysql_query($query);
$num=mysql_numrows($result);

if(
$num == 0) echo "</br></br><b>No results found!</b>";

else {echo 
"</br></br><b>$num Results found!</b>";

echo 
"<table border>";
$i=0;
while (
$i $num) {

$url=mysql_result($result,$i,"id");
$name=mysql_result($result,$i,"title");

echo 
"    <tr>
        <td><p><a href='review.php?id=
$url'>$name</a></td>
    </tr>"
;

$i++;
}
echo 
"</table>";}
}
?>
This will just create a simple page..But if you want..if you create a layout you want for the page I could put the PHP into it for you..

-James
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 07-21-2004, 11:30 AM
Unknown.

Posts: 1,693
Trades: 0
How you getting on with this?

-James
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 07-26-2004, 06:27 PM
scottsgameroom's Avatar
Super Talker

Posts: 101
Trades: 0
soz mate been away for the last few weeks in and out of it you know! so im gona have a proper go at it tomrow. also when i tried the databse connect page out quickly it returned a could not be displayed page, and i am using freeola as a host so it comes up witht here personal error page which i can not change!
scottsgameroom is offline
Reply With Quote
View Public Profile
 
Old 07-29-2004, 04:54 PM
scottsgameroom's Avatar
Super Talker

Posts: 101
Trades: 0
i have tried again and i get an erro ron line 8 of the db_connect page!
scottsgameroom is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to readdir help

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14710 seconds with 11 queries