Explore the FAQs
PHP - Getting notice Undefined index
Question:I am getting the following message: Notice: Undefined index: action in /home/fhlinux170/c/cybernet-designs.co.uk/user/htdocs/formtest.php on line 17.
Line 17 contains this line of code if($_POST['action'] == "send"){
Read MoreSESSION variables cheat-sheet (PHP)
Need to know, or get a handle on SESSION variables in your dynamic sites for your PHP?
This is a refrence "cheat sheet," not a tutorial , so I provide tutorial links at the end.
Read MoreRecord count with PHP Phakt
How to add a record count beside data rows using PHP or phAKT. Read MoreSend Mail with Dreamweaver MX
Question:
How can I send mail with Dreamweaver MX. I want to send out a simple subscription confirmation. Read More
Allow Zero Length and SQL create / alter table
Question:With a 'create table' or an 'alter table' SQL statement I can add tables or columns to my online live Access database.
I can set new columns to non-required using 'null' in the SQL statement, but is there a way to set the 'Allow Zero Length' property to 'yes' as well?
database adding #.......# to your files?
Question:
When i linked my images to my Access database, i keet getting a #.............# aroung it?
example: database has ""/myimages/picture.jpg""
I was getting this on the picture "http://www.mysite.com/myimages/picture.jpg#http://picture.jpg#"
How can i fix it?
Read MoreControlling your dates
Question:How do I make my date in a hidden form element so that it inserts properly in a UK timezone date field ? Read More
Display Record Count
How do I display the record count on my search results pages, e.g. Records 1-25 of 56? Read MoreWindows XP Home Edition and PHP?
Question:
I have Windows XP Home Edition installed on my computer and I cannot use PWS or IIS to test my PHP/MySQL websites locally. What can I do? Read More
Delete Dynamically Named Folder
Question:
How can I delete a dynamically named folder with the record it belongs to?
I created a member site that uses Pure ASP Upload to create a dynamically named folder for each member's images when they first upload. Sometimes we need to delete a member and want to delete the folder as well. Not all members upload images so not all members have folders. How can I delete the folders with the deleted record and insure the page doesn't crash when there is no folder? Read More
How do I reset the Autonumber to Zero in MSSQL
Question:
You have designed your database and populated it with test data and it is all working fine. It is time to go live and you delete the test data and are ready to go live.
You go live and when you see the live data going into your database the live auto number (@@IDENTITY) starts at the end of the last test number.
No Panic... just use the following in Query Analyzer
Read MoreHow do I handle BLOB fields in the Recordset
Question:
When dealing with BLOB fields from Microsoft SQL Server, you must put them to the right of non-BLOB columns in the resultset. To be safe, you should also read the columns in left-to-right order, so if you have two BLOB columns as the last two columns in your resultset, read the first one and then the second. Do not read them in the reverse order. Read More
Using the File System Object on IIS with Norton Antivirus Running
When using the FSO, my ASP page tends to "hang", but doesn't report any errors.
For instance if you use the Pure ASP upload Pack by George Petrov
Is there an easy way to create a DSN-less connection to a database?
Steps to Create a DSN-Less Connection String for your Access and SQL Server database(s) using some nice windows features.
Read MoreUsername Session variable KT_Username(MM_Username)
Using the stock phakt code I couldn't request the session variable KT_Username on subsequent pages, this shows you the easy fix. Read MoreHow many results at one page?
This FAQ explains how you can have your visitors decide how many records they want to be displayed in a repeat region (for example after a search performed on your site).
Read MoreRetrieve form fields for debugging
Q
How can i view the contents of a submitted form?
A
Create an ASP page with the following code, and set your form's ACTION
attribute to point to this page.
<% Option Explicit %>
<html>
<!-- head tag -->
<body>
<%
dim fld
response.write "Result from: " & request.serverVariables("HTTP_REFERER")
response.write "<table>"
response.write "<tr><td>Field</td><td>Value</td></tr>"
for each fld in request.form
response.write "<tr><td>" & fld & "</td><td>" & request.form(fld) & "</td></tr>"
next 'fld
response.write "</table>"
%>
</body>
</html>
source: ASPToday
Read MoreFormating Date/Time values for different National Preferences
Q
Where can i find a Reference for Formatting Date/Time values for different National Preferences ?
A
http://www.tdsf.co.uk/tdsfdemo/LocaleIDs.asp
Read MoreWrite the EURO character
Q:
How can i write the EURO character to the browser ?
A:
Use the code below:
<%
Response.Write "€"
%>
source: ASPToday
Read MoreConnecting OSX Classic to OSX with MySQL and PHAkT
This FAQ will attempt to explain how to make a connection from Ultradev running on a Mac's Classic environment back to a MySQL database hosted locally from Mac OSX. Read MoreNumber Count Beside Each Record
This FAQ will demonstrate how to display the number count beside each record when listing your records while using the Repeat Region behavior. Read MoreSession under Win32
Question :
How can I get rid of the errors generated by PHP when creating a session :
Warning: open(/tmp\sess_1243d01f1b06d133deb6b9894ed040ed, O_RDWR) failed: m (2) in C:\apache\htdocs\path\to_document\login.php on line 12
Read More
IE ASP Error Handling
I am getting those nasty error500 pages when my ASP code isn't correct and can't see any information on the error that it produces ?
Read MoreRetrieve Form Values from UD4 Insert Record behavior
If you are using the ASP server model and asked yourself once, how do I retrieve the form values from the form that is associated with the UD4 Insert Record Behavior? Read this FAQ. Read MoreFiltering a Recordset with another on same page
How to filter one recordset with another on the same page? Here is a quick tutorial.
Read MorePD Editor font size 1 doesn't work
When using the PD editor it appears that font size 1 doesn't work and neither does the add hyperlink button Read MoreInvalid Class String
Are you getting the error below?
Server objecterror 'ASP 0177 : 800401f3'
Server.CreateObject Failed
Invalid class string
Read MoreKeeping User paragraphs (VBS)
Are you making a Content Management System?
Are you making a Forum?
Then I'm sure that you are about to ask:
How do I display the Text as the user entered it? because it shows on the browser as one big block of text...
Read More