PHP trouble shooting

Posted on August 10, 2008. Filed under: MySQL, PHP |

1. In the php mysql related script:

After use “mysql_query”, if you want to get the real results array, you should call the function “mysql_fetch_assoc” or “mysql_fetch_row”. The result are “key”->”value” pairs where the “key” is the table column name in the mysql_query sentence.

Useful Links:

1.  _SERVER parameter

http://us2.php.net/manual/en/reserved.variables.server.php

2. Getting the current full URL in PHP

http://dev.kanngard.net/Permalinks/ID_20050507183447.html

http://www.phpro.org/examples/Get-Full-URL.html

3. PHP tip: How to convert a relative URL to an absolute URL

http://nadeausoftware.com/node/79#Examples

4. mb_strrchr()

http://www.php.net/manual/en/function.mb-strrchr.php

5.Introduction to PHP Regex

http://www.phpro.org/tutorials/Introduction-to-PHP-Regex.html

6. urlencode and rawurlencode

http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_urlencode/

http://www.php.net/urlencode

Advertisements

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: