By the looks of it, you would like the list menu to perform two functions:
1 - populate the account field in the db with the account name
2 - populate the textbox on the form with the account number
Is this correct?
If so, you would be looking to use an AJAX style call. There are a number of...
sorry, amended:
SELECT id, deceased_name, deceased_date, DATE_FORMAT(deceased_date, '%M %D, %Y') as datetext FROM scales_obits ORDER BY deceased_date DESC LIMIT 5
________________________________
Top 10 reasons to procrastinate:
1)
SELECT id, deceased_name, deceased_date, DATE_FORMAT(deceased_date, '%M %D, %Y') as datetext";
$query .= " FROM scales_obits ORDER BY deceased_date DESC LIMIT 5
________________________________
Top 10 reasons to procrastinate:
1)
I just found the solution to my problem.
I realised when I was testing the Chrome and Opera pages, they were pointed at http://mydomain.com but the script apparently only works with http://www.mydomain.com ... have you ever heard of this before?
Bizarre. But thanks for the advice folks! I...
DonQuichote: I am with you now. I knew what you meant earlier when I said "It's my script." but I failed to clarify that I knew it was not a foreign script being injected (or whatever), because I tried this on a local machine and on the internet with the same results.
Your last point you made...
@DonQuichote: Even if Chrome was creating a new session, wouldn't that override the existing session if it uses the same session variable?
@jpadie:
just a quick note about your script you linked:
line 105: if (session_id() = '') session_start();
should be a comparison, not an assignment.
but...
Hello! And thank you both for your replies.
@DonQuichote
It is my script. I wrote the script a few months ago. I suppose this is one of the advantages of using those libraries. Anyways, the only difference between the script that currently works and this faulty one is the host. Not sure if that...
The problem:
Hi, I have a 'form' that is submitted via AJAX, and during the submission / validation process it makes a call to another page to check that the captcha is the same as the variable stored in the $_SESSION. If it is, then it returns a string and the sending process continues, as you...
I assume you are selecting data using the sp?
If you are, you need to use set your record set, like:
SET rsData = MyConn.execute(strsql)
then you can use rsData("colName") etc where you like.
however, a quick search shows the 8002000e error is when you try to response.write an object, or...
try
strsql = "JSp_DevLogFrameDetail '" & sCode & "'"
myConnection.execute(strsql)
'assumes you have opened a connection
'called "myConnection"
________________________________
Top 10 reasons to procrastinate:
1)
not sure if this is what you meant, but you can create a for loop to populate the select field with hours and then another one for minutes.
example for minutes:
<select id="mm">
<option value="0">00</option>
<%
' if you want to increment by certain amounts
' add step 5 or whatever...
well, what is contained in str?
sounds like it is empty or you are querying a columns with no criteria. such as ... WHERE id =
try response.write the value of str out. then copy/paste that into your database and query it manually.
________________________________
Top 10 reasons to...
you want to execute sql then go to the sub? it's what it looks like (might be wrong tho)...
try:
str = cStr(request.form("sql"))
'of course, you do not need the IF statement here.
IF str <> "" THEN
conntemp.Execute(str)
numAffected
END IF
...snip...
SUB numAffected
'code here
END SUB...
Includes are useful. A common method of doing this is to have your asp files stored in /project_name/ and then have the includes stored in /project_name/inc/ with the file called connect.asp / config.asp... you get the idea.
Another thing to look up is the global.asa file. This sits in your...
you could add it here:
...
If oRs("PostID") <> oRs("PostParent") Then Response.Write "#" & oRs("PostID")
Response.Write "' target=""_blank"">"
...
Is that what you were doing when you were getting errors?
hint: put your code snippets in TGML tags, like: ...
I looked in VS2005, and (I am not sure if this is how to do it in 2008) I went to Tools > Options > Fonts and Colors
and you can change the text, comment, function et al. colours there.
________________________________
Top 10 reasons to procrastinate:
1)
If we are talking the drop down boxes:
IE6, IE7, FF2, FF3, Opera9, Google Chrome and Safari 4 (beta) all render it the same size.
even when the text contained in an option far exceeds 200px, it still doesn't change size.
in all browsers (except IE) the text is not truncated to 200px when you...
i also forgot to mention; this will allow the left column to be as lonnnnng as you like.
we just remove the offending <hr /> code all together, and replace it with an "imitation" horizontal rule with border-bottom.
________________________________
Top 10 reasons to procrastinate:
1)
it solves the issue posted. we don't know how long the left column will be. all evidence points to it being 100px in height.
however, to avoid this issue all together, it would be alot easier to something like:
in the style:
.foo{
width:98%;
padding-top:10px;
padding-bottom:10px...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.