I didn't need to have it put into a PHP array, just a JS array by echo-ing out the output in the appropriate place between the script tags. but thanks for your method, its good to know
I'm such a fool ... I don't know why I didn't think of this sooner:
$get_users = mysql_query("SELECT * FROM users");
$i=0;
while($users = mysql_fetch_array($get_users))
{
echo "myArray[".$i."][".$users['userName']."]";
$i++;
}
Thanks again for all your help
I know that you have to run the query in order to get any results, that's not the problem. I understand what you're saying about mysql_fetch_array(). that makes sense. So, what I really need to know now is how do I use
while($users = mysql_fetch_array($get_users))
and also have a for loop...
I'm using PHP to pull some data my sql like so:
$get_users = ("SELECT * FROM employees");
while($users = mysql_fetch_array($get_users))
{
echo $users['usernmae'];
--- OR ---
echo $users[0]
}
I have two questions, firstly, shouldn't the following work:
$get_users = mysql_query("SELECT * FROM...
forgot to mention, the fact that you can't RDP to it either probably means there's some ports being blocked somewhere. I think the port for TS is 3389, try telnetting to that also.
so you can ping this server but you can't connect via UNC. Try telnetting to port 139 - go to command prompt (at a client PC, not server) and type telnet 169.254.0.1 139 (replacing 169.254.0.1 with your servers IP address). It should connect, you won't really see anything but it will say...
Or alternatively go to a command prompt and type:
\\myserver on it's own. This should bring up any visible shares as well as the printers folders. If this comes up, you have permissions of some kind to the server. Otherwise you should be prompted for a username and password
sorry about the funny subject. What I want to know is, when I access policies (mainly to run logon script) via:
\\mydomain.biz\sysvol\mydomain.biz
what server does it look on? We have four servers at our sites and numerous other servers at remote offices. I presumed it would use the same...
Thanks Billy Ray. So is there any way around this at all? Basically all I want to do is detect when the mouse is no longer within the body of the document. But I don't want to go adding code to every element in the document unless absolutely necessary
I want to detect when the mouse laves the main window of the doucmnet, ie goes up to the toolbar, or down to the status bar etc. I've added an onmouseout to the body tag, but it's begin called each time I mouse over an element in the document, eg a div or a table. I haven't tried it with...
is it possible to detect a mouseup outside of the body, ie when the user brings the mouse up towards the toolbar? I'm creating a movable div and have tried several different options but none provide exactly what I need. I've tired event.clientX < 0 and I've tired adding an onmouseout to the...
Cheers, thanks for that. I'll have a look. Just to let you know that I did try making the IFRAME invisilbe while it was being dragged and it worked.
anyway, I'm off to read that article now, thanks again
yea, i see your point but I still think there has to be a better way. I've seen this done before. I think you're right also, the browser can't move the IFRAME as quick as the cursor, that's where the problem lies.
In the examples I've seen, the mouse still does move faster than the IFRAME...
Add this to your body tag:
onKeyDown = alert(event.keyCode)
and then open the page in NN and press enter. See what keycode is returns, is it 13? I'd test but I don't have NN.
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.