2,295 Posted Topics

Member Avatar for itisnot_me

if the file is stored in a blob in the database, print the database field if the filename only is stored in the database, without the directory structure [code=php]readfile('./pathtofolder/'.$file); //or readfile("./pathtofolder/$file");[/code]always forget which one is the right form

Member Avatar for itisnot_me
0
92
Member Avatar for onmyway

in html I dunno in php I use a link to a force download script[icode]<a href=download.php?file=filename&type=filetype>[/icode] it does not check for filetypes etc, because i code the link [code=php]<?php if(!$file) return false; header("content-disposition: attachment; filename=$file"); header("content-type: $type;"); readfile("$file"); ?>[/code] there might be need to sanitize the code to prevent someone …

Member Avatar for almostbob
0
80
Member Avatar for CuddlyBunny

[code=css]#navigation:hover { background:url(NavBGHover.png); height:36px; } [/code]Every unstyled link has a hover attribute, the default is underline user browsers have the option to underline links -always -never -onmouseover the part where it becomes very annoying is where the designer removes the default actions when styling the page. changing the background image …

Member Avatar for almostbob
0
111
Member Avatar for syedabdulsamad

type it in notepad or for basic instruction in what the <tags> do [url]http://www.w3schools.com/htmL/[/url]

Member Avatar for almostbob
0
37
Member Avatar for kako13

[quote=mysql online manual].REPLACE works exactly like INSERT,..except that if an old row in the table has the same value as a new row for a PRIMARY KEY or a UNIQUE index[/quote] [url]http://dev.mysql.com/doc/refman/5.1/en/replace.html[/url] the primary key ID is not referenced by the replace statement, the replace wont work as you intend, …

Member Avatar for almostbob
0
3K
Member Avatar for varundeveloper

place the font on your server[code=css]@font-face {font-family: THISFONT; src: url(resolved-path-to-THISFONT.ttf);}[/code] then you can reference the font

Member Avatar for MidiMagic
0
95
Member Avatar for Tekkno

dont use category names in the posted urls [icode]http://bla.com/?1=something&2=somethingelse[/icode] [code=php]$category = $_GET['cat']; $subcategory = $_GET['subcat']; if iset($1) { $category=$1; } if($category=="") { header("Location: index.php"); } elseif ( iset($2)) { $subcategory=$2; ) if($subcategory=="") $result=mysql_query("SELECT * FROM ".$category." ORDER BY RAND() LIMIT 1"); else $result=mysql_query("SELECT * FROM ".$category." WHERE Category LIKE '".$subcategory."' …

Member Avatar for SKANK!!!!!
0
154
Member Avatar for adaykin

[code=html] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- @(#) $Id$ --> <head> <title>bal bla</title> <style type='text/css'> .left { width: 39%; float:left; test-align:left; display:inline; } .right { width: 39%; float:right; text-align:left; display:inline; } .container { width: 80%; margin:auto;} </style> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta http-equiv="pragma" content="no-cache" …

Member Avatar for almostbob
0
15K
Member Avatar for progtick

asp.net works on MS hosts, limiting the [LIST][*]%age of hosts it can run on [*]and therefore- portability of developed software, [*]potential marketplace should your product be that good [/LIST]php is faster than asp for certain applications, asp is faster than php for certain applications here are 2 million google results …

Member Avatar for progtick
0
254
Member Avatar for nizar-t

You cant anything that is displayed is downloaded to the client computer before it is displayed, the user has absolute control

Member Avatar for almostbob
0
81
Member Avatar for Lolalola

[code=php]<?php session_start(); require("connect_db.php"); ?> <html> <head> <style type="text/css"> body { margin:0; text-align: center; } /*top & bottom are redundant*/ .body2{ width: 666px; background-color: #e43546; } form { margin:0; } </style> </head> <body> <div class="body2"> <?php echo 'Text, text<br>'; echo '<form method="post"> Name: <input type="text" name="name"> Pass: <input type="password" name="password"> <input …

Member Avatar for almostbob
0
75
Member Avatar for Rockindon

behaviours pallet, a dreamweaver question then ? try the dreamweaver formums at [url]http://forums.adobe.com/community/dreamweaver[/url]

Member Avatar for almostbob
0
108
Member Avatar for andrax

Google analytics loads a javascript on the users pc without acknowlegement and sends message home. occupying bandwidth, processor time without permission Classic behaviour of a spyware program. Google analytics is blocked by both the spybot and MS MVP hosts files. Many will not register if google analytics is your analysis …

Member Avatar for ebookfinder
0
169
Member Avatar for bigginge

whois 207.46.119.86 _________________ 07/28/09 00:40:11 IP block 207.46.119.86 Trying 207.46.119.86 at ARIN Trying 207.46.119 at ARIN OrgName: Microsoft Corp OrgID: MSFT Address: One Microsoft Way City: Redmond StateProv: WA PostalCode: 98052 Country: US NetRange: 207.46.0.0 - 207.46.255.255 CIDR: 207.46.0.0/16 NetName: MICROSOFT-GLOBAL-NET NetHandle: NET-207-46-0-0-1 Parent: NET-207-0-0-0-0 NetType: Direct Assignment NameServer: NS1.MSFT.NET …

Member Avatar for MidiMagic
0
196
Member Avatar for almostbob

What Makes 100%? What does it mean to give MORE than 100%? Ever wonder about those people who say they are giving more than 100%? We have all been to those meetings where someone wants you to give over 100%. How about achieving 103%? What makes up 100% in life? …

Member Avatar for GrimJack
0
159
Member Avatar for vishalkhialani

do not full screen the layout software drag the edges of the window to a 1024*762 size design in the window or better :: Use current W3C recommended best practice: design the screen layout in ems and % and it will not matter what screen resolution or browser window size …

Member Avatar for stevenpetersen
0
100
Member Avatar for grace.t

[QUOTE=grace.t;933947]I'm using Google analytics to track the traffic sources of 404 pages. Most of them are from images.google.com. How can I correct the broken link from google?[/QUOTE]resubmit your sitemap to google, to update all old links tell google not to index images use apache mod_rewrite to redirect all direct calls …

Member Avatar for grace.t
0
128
Member Avatar for papermusic
Member Avatar for papermusic
0
703
Member Avatar for stuckinmud

[url]http://www.google.com/search?hl=en&q=free+guestbook+script&meta=[/url]

Member Avatar for dottomm
0
459
Member Avatar for cali_dotcom

there is a tutorial [url]http://www.bleepingcomputer.com/forums/topic56091.html[/url] this one makes the list 1 2 3 4 5 6 7 8 9 it may not take much rewriting to have ajax count the total number of return values /3 then assign the classes appropriately to produce 1 4 7 2 5 8 3 …

Member Avatar for MidiMagic
0
145
Member Avatar for siji44

[QUOTE=macneato;905165]Honestly, its only four pages, don't think you need to go php.[/QUOTE] please ignore this advice, plan on expansion, plan on 100,000 pages, and the database to support them, and the design features to import a single css and javascript file, and to php/ssi/cgi/asp(your choice) include all the common code. …

Member Avatar for bbqkaren
0
402
Member Avatar for keanoppy

[code=php]echo "<td> <input type=\"text\" name=\"name$i\" size=\"10\" readonly=\"readonly\" value=\""; echo $row['name']; echo "\" /> </td>";[/code] if you see it this way it should show why, else the value field is not delimited, so breaks,[code=php]echo '<td><input type=\"text\" name=\"name$i\" size=\"10\" readonly=\"readonly\" value=\"'.$row['name'].'\" /> </td>';[/code]

Member Avatar for almostbob
0
115
Member Avatar for chorcho

Your layout problems may be cause by the tables used for positioning, tables are not meant for layout remove the tables and position the elements with css the css that does the positioning can set the z-index of the element, to an arbitrarily high number (1000), and cause it to …

Member Avatar for Airshow
0
300
Member Avatar for NoID

if only the data is important, the structure of the file constant, mysql/php export the data as csv which excel can import and read as data without fussing with .xls format if the structure of the file is important, for calculated fields, a 'blank' .xls for download and then import …

Member Avatar for almostbob
0
198
Member Avatar for ivannz

if you use [code=html]<form action="process.php" target="#iframe123456" method='get'> <!-- inputs of various types --> </form> <iframe name="iframe123456" width='100%' height='4000px' frameborder='0'></iframe>[/code]get is supposed to retuirn the values, you should get the iframe updated each time you submit

Member Avatar for almostbob
0
2K
Member Avatar for elamigosam

[code=html]<a href='..'>Go up one level</a> <a href='.'>reload index on this level</a> <a href='../adjacentfolder/'>Go across to another folder at the same level (up one then down)</a> <a href='./folder'>Go down one level</a> <a href='../..'>Go up two levels</a> <a href='/'>Go up to html_root</a> <a href='/folder'>Go to folder off the html_root</a> [/code]

Member Avatar for elamigosam
0
135
Member Avatar for roryt

[QUOTE=ksanders;853584]Hi, I noticed the :focus attribute is not supported in Firefox. Anyone have a fix for this? Thanks.[/QUOTE] try :active

Member Avatar for almostbob
2
2K
Member Avatar for leegeorg07

dont just remove the <P></p> replace it with a <div></div>[code=xhtml]<div>Our aims are to: <ul> <li>Promote and encourage a practical interest in aviation and the Royal Air Force among young people</li> <li>Provide training which will be useful in the Services and civilian life</li> <li>Encourage the spirit of adventure and develop qualities …

Member Avatar for almostbob
0
87
Member Avatar for RobotFX

No Popups and popunders are universally despised, as are those who employ them Browsers are configured by users who universally despise popups popunders and those who employ them, to avoid popups and popunders because they are so despised as are those who employ them. You don't want it [B][U]in[/U][/B] your …

Member Avatar for clivexxx
0
153
Member Avatar for cab_driver

current recommended practice is to design a flexible layout[code=css]width: 35%; font-size:1em;[/code]the w3c reccommend screen layouts be in em and %, then regardless of screen size the page is visually the same. and the same layout can be used - blackberry to projection screen. [code=html]<html> <head> <style type='text/css'> <!-- .wrapper {width:98%; …

Member Avatar for MidiMagic
0
96
Member Avatar for VinayRok

a large proportion of visitors will have disabled popup as a security fault, its not a good plan a visible/invisible over layer within the page would be better

Member Avatar for almostbob
0
276
Member Avatar for cali_dotcom

> fgetcsv() parses the line it reads for fields in CSV format and returns an array containing the fields read. > . . . . . > length > Must be greater than the longest line (in characters) to be found in the CSV file (allowing for trailing line-end characters). …

Member Avatar for almostbob
0
132
Member Avatar for whisper_101

Try [url]http://www.plus2net.com/asp-tutorial/form-checkbox.php[/url] the proceess for checkbox & multi select may be similar

Member Avatar for mystic2230
0
131
Member Avatar for xuexue

savefile.php[code=php]<?php if(!$file) return false; elseif(!$content) return false; else { header("Content-disposition: attachment; filename=$file"); header('Content-type: $content'); readfile("$file"); } ?>[/code][code=html]<a href='./savefile.php?file=filename&content=contenttype'>download filename</a>[/code] keep a folder full of downloads this script as index.php in that folder lets me dump anything in it and it autoupdates the displayed list line 20 lets you set the …

Member Avatar for xuexue
0
125
Member Avatar for Jintu

[code=php]<!--doctype must be declared xhtml --> <html> <head> <title>Calorie Calculation</title> </head> <body> <?php if (!$_POST['foodname']) { echo 'No food selected <br /> more error checking is required'; } else { if (!$_POST['calories'] == 0 ){ $calorie = ($_POST['fat'] * 9) / ($_POST['calories'] * 100); } //division by zero errors? echo …

Member Avatar for almostbob
0
82
Member Avatar for praghna

just get an rss reader script, rss2php rss2html or any of the [url=http://www.google.ca/search?hl=en&q=rss+reader+script&meta=] thousand others, [/url] and plug the news feed directly into your page then you wont have to try to [i]borrow[/i] the rss off the free site

Member Avatar for almostbob
0
109
Member Avatar for DaveyMoyes

a popup, will get blocked on more browsers every day, and get flagged as malicious, whether it is or not this code scrap creates a link that opens or closes a layer above the current page at the link location, put your contact details in it, and [icode]<?php include('poplayer.inc.php'); ?>[/icode] …

Member Avatar for DaveyMoyes
0
397
Member Avatar for Szabi Zsoldos

An aside, something unrelated to the question radio buttons, label tag makes the radio button title/name clickable as well as the checkbox, matches common user interfaces [code=html]<div> <p class=" p2">Would you like to be informed all the time there is something new? By this we add you in our database: …

Member Avatar for Szabi Zsoldos
0
108
Member Avatar for witty4u

It depends on the keyword A really obscure keyword/trade/business/target-audience or one is a small geographic region, is easy to keep in the high ranks, there arent many other players on those keywords (fortunately this is me, no competition) A struggle for market share in a larger region, or market, or …

Member Avatar for phoenix06007
0
136
Member Avatar for RobRob666

where javascript is used, it is the initial script trappping the 3 events separately, more currently use css to change appearance on mouseover(css hover), javascsript is often disabled as a security issue havent seen any generic onEvent handler except in tutorial pages where it is a teaching aid followed up …

Member Avatar for RobRob666
0
2K
Member Avatar for popflier

Portable-apps versions of Firefox, Opera, Avant and several other browsers, made to be installed on thumb drives so do not write to the registry or try to become default browsers, installed to thumb drive or the system drive are a good debug tool [url=http://www.browsershots.org]browsershots[/url] to check what the css-html look …

Member Avatar for almostbob
0
186
Member Avatar for GriffinMex

using css styling, Try for more consistent, you are using px(bad) em(good) x-large(ok), in the same css document. the w3c recommendation for display is em and %. Makes the display device independent and allows the user to set the basefont per their vision. [INDENT]particularly 15px is very small on a …

Member Avatar for GriffinMex
0
121
Member Avatar for anantwaykar

I have a phpIDE, DevPHP, off sourceforge, it provides a syntax highlighting editor and runtime browser in one package a one file install like a subset of wamp/lamp

Member Avatar for diafol
0
124
Member Avatar for CMSHelper

Asking, works quite often. Have sent email, "We found your site useful to our tenants and customers and have placed a link to your site on ours. Is there a logo you prefer us to use in the link ?" gets a positive response

Member Avatar for ejtt7ciia
0
98
Member Avatar for douglasmartin09

[url=https://www.google.com/webmasters/tools/]Google webmaster tools[/url] read and follow the instructions from the only place that matters

Member Avatar for phoenix06007
0
614
Member Avatar for seo2005

[QUOTE=seo2005;910478]Does the benefit of alt attribute pass to the linked page.[/QUOTE] Yes, there have been a number of SEO articles where the only instance of a phrase has been in the alt text of a linked image. The tyext appeared in google almost immediately, and hit on searches as highly …

Member Avatar for chronocommando
0
88
Member Avatar for snapped2002

In the "not index" pages[code=html]<script type='text/javascript'> if (self.location == top.location) { self.location='/index.html?frame=' + self.location; </script>[/code] in the index page a reference to set the frame src to the 'frame' parameter if set, or to the home page if not set [code=javascript]//my scripting isnt this good if (frame != "") {document.getElementbyID('frame').src= …

Member Avatar for MidiMagic
0
76
Member Avatar for groogruxking40

hate to rain on your parade the form is laid out in tables not css css is only used to set the label colours change the table code [code=html] <table> <tr> <td> <fieldset class="req-set" style="border:0"> <legend class="req-legend"><span>Required</span></legend> <td> <label id="name-error" for="name" class="req-label">Name</label><br /> <input type="text" class="text-med" name="name" value="" size="32" maxlength="60" …

Member Avatar for almostbob
0
132
Member Avatar for dwdata

[code]<form id="form2" name="Operation" method="post" action="EvVolProcess.php?id_Service=<?php echo '$id_Event'; ?>">[/code]should be[code]<form id="form2" name="Operation" method="post" action="EvVolProcess.php?id_Service=<?php echo $id_Event; ?>">[/code] edit:: Sorry KKeith, you're already there

Member Avatar for dwdata
0
103
Member Avatar for Kadence

[code=batch file]@echo off if %2=="" goto oops start /w c:\folders\do.exe %1 %2 goto end :oops echo Proper format is %0 parameter1 parameter2 :end[/code] [url=http://windowsitpro.com/article/articleid/13443/how-do-i-pass-parameters-to-a-batch-file.html]how do i pass parameters to a batch file[/url]

Member Avatar for onaclov2000
0
409

The End.