User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 373,879 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,917 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 40 of 71
Search took 0.01 seconds.
Posts Made By: TopDogger
Forum: PHP May 19th, 2008
Replies: 4
Views: 320
Posted By TopDogger
Re: how to use php with java script

PHP is server-side code. It runs on the server and is executed before a script is sent to the user.

JavaScript is typically used as client-side code. It runs in a user's browser and is executed...
Forum: PHP May 14th, 2008
Replies: 16
Views: 805
Posted By TopDogger
Re: $_GET['id'] is not working?????

I have to agree with nav33n. That would not cause the problem.
Forum: PHP May 14th, 2008
Replies: 16
Views: 805
Posted By TopDogger
Re: $_GET['id'] is not working?????

You need to isolate the problem. At this point, you don't know if the GET variable is not picking up the value or if the value is not being inserted into thte table.

add echo $q_id;

just after...
Forum: PHP May 12th, 2008
Replies: 1
Views: 247
Posted By TopDogger
Re: php safe_mode = off

If your host allows you to modify the .htaccess file, you can add the following line of code to turn safe mode off.

php_flag safe_mode off
Forum: PHP Mar 27th, 2008
Replies: 11
Views: 736
Posted By TopDogger
Re: Problem with INSERT command into MySQL

You are trying to insert an id value of ' ' when you have that column set up as auto_increment. Don't insert an id value. Let MySQL set the id value.

Try this:

mysql_query("INSERT INTO island2...
Forum: PHP Feb 8th, 2008
Replies: 3
Views: 538
Posted By TopDogger
Re: php validator

You can also turn on the error message. It does a good job of pinpointing most errors. Place it at the top of your script, just after the first opening PHP tag '<?php'

Do not leave this turned on...
Forum: Search Engine Optimization Feb 8th, 2008
Replies: 23
Views: 2,651
Posted By TopDogger
Re: META Keywords-how many?

IMHO, the major search engines are not likely to ever to use the keywords meta tag again, primarily due to the widespread abuse of this tag in the 1990s. People used to stuff literally hundreds of...
Forum: PHP Feb 5th, 2008
Replies: 10
Views: 649
Posted By TopDogger
Re: Searching Multiple tables... Please help me!!!!!

Here is a MySQL cheatsheet (http://www.tech-evangelist.com/2007/11/23/mysql-cheatsheet/) that includes examples of various table joins.
Forum: PHP Jan 25th, 2008
Replies: 4
Views: 585
Posted By TopDogger
Re: Neural Network training...

It's a joke. He's pulling your chain.

It's his first post.

Everyone knows that it takes exactly (%43h7c99bdE23% * (3.14159^2 / 64)) nanoseconds to train a neural network for the first time. :) of...
Forum: Web Developers' Lounge Jan 22nd, 2008
Replies: 1
Views: 291
Posted By TopDogger
Re: E-commerce

You need to look for a shopping cart system. There are lots of good freebies out there. Check out osCommerce, Zen Cart and Cube Cart. They are all good carts. Zen Cart is based upon osCommerce and...
Forum: Search Engine Optimization Jan 19th, 2008
Replies: 23
Views: 2,651
Posted By TopDogger
Re: META Keywords-how many?

A general rule for the keywords meta tag is to never use words that do not appear on the page.

None of the major search engines have used the keywords meta tag since the 1990s.
Forum: Web Developers' Lounge Jan 19th, 2008
Replies: 3
Views: 332
Posted By TopDogger
Re: Sun Microsystems Acquiring MySQL

As long as MySQL remains a freebie, I don't see an issue. But if they try to turn it into a fee-based DB, it will destroy an excellent DB.

Sun Microsystems developed Java. It was originally...
Forum: PHP Jan 17th, 2008
Replies: 5
Views: 1,037
Posted By TopDogger
Re: convert microsoft word to html

I strongly advise you to NOT use Word as a tool to create web pages. The Microsoft HTML conversion utility generates horrible code.
Forum: Web Developers' Lounge Jan 15th, 2008
Replies: 63
Views: 12,323
Posted By TopDogger
Re: Are you a web developer or web designer?

A developer is a code monkey. If you need to work with a database or ASP code or PHP code, you need a developer. A developer works with the functional aspects of a site.

A designer has the creative...
Forum: MySQL Jan 13th, 2008
Replies: 4
Views: 694
Posted By TopDogger
Re: Using Primary Keys in php/mysql

nav33n's solution will work if you just want to capture the ID for the last row that you wrote to the table.

If you wish to access a different row, you really need to know how to use the SELECT...
Forum: PHP Jan 5th, 2008
Replies: 3
Views: 628
Posted By TopDogger
Re: Overwriting duplicate mysql results

Have you tried using SELECT DISTINCT?


$sort = mysql_query("SELECT DISTINCT genre FROM bands ORDER BY genre");


That will return only one "distinct" row per genre value.

It looks like you are...
Forum: Search Engine Optimization Dec 19th, 2007
Replies: 4
Views: 484
Posted By TopDogger
Re: Anybody experienced Google upsets?

Google recently went on a vendetta to penalize sites that are selling links. That means that links from these site have been devalued, which has taken a toll on sites that used directories and other...
Forum: PHP Dec 9th, 2007
Replies: 5
Views: 395
Posted By TopDogger
Re: Security issues

That's a good routine to use if your server is set up to use it properly.

mysql_real_escape_string will not work unless you are using at least PHP 4.3.0. Also, if magic quotes is turned on, you can...
Forum: PHP Dec 8th, 2007
Replies: 4
Views: 414
Posted By TopDogger
Re: Configuring Date

You use dots to concatinate string values in PHP. The dots do not appear in the final value.
Forum: PHP Dec 6th, 2007
Replies: 4
Views: 414
Posted By TopDogger
Re: Configuring Date

Try using different values for your select options. It makes it much easier to assemble a date in the proper format, which is yyyy-mm-dd.

<select name="date_year">
<option...
Forum: PHP Dec 1st, 2007
Replies: 14
Views: 699
Posted By TopDogger
Re: Webdesigner to PHP Web Developer

I agree copmpletely with csgal.

I think it comes down to this.

PHP is overwhelmingly more popular than PHP, but .NET is very popular in large corporations.

IMHO, if you want to develop web sites...
Forum: PHP Dec 1st, 2007
Replies: 4
Views: 493
Posted By TopDogger
Re: html vs. php

As MitkOK mentioned, PHP is a server-side language, which means the PHP code is executed on the server before sending it to the browser as client-side code. Server-side languages allow you to pull...
Forum: PHP Nov 23rd, 2007
Replies: 3
Views: 622
Posted By TopDogger
Re: replace string

Simple PHP should do it if you do not know regular expressions.


$string = "abcd123xyz";

if((substr($string,0,3)=="abc") && (substr($string,-3)=="xyz"))
{
$string = "this is a test";
}
Forum: JavaScript / DHTML / AJAX Nov 12th, 2007
Replies: 10
Views: 5,330
Posted By TopDogger
Re: Simple JavavScript needs email validation

Here is a tutorial that shows you how to validate foms using JavaScript. Just cut-and-paste the code and follow the instructions.

Form Validation using JavaScript...
Forum: PHP Nov 11th, 2007
Replies: 4
Views: 440
Posted By TopDogger
Re: PHP Classes

Why don't you list what you think are the advantages with using classes? Most people do not see any advantages, especially for relatively small web sites.
Forum: PHP Nov 5th, 2007
Replies: 4
Views: 1,102
Posted By TopDogger
Re: php file export issue

Spreadsheets are for tabular data. How do you plan to break a web page up into cells? Are you talking about data that you are displaying on a PHP page?

I'm not sure how you would do this from a...
Forum: PHP Nov 5th, 2007
Replies: 4
Views: 1,102
Posted By TopDogger
Re: php file export issue

It looks like your last line is wrong. Also, try this version of the first line. This is what I use:

header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment;...
Forum: PHP Nov 3rd, 2007
Replies: 8
Views: 727
Posted By TopDogger
Re: Problems with file upload

It's usually a good idea to add the following to the top of any PHP script that you are troubleshooting.

error_reporting(E_ALL);

You would have seen the permissions issue right away.

But it is...
Forum: *nix Software Nov 3rd, 2007
Replies: 3
Views: 774
Posted By TopDogger
Re: URL rewrite

I agree with php_deamon. If you are expecting numbers only, then his method limits the rewrite rule to numbers.
Forum: PHP Nov 1st, 2007
Replies: 8
Views: 727
Posted By TopDogger
Re: Problems with file upload

I think what people are trying to tell you is that you need to replace,

$destination = "upload/";

with

$destination = $_SERVER['DOCUMENT_ROOT']."/upload/";

That should fully specify your local...
Forum: *nix Software Nov 1st, 2007
Replies: 3
Views: 774
Posted By TopDogger
Re: URL rewrite

Working with mod_rewrite can be tricky, especially if you are working with subdirectories.

Do your hyperlinks use this format? /insurance/metatags-cat_id-44.htm

try this

RewriteRule...
Forum: PHP Jun 7th, 2007
Replies: 25
Views: 4,248
Posted By TopDogger
Re: How to install a Debian LAMP Server

It appears that there is little more to a Debian install than this. I just installed it as a Web server from the downloads on the Debian site.

It appears to work fine as a stand-alone PC, but is...
Forum: PHP Jan 9th, 2007
Replies: 3
Views: 978
Posted By TopDogger
Re: Problem with two small PHP scripts?

The script isn't there. I get redirected to the home page.
Forum: PHP Nov 25th, 2006
Replies: 2
Views: 1,026
Posted By TopDogger
Re: Contact form without scipts

I assume that when you say that your server does not allow scripts, you mean that you can only run static HTML pages.

If you cannot run any type of scripts, you probably cannot use a captcha image,...
Forum: PHP Sep 17th, 2006
Replies: 2
Views: 1,378
Posted By TopDogger
Re: Extract addess bar url

Passing the page URL using a hidden field is the safest way to do it.

You could use $_SERVER['HTTP_REFERER'], but as zippee mentioned, not all browsers pass the info. You could just simple test it...
Forum: PHP Sep 6th, 2006
Replies: 9
Views: 1,511
Posted By TopDogger
Re: Hide right click option usnig php

The JavaScript technique only stops amatuers. A user can either disable JavaScript or just look at the HTML code to copy your content or get a path to your images.
Forum: PHP Sep 6th, 2006
Replies: 2
Views: 881
Posted By TopDogger
Re: Limit to one download

You might want to consider giving the user a fixed time period to do the download. Some downloads do fail and the user may have to retry.

Most sites that I have used that allow you to purchase and...
Forum: PHP Jul 20th, 2006
Replies: 11
Views: 2,540
Posted By TopDogger
Re: Floating IP Address in AOL

That's a pretty interesting story. It's funny that someone would think that a cookie could be used to block someone's access. The story sounds a bit suspicious, but it is possible. Actually, no...
Forum: PHP Jul 20th, 2006
Replies: 11
Views: 2,540
Posted By TopDogger
Re: Floating IP Address in AOL

As someone whose primary business is training Web development teams in SEO methods, my advice is to NEVER allow session IDs in URLs. Take my word for it, Google is NOT smart enough to recognize a...
Forum: PHP Jun 30th, 2006
Replies: 5
Views: 1,874
Posted By TopDogger
Re: merge javascript with php...

I sometimes find that I need to use PHP to generate a JavaScript array that is used by an application. In this situation, I am probably using data in a MySQL database to generate the array. This is...
Showing results 1 to 40 of 71

 
All times are GMT -4. The time now is 3:55 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC