found a solution,
$(document).ready(function() {
$("li ul li a").each(function(index) {
if($(this).attr("name")){
alert($(this).attr("name"));
}
});
});
in this case alert will be replaced with other functional code.
I'm working on a project where I need to use something like bind, on, onclick or such.
I have a navigation setup with a ul li structure,
<ul>
<li> </li>
<li> </li>
<li>
<ul>
<li><a class="mennav" name="t2">item 1</a></li>
<li><a class="mennav" name="t3">item 2</a></li>...
are the extra quotes part of the string?
[COLOR=red]'[/color red][COLOR=green]SELECT * FROM Users WHERE username='keith'[/color green][COLOR=red]'[/color red]
try it without the variable,
[COLOR=blue]$sql = '[/color blue][COLOR=green]SELECT * FROM Users WHERE username=\'keith\'[/color...
one star for jpadie from me.
;-)
I'm still in my first year of using php, and I think I've got good grasp on things. none the less I'm still in my write more, do less phase.
my 2 in the morning syntax...
If you copied and pasted the code directly, then your user name was preceded with an empty space on the left side,
$sql = 'SELECT * FROM Users WHERE username='.'\' '.$who.'\' ';
my 2 in the afternoon syntax...
[COLOR=blue]$sql = [/color blue][COLOR=green]'SELECT...
your request will return either false or an array.
first off,
if($data !== false)
1)
$variable = mysql_fetch_array($data);
2)
while($result = mysql_fetch_array($data ))
{
$resultSet[] = $result;
}
3) it's 2:15 in the morning here in Germany, I'll have...
correction;
[dot] dollar request , I looked over that to fast.
in the both you have an opening " with out the closing one, pertains only to the second one.
but look at $sql
if $_REQUEST["username"] for example is alfred, it is turned into 'alfred'
in the first one you have [dot] dollar request.
in the both you have an opening " with out the closing portion and the same problem with the username turning off the string and opening a new string with out being closed.
try,
$who = $_REQUEST["username"];
$data = mysql_query("SELECT * FROM...
Cool,
didn't know that one yet. I just read over it, even though for my purposes the other way is better for this project. when reading file names from a data base, I can add it's name to the varible & then try to include it. After which I can generate a message about any missing file.
I've Banging my brains in the last weeks with my project, after an error which did not occure loacaly but did when uploaded.
found out that was do to case sensitivty on a character.
So long story short;
since then I put a variable at the top of my MAIN script,
$OnloadList =...
I had simular problem and to make harder, I needed to scroll the content in a nested div. This code worked for me.
1. it uses the jquery frame work.
2. my server uses php to generate the page, if a post or get variable is set ( I'm using get in this case ) then in the document ready function...
Just a small example for understanding :
Create a new form with
3 PictureBox's
-Picture1
Inside Picture1 -PictureText(0)
Inside Picture1 -PictureText(1)
1 CommandButton
-Command1
1 Label
- .Caption = Interval
1 TextBox
-Text1
1 Timer
-Timer1
Put the following code in the form and Click on...
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.