Webhosting Cafe Forums  

Go Back   Webhosting Cafe Forums > Building your site! > Website Critiques & Reviews
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-23-2005, 01:31 PM
netlovers netlovers is offline
Member
 
Join Date: Apr 2005
Posts: 51
Exclamation how can i creater php id pages.

hi
i just want to know that from where i can download php script for making php id pages such as www.myname.com/new.php?id=25 i want to use this for download section of my site i want to make php id pages and when a user click on this link the download box automaticaly appears can anybody tell me where i can found this .
bye
Reply With Quote
  #2  
Old 04-23-2005, 06:04 PM
kilz-ero kilz-ero is offline
Senior Member
 
Join Date: Mar 2004
Posts: 165
Default

thats easy. . .
PHP Code:
<?php
if ($_GET[id]) {
//download
header ("location: xxxxxx.exe");
}
else {
. . . .
}
?>
Reply With Quote
  #3  
Old 04-24-2005, 04:33 AM
netlovers netlovers is offline
Member
 
Join Date: Apr 2005
Posts: 51
Lightbulb i want to know little more.

hi thanx for giving me this coding but this is not enough for me because with this coding i can only make one download i want that type of coding which can be connect to database and in database i specify ids of software when user click on my link such as www.myname.com/new.php?id=2 or
www.myname.com/new.php?id=3 in both the link different download should start.
Reply With Quote
  #4  
Old 04-24-2005, 04:37 AM
kilz-ero kilz-ero is offline
Senior Member
 
Join Date: Mar 2004
Posts: 165
Default

example:
PHP Code:
<?php
if ($_GET[id]) {
$query=mysql_query ("select * from download where id='$_GET[id]'");
$arr=mysql_fetch_array($query);
header ("location: $arr[url]");
exit();
}
?>
Reply With Quote
  #5  
Old 04-24-2005, 07:13 AM
netlovers netlovers is offline
Member
 
Join Date: Apr 2005
Posts: 51
Exclamation where should i use this code.

hi u have told me another code but i want to know that where i should enter this php code and is this php script connect with mysql database.
Reply With Quote
  #6  
Old 04-24-2005, 08:33 AM
kilz-ero kilz-ero is offline
Senior Member
 
Join Date: Mar 2004
Posts: 165
Default

no you should connect to mysql server b4 using it
mysql_connect ("host", "username", "password");
mysql_select_db ("db");
Reply With Quote
  #7  
Old 04-24-2005, 12:30 PM
Mofo's Avatar
Mofo Mofo is offline
Now with less dolphin!
 
Join Date: Dec 2003
Posts: 811
Default

You may want to learn a little mysql/php before hand then.

www.w3schools.com
Reply With Quote
  #8  
Old 04-27-2005, 12:29 PM
koolplace koolplace is offline
Junior Member
 
Join Date: Apr 2005
Posts: 6
Default hey netlovers try script sites

hi
try www.hotscript.com this is huge script site and i suggest u to create id pages in .asp language because asp is easy language as compare to php and u can find lots of thing in www.webwizguide.info try to make id pages in asp.
bye
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:32 PM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.