[PHP] Checking a frames url..

2001-12-17 Thread Necro
Lo all, I am trying to write a script that will output to a frame the current location within a site.. like Home :: Contact I need PHP to be able to check the url of the frame "main" and then parse out anything after the domain to decide what to output as the location. e.g. http://domain.com/cont

[PHP] Random

2001-12-19 Thread Necro
Lo all, Can anyone please explain why this doesn't work... $floor = 10; $ceiling = 99; srand((double)microtime()*100); $random = rand($floor, $ceiling); I get the error... Warning: rand(): Invalid range: 10..99 in d:\htdocs\ezo

[PHP] Login Script

2001-12-21 Thread Necro
Lo all, I am trying to get the following script to work.. http://localhost/hq.php?sid=$sid";); } else { header("Location: http://localhost/error.php";); } } function login($user, $pass) { $db = "zoner2"; $SQL = "SELECT * FROM users

[PHP] Help Please

2002-01-05 Thread Necro
Can anyone help me with this... http://localhost/infekt/packages/imanager/index2.php?sid=$sid";); } else { header("Location: http://localhost/infekt/packages/imanager/index.php";); } } function login($user_name, $password) { $db = "imanag

[PHP] E-Commerce

2002-01-08 Thread Necro
Hi, Has anyone ever used any of the ecommerce shops from hotscripts.com before?? or used any other scripts similar?? I am trying to work out which people think is the best for setting up an online shop with credit card facilities, etc. Thankyou Andrew Duck -- PHP General Mailing List (http:

[PHP] Time

2002-01-08 Thread Necro
How can I make a variable which is the current time + 48 hrs?? I had $replyby = time() + 172800; But that returns time in seconds. How can I then format that $replyto into day month year, HH:MM:SS ?? Andrew Duck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

FW: [PHP] echo "" problem NEW

2002-01-08 Thread Necro
Use the \ escape character. echo "\n"; ."\n"; ."\n"; ."\n"; ."\n" Use the . to add to echo to make the code easier to manage. Use \n to take a newline in html so that the source code is easy to read once you view it from a browser. Just make sure at the end of your last addition line with . that

[PHP] IF Statements

2002-01-13 Thread Necro
I have a page for listing the contents of a table from my db. Being client.php?action=list As the action variable also allows for adding extra to the table, etc. Once I use ?action=list I want to be able to click on a single record and have it give me the extended info. so client.php?action=list

[PHP] XML Feed

2002-06-14 Thread Necro
I am currently trying to implement XML Parsing on a site using the XML News Feed of another site. The site puts two versions of the news in its file though: - Tsunami 2265 Date, Demo http://www.shacknews.com/onearticle.x/20959 - Tsunami 2265 Date, Demo http://www.shacknews.com/onear

[PHP] FW: PHP Nuke - Datestring

2002-02-25 Thread Necro
-Original Message- From: Andrew Duck [mailto:[EMAIL PROTECTED]] Sent: Monday, 26 February 2001 8:44 PM To: PHP Gen Subject: PHP Nuke - Datestring I am having trouble trying to convert the current PHP Nuke dateformat for articles into Beats. Does anyone know how to swap the PHP Nuke ar