Jump to content

01hanstu

Members
  • Posts

    95
  • Joined

  • Last visited

    Never

Everything posted by 01hanstu

  1. Hi, I am trying to create a loop as such so that when I load the script it will check for the date in the 'start_date' field, normally formatted by the date(Y-M-D) function, but I need it to loop until the end of the current year and insert data too. Please Advise, - Stuart
  2. Hi, I want to be able to get my user to fill in the textfield called serial, then when they click submit the fields have all the information that has been searched for. i.e. after type the serial the form will complete itself and fill in the model ... Thanks
  3. Hi Guys, Im looking for a working demo / example of any ajax page to which it calls a html page and whilst doin that runs a progress bar. And ideas would be soo useful. Thanks - Stuart
  4. Thanks for the reply JAY6390, What I want to do have have 5/6 fixed BG images and at install of the package they can choose which one they want. Cheers - Stu
  5. Hi, I am trying to make my app more customizable by allowing people to set their own bg (choice of 5 images), when installing. The code idea i have is: Function BG { BG[0] = "images/BG01"; BG[1] = "images/BG02"; BG[2] = "images/BG03"; BG[3] = "images/BG04"; } NO sure if this would even work but any advise would be great! Cheers
  6. Hi Guys, Can anyone help me, or point me in the right direction? I have tried lots of tutorials, and i have installed it before and it has worked in the past. This is a clean 'Windows 2003 Server - Standard Edition' running IIS6.0 and PHP 5.1.10 (I Think). We used to have it on an XP pro, but as we can have more site on windows we are migrating (provided i can get it installed). All it seems to do read the php code and some of it is just printed on the page. Any feedback would be great! Thanks - Stuart
  7. Hi, Currently our IIS Authenticates against the Active Directory. Students are able to get access to the site a well as staff as they are all in the same AD, but we only want staff to have access. I was thinking of using LDAP to query the username passed from IIS to see the users membership and if they are staff go to staff intranet but if its a student go to the access denied page. Anybody got any pointers, or sample code I can look at? Thanks
  8. Hi, We are trying to make our php script better and one of the flaws you could say are that it only auths through a mysql database. What i would like to know is, is it possible to have, during the setup page, they can choose between AD Auth or MySql. Thanks - Stuart
  9. Hi, This is the error message I keep getting. Thanks - Stu
  10. Can someone tell me now i can get the following code to work. It is zipped and stored on the link. It is driving me mad. http://www.totally-bored.co.uk/PrintMan.zip Thanks - Stuart [attachment deleted by admin]
  11. Can someone tell me now i can get the following code to work. It is zipped and stored on the link. It is driving me mad. http://www.totally-bored.co.uk/PrintMan.zip Thanks - Stuart
  12. Hi, Thanks for the reply. I have never used xajax and xml and wanna know how i can find out what it is requesting i.e what file is it looking for. No sure if this helps explain it better. <SCRIPT type=text/javascript> var xajaxRequestUri="/"; var xajaxDebug=false; var xajaxStatusMessages=false; var xajaxWaitCursor=true; var xajaxDefinedGet=0; var xajaxDefinedPost=1; function xajax_ui_page_login(){return xajax.call("ui_page_login", arguments, 1);} </SCRIPT> <SCRIPT src="xajax/xajax.js" type=text/javascript></SCRIPT> Thanks - Stuart
  13. Hi, How can I tell exactly what is being requested by a webpage? Thanks - Stuart
  14. Hi, Can anyone help. I want to have a 'loading' icon displayed until the code (below) has finished executing, any ideas? <? $ip = "192.168.0.30"; $port = "80"; if (! $socksr01 = @fsockopen($ip, $port, $num, $error, 5)) echo '<B><FONT COLOR=red>Offline</b></FONT>'; else{ echo '<B><FONT COLOR=lime>Online</b></FONT>'; fclose($socksr01); } ?> This is on the page 9 times (as we have 9 servers), and is slooow Thanks
  15. Hi, Thanks wildteen88. Unfortunately what I need is for it to read the data from the table, print it and if the data is more that 3 characters then bg color of td = red, if it is 3 then print blue. Its a booking system and when staff book, it uses there name (Which is more that 3 chars), but when we fill in the permanent bookings then we use the staff code (Three letters). Thanks Stu
  16. Hi, Is there anyway the if the result from the database value is greater than 3 then set cell color of table. i.e. if result = 3 the bg color=red if result = >3 the bg color=blue else color = white. Any Ideas
  17. Hi, Not too sure, looking at it there is nothing clear there. All I know is that IIS is setup to check usernames and passwords from our Active Directory. Dont think there is any! I know it doesnt help much. Sorry Stu
  18. Hi, Our intranet is currently running on IIS with PHP & MYSQL. Users logon to the intranet using their network credentials (Via AD). I have the task of remodelling it and the current logoff button is just a 'close the page' button but what I want to do is see if it is possible to, when the user clicks log off, kill the current details and show them the logoff page then when they return to this site they will need a username / password Any Ideas, Thanks
  19. Hi, I have some code [below] running when the page loads. The code is meant to detect if the servers are on/off line. What I want to do it have loading bar (or animated gif) running until the page has completed its checks /loading as I am checking about 10 servers in our company. The code it: <? $ip = "SERVER_NAME"; $port = "80"; if (! $socksr01 = @fsockopen($ip, $port, $num, $error, 5)) echo '<B><FONT COLOR=red>Offline</b></FONT>'; else{ echo '<B><FONT COLOR=lime>Online</b></FONT>'; fclose($socksr01); } ?> I know this code takes a while and the staff I work with just can't be bothered working. Please Advise Stuart
  20. Hi, Thanks for that, brilliant. Stuart
  21. Hi, I am trying to generate a random number for our support system. I am trying to get it so that there is a fixed prefix i.e. 30038 (Customer ID) then a random number between 0000 - 9999 so the call numbers would look like this :300380098. Anyone Help Thank - Stuart
  22. Hi, Hope you can help. Basically I am trying to create a page within my booking system, where people are able to view any bookings they have made. My MySql Table look like this: Start_Date mon1 Mon2 mon3 Mon4 Mon5 ... (To Friday) 2009-11-16 00:00:00 Teachers Name Teachers Name FREE FREE Teachers Name Users names are fixed, as we use IIS Auth through the domain, so it will make it easier for the staff to use. I had a bash at trying to find/make some code but no luck: "SELECT * FROM it_booking_$room $room is set when they select the room. Please Help 01HanStu
  23. Hi premiso, I know what I did wrong, dont it make you feel like an idiot when its something simple. I did the Switch and its working. Thanks premiso, 01hanstu
  24. Brilliant. I know where I went wrong I was trying to 'get' the value before the switch command rather than in the switch command. Thanks Stuart
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.