TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   Problem with Query + While $a = mysql_fetch_array($b) (http://www.talkphp.com/absolute-beginners/3061-problem-query-while-mysql_fetch_array-b.html)

Aaron 07-03-2008 07:16 PM

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/


All times are GMT. The time now is 11:25 PM.

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