TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
Advertisement
Associates
Associates
techtuts Darkmindz
CSS Tutorials Tutorialsphere.com - Free Online Tutorials
Boston PHP SurfnLearn
Reply
 
LinkBack Thread Tools Display Modes
Old 07-03-2008, 08:16 PM   #1 (permalink)
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 368
Thanks: 44
Aaron is on a distinguished road
Default Problem with Query + While $a = mysql_fetch_array($b)

Okay... the code is

PHP Code:
// Get Navigation Information
$query "SELECT `name`, `slug`
          FROM   `page`"
;
$nl mysql_query($query);
while (
$a mysql_fetch_array($nl)){
  
$b .= '<a href="'.ROOT.strtolower($a['slug']).'">'.$a['name'].'</a>'."\n";

as for the rest of my problem... it can be found here.


Edit: Fixed.


Now there is a new problem with Mod_rewrite...

The rewrite module is enabled, and my rewrite code is as follows:
Code:
RewriteEngine On
RewriteRule ^/DNTL\%20Limited/([^/]*)/([^/]*)\.html$ /DNTL\%20Limited/?lang=$1&slug=$2 [L]
The url is http://xx.xxx.xxx.213/DNTL%20Limited/?lang=en&slug=home

and mod rewrite should change it to

http://xx.xxx.xxx.213/DNTL%20Limited/en/home/
__________________

I feel better hating IE.

Last edited by Aaron : 07-03-2008 at 09:04 PM.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:43 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0