Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
0 Endorsements
Ranked #2K
~26.0K People Reached
Favorite Tags

73 Posted Topics

Member Avatar for kings

I strongly advise you to NOT use Word as a tool to create web pages. The Microsoft HTML conversion utility generates horrible code.

Member Avatar for diafol
0
3K
Member Avatar for genieuk

This might also help. [URL="http://www.tech-evangelist.com/2007/11/05/preventing-sql-injection-attack/"]Preventing SQL Injection[/URL]

Member Avatar for pritaeas
0
285
Member Avatar for aarya

There is no function that identifies a country using the IP address. You will need to use a GeoIP (also called GeoLocation) database. There are several freebie GeoIP databases available. [URL="http://www.maxmind.com/app/geoip_country"]http://www.maxmind.com/app/geoip_country[/URL] [URL="http://ip-to-country.webhosting.info/"]http://ip-to-country.webhosting.info/[/URL]

Member Avatar for kavinesh
0
1K
Member Avatar for acrylic

100 in a month should be okay. The search engines probably won't pick up all 100 within a month. I suspect that within the next 6 months directory submissions will be worthless with Google. They keep eliminating the weight given to links that they feel are not created naturally, like …

Member Avatar for movielinks
0
217
Member Avatar for [omega]

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 course, it could take less the second time.

Member Avatar for waisalima
0
325
Member Avatar for komox

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.

Member Avatar for shayaristore
0
661
Member Avatar for Puckdropper

Try this. You can always use a file that is stored outside to the Web site tree on your server. The file can contain the entire command to open the database, including the database name and password. You then include that file in your Web script using the server path …

Member Avatar for webms
0
376
Member Avatar for kimphot

You do not need all of those PHP start and end tags. You only need one at the beginning of the PHP code and one at the end. Any blank line in between a close and start tag is being sent to the browser. Eliminate all of the unecessary PHP …

Member Avatar for diafol
0
204
Member Avatar for muruganasm

You might want to check with your hosting company about the MySQL connection. Not all hosting companies allow you to connect via localhost. With GoDaddy and some others the MySQL database resides on a different server so they use a different sever name.

Member Avatar for alza
0
228
Member Avatar for dami06

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 for a live site. It may give too much information to …

Member Avatar for almostbob
1
269
Member Avatar for cmills83

For any of you with new sites, they are probably in the Google Sandbox. That will limit the site's ability to rank well for competitive search phrases for probably 5 to 8 months, and possibly longer for the most competitive search phrases. A Google rep at the recent SES conference …

Member Avatar for abhigupta.seo
0
650
Member Avatar for vssp

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.

Member Avatar for Rajivgandhi
0
243
Member Avatar for Dani

[QUOTE=jbennet;365688]whats the difference between developer and designer?[/QUOTE] 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 juices needed to create …

Member Avatar for anuj_sharma
2
760
Member Avatar for jbennet

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 not functioning as a server on my network. I cannot even …

Member Avatar for inckie
1
752
Member Avatar for anumitadas

Here is a tutorial for building a select box from MySQL data. [URL="http://www.tech-evangelist.com/2007/11/22/php-select-box/"]Populating a Select Box With PHP and MySQL[/URL] I think Jaseva is right. You probably will not see the select box without the select tags. Use View, Source to take a look at the code being generated.

Member Avatar for TopDogger
0
126
Member Avatar for sarithak

The best way to really learn osCommerce is to download the code and set up an osCommerce test site. You don't have to sell anything, but you do need to learn to work with the code. osCommerce is getting pretty old and decrepit. Most developers that I know gave up …

Member Avatar for TopDogger
0
132
Member Avatar for gpdrums

humbug's code is correct. The only reason that IE appeared to be displaying the table correctly is because the table code was invalid and the closing table tag was not being recognized. Each table was therefore not being completed. Browsers correct a lot of coding problems while they attempt to …

Member Avatar for TopDogger
0
146
Member Avatar for danishbacker

You need server root access in order to manually modify the httpd.conf file. Very few hosting companies will give a site owner root access. Using cPanel to add a subdomain does the same thing. Unless you are very familiar with Linux/Unix servers, you should not be doing anything at the …

Member Avatar for danishbacker
0
226
Member Avatar for mangel.murti

If you just want to prevent page elements such as buttons from displaying on printed output, the easiest way to do that is by using external stylesheets. You can use a different stylesheet to format what displays on the screen versus what is printed. Here is a article that shows …

Member Avatar for trinitybrown
0
176
Member Avatar for benutzername123

Try taking the links out of the Flash presentation. The hyperlinks need to be visible in the HTML code.

Member Avatar for benutzername123
0
178
Member Avatar for chicago1985

I stared out using ASP in the 1990s and then migrated to PHP. I also investigated Cold Fusion and JSP. Here are my observations about Cold Fusion: 1.You can only run it on a Cold Fusion server. If you want to set up your own server, there are licensing costs. …

Member Avatar for PoA
0
170
Member Avatar for Diode

Hi Diode I think you misunderstand what that function does and how it should be used. The function you are using does not clean out any SQL code. It merely escapes (with a backslash) characters that can be used in SQL injection attacks. If SQL code is being removed, it …

Member Avatar for Diode
0
2K
Member Avatar for OmniX

What is a JARGAN? In order for CAPTCHA to work, you need to have GD support in PHP enabled on your server. It has been included with PHP since version 4.3, but it might not be enabled. You might not have that with free hosting services. If you are not …

Member Avatar for OmniX
0
149
Member Avatar for innovativeatul

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 for your clients, PHP is easily the better choice. If you want to work in …

Member Avatar for R0bb0b
0
147
Member Avatar for almualim

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 after the user's browser processes the script. You can use PHP to generate JavaScript …

Member Avatar for almualim
0
160
Member Avatar for servis

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 $q_id=$_GET['id']; also add echo $sql; just before you assign the INSERT statement …

Member Avatar for rgviza
0
4K
Member Avatar for electromania

If your host allows you to modify the .htaccess file, you can add the following line of code to turn safe mode off. [CODE]php_flag safe_mode off[/CODE]

Member Avatar for TopDogger
0
70
Member Avatar for justted

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 (user,island,town,village,islandrank,townrank,villagerank,game) VALUES ('$userid','1','1','1','0','0','0','$game')");

Member Avatar for RoryGren
0
189
Member Avatar for jino

Here is a [URL="http://www.tech-evangelist.com/2007/11/23/mysql-cheatsheet/"]MySQL cheatsheet[/URL] that includes examples of various table joins.

Member Avatar for jino
0
114
Member Avatar for Diode

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 is my favorite. FYI. You will need some PHP programming skills to modify …

Member Avatar for TopDogger
0
74
Member Avatar for Dani

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 intended to be a system for home automation. Most people do not know this …

Member Avatar for TopDogger
1
115
Member Avatar for OmniX

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 statement to filter the data. Here is a link to …

Member Avatar for TopDogger
0
267
Member Avatar for tie372

Have you tried using SELECT DISTINCT? [CODE] $sort = mysql_query("SELECT DISTINCT genre FROM bands ORDER BY genre"); [/CODE] That will return only one "distinct" row per genre value. It looks like you are doing things the hard way. You should be looking at pulling all of your data with one …

Member Avatar for digital-ether
0
70
Member Avatar for gcs584

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 types of paid links. It doesn't matter if the directory offered free links. Any type …

Member Avatar for Dani
0
75
Member Avatar for Taffd

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 get double backslashes. As an alternative, you can try the following or modify …

Member Avatar for nav33n
0
101
Member Avatar for jay64

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 value="2007">2007</option> <select name="date_month"> <option value="01">January</option> <select name="date_day"> <option value="01">1</option> You can then assemble the date string in the proper format on the receiving …

Member Avatar for TopDogger
0
105
Member Avatar for Labby77

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 and display data from databases and create custom pages based upon requests from a user. If you …

Member Avatar for TopDogger
0
111
Member Avatar for michael123

Simple PHP should do it if you do not know regular expressions. [CODE] $string = "abcd123xyz"; if((substr($string,0,3)=="abc") && (substr($string,-3)=="xyz")) { $string = "this is a test"; } echo $string; [/CODE]

Member Avatar for Designer_101
0
112
Member Avatar for chmazur

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.

Member Avatar for chmazur
0
95
Member Avatar for realtureal

Here is a tutorial that shows you how to validate foms using JavaScript. Just cut-and-paste the code and follow the instructions. [url=http://www.tech-evangelist.com/2007/10/15/javascript-form-validation/]Form Validation using JavaScript[/url] This includes a routine to validate e-mail addresses. When a user clicks the Submit button, the JavaScript routine will validate the input before it gets …

Member Avatar for TopDogger
0
359
Member Avatar for michael123

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; filename=extraction.xls"); header("Pragma: no-cache"); header("Expires: 0"); print $data; $data needs to hold the tab delimited text file that you create. Your line just tells the routine …

Member Avatar for michael123
0
110
Member Avatar for aquilai

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 path to the destimation directory. You may also be running into problems trying to to this on a Mac. It might not …

Member Avatar for aquilai
0
91
Member Avatar for dss

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 ^insurance/metatags-cat_id-(.*)\.htm$ insurance/metatags.php?cat_id=$1 it might also work this way: RewriteRule ^metatags-cat_id-(.*)\.htm$ metatags.php?cat_id=$1 A couple of things you need to know about the .htaccess file. 1. It does not …

Member Avatar for TopDogger
0
104
Member Avatar for fray
Member Avatar for loopylouis
0
103
Member Avatar for clara-n

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, because that is generated by a script.

Member Avatar for clara-n
0
92
Member Avatar for nnhamane

If you change the extension from html to php on an existing site, you will be starting all over again with the search engines. That becomes a URL change. If you have an existing site, you probably want to set up the server to run html files through the php …

Member Avatar for Puckdropper
0
1K
Member Avatar for dss

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 for a value. If a value exists, display the Continue Shopping button with the link. …

Member Avatar for TopDogger
0
124
Member Avatar for anamerican

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 download images do give you 24 hours to do the same …

Member Avatar for TopDogger
0
82
Member Avatar for zippee

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 session ID. I also run a Web directory and I see dozens of 50-page …

Member Avatar for TopDogger
0
533
Member Avatar for 100%

IMHO, "Switch" is better if you have to qualify a variable with a lot of different possible values and each requires a different process. "If" is better if you only have to test for a few possible values. A long list of If-ElseIf statements gets to be pretty hard to …

Member Avatar for Puckdropper
0
154

The End.