Search found 8 matches

by dxm
Mon Jul 16, 2007 3:38 pm
Forum: PHP - Code
Topic: New paragraph for every 20 entries
Replies: 20
Views: 1082

Aha, line 37 needed to be moved down a few lines. Thus the code becomes: <a href="collectionview.php?id=<? echo "$comico[0]" ?>"><img src="collection/<? echo "$comico[5]" ?>" border=0></a> } echo '</p>' ?> Take a look at these lines... You're missing three se...
by dxm
Mon Jul 16, 2007 12:13 pm
Forum: PHP - Code
Topic: clickable $row array elements
Replies: 7
Views: 1182

Try: <?php include'global.php'; $result=mysql_query("SELECT * FROM articles ORDER BY id DESC LIMIT 20"); ?> <html> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <p align=right> <? while( $row=mysql_fetch_array($result)) { $id=$...
by dxm
Mon Jul 16, 2007 12:07 pm
Forum: PHP - Code
Topic: [Solved] Passing 2 arguments in URL help
Replies: 7
Views: 601

You can get and check both the variables passed through the URL like this, then it's just adding it to your query the same way you did with $colname_GetCustomer . if (isset($_GET['cst_ID']) && isset($_GET['order_ID'])) { $colname_GetCustomer = (get_magic_quotes_gpc()) ? $_GET['cst_ID'] : add...
by dxm
Mon Jul 16, 2007 11:53 am
Forum: PHP - Code
Topic: Quick question on checkboxes
Replies: 4
Views: 353

checked is a HTML parameter, it allows you to decide whether the checkbox should be checked by default. It has nothing to do with passing the state to PHP.
by dxm
Sun Jul 15, 2007 7:03 am
Forum: PHP - Code
Topic: grab text from the following...
Replies: 10
Views: 856

It doesn't need to be smart so long as the format of the link is always <big><a href="http://www.url.com">text1</a></big> . echo strip_tags('<big><a href="http://www.url.com">text1</a></big>'); outputs: text1 If the format was unpredictable then I would look into something else, ...
by dxm
Sun Jul 15, 2007 6:41 am
Forum: PHP - Code
Topic: check the coding where error - login creation
Replies: 2
Views: 262

I'm still new to PHP myself, try adding a hidden input type into the form and name it something like submitted, then in welcome.php add:

Code: Select all

if (isset($_POST['submitted'])) {
    echo $_POST['username'];
}
by dxm
Sun Jul 15, 2007 6:32 am
Forum: PHP - Code
Topic: grab text from the following...
Replies: 10
Views: 856

The best way is probably to use the strip_tags function.

http://uk3.php.net/strip_tags
by dxm
Sun Jul 15, 2007 6:30 am
Forum: PHP - Code
Topic: To get previous page URL
Replies: 8
Views: 528

Use: $_SERVER['HTTP_REFERER']

Or you could use Google Analytics for more detailed information about referrers.