hi
i'm very new to mod_rewrite.
I can't seem to have this work.
I have a site which has 4 pages : home, links, adverts and contacts page.
the adverts page is linked to this url http://www.xxxxxx.com/adverts.php. What i want is that whenever the adverts page is clicked , it will show... (0 Replies)
In my strenuous efforts to get SEO-friendly urls, I'm using a rewrite map in my apache setup:
RewriteEngine on
RewriteOptions MaxRedirects=5
RewriteMap seo prg:/Applications/MAMP/htdocs/map.php
#map requests for the original file to the new SEO friendly urls
RewriteCond... (0 Replies)
Here's my situation.
When a user access the site domain.com it redirects to /portal which displays SKIN1 by default.
When a user accesses the site domain.com/portal?branding=SKIN1 it displays SKIN1 by default as well.
When a user access the site domain.com/portal?branding=SKIN2 it... (0 Replies)
I'd like to translate a friendly url such as:
http://www.xxxyyyzzz.com/page/12345678/
to:
http://www.xxxyyyzzz.com/page/12/34/56/78/
Seems simple enough, but I cannot figure out how. Any one done this before? (2 Replies)
Hi, I have problems with mod rewrite. I will try to describe...
I want clean urls but fail to make it work propperly. Maybe I have problems, because the content displayed is fetched from my other site...
There is a lot of stuff I already red about this, but somehow I can not find a solution... (2 Replies)
Hi Team,
I have a question on the apache mod_rewrite module. I have a requirement of rewriting only specific url's to https.
Requirement below:-
want to match a word (test) on the url and if matches then it should rewrite to https.
example:-
... (1 Reply)
Hi Folks,
I am running on a CentOS 6.3 server, whose primary function until recently has been my Zimbra mail server exclusively. I added wordpress and I have not been disappointed, with this one exception of Apache mod_rewrite. I have already tried to set selinux to permisive to eliminate that... (5 Replies)
Hello,
I have added following rewrite cond and rewrite rules but it does not work.
RewriteCond %{HTTP_REFERER} ^http://192\.168\.1\.150/categories/.*$
RewriteRule ^(.*)$ http://www.blahblah.com/
When I hit url : http://192.168.1.150/categories/881-Goes?page=7 in my browser - it... (2 Replies)
I hope someone can help. I somewhat know what a mod_rewrite does which is URL rewiring. What I don't know is how to make the mod_rewrite to handle paths ?
Can this be why an AngularJS file is not being loaded ? (36 Replies)
Discussion started by: MaxtheCat
36 Replies
LEARN ABOUT PHP
maxdb_info
MAXDB_INFO(3) 1 MAXDB_INFO(3)maxdb_info - Retrieves information about the most recently executed query
Procedural style
SYNOPSIS
string maxdb_info (resource $link)
DESCRIPTION
Object oriented style
string$maxdb->info ()
The maxdb_info(3) function returns a string providing information about the last query executed. The nature of this string is provided
below:
Possible maxdb_info return values
+---------------------------------------+----------------------------------------------+
| Query type | |
| | |
| | Example result string |
| | |
+---------------------------------------+----------------------------------------------+
| INSERT INTO...SELECT... | |
| | |
| | Records: 100 Duplicates: 0 Warnings: 0 |
| | |
|INSERT INTO...VALUES (...),(...),(...) | |
| | |
| | Records: 3 Duplicates: 0 Warnings: 0 |
| | |
| LOAD DATA INFILE ... | |
| | |
| | Records: 1 Deleted: 0 Skipped: 0 Warnings: 0 |
| | |
| ALTER TABLE ... | |
| | |
| | Records: 3 Duplicates: 0 Warnings: 0 |
| | |
| UPDATE ... | |
| | |
| | Rows matched: 40 Changed: 40 Warnings: 0 |
| | |
+---------------------------------------+----------------------------------------------+
Note
Queries which do not fall into one of the above formats are not supported. In these situations, maxdb_info(3) will return an empty
string.
RETURN VALUES
A character string representing additional information about the most recently executed query.
EXAMPLES
Example #1
Object oriented style
<?php
$maxdb = new maxdb("localhost", "MONA", "RED", "DEMODB");
/* check connection */
if (maxdb_connect_errno()) {
printf("Connect failed: %s
", maxdb_connect_error());
exit();
}
$maxdb->query("CREATE TABLE temp.t1 LIKE hotel.city");
/* INSERT INTO .. SELECT */
$maxdb->query("INSERT INTO temp.t1 SELECT * FROM hotel.city");
printf("%s
", $maxdb->info);
/* close connection */
$maxdb->close();
?>
Example #2
Procedural style
<?php
$link = maxdb_connect("localhost", "MONA", "RED", "DEMODB");
/* check connection */
if (maxdb_connect_errno()) {
printf("Connect failed: %s
", maxdb_connect_error());
exit();
}
maxdb_query($link, "CREATE TABLE temp.t1 LIKE hotel.city");
/* INSERT INTO .. SELECT */
maxdb_query($link, "INSERT INTO temp.t1 SELECT * FROM hotel.city");
printf("%s
", maxdb_info($link));
/* close connection */
maxdb_close($link);
?>
The above example will output something similar to:
Records: 25 Duplicates: 0 Warnings: 0
SEE ALSO maxdb_affected_rows(3), maxdb_warning_count(3), maxdb_num_rows(3).
PHP Documentation Group MAXDB_INFO(3)