Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: sophielois
  • Order by date
  1. sophielois

    adding image switcher function to bg images

    thanks ca8msm
  2. sophielois

    adding image switcher function to bg images

    Thanks Kaht, thats really helpful. From what i can tell the following should work, but unfortunately it doesn't. Can you help <html> <head> <style type="text/css"> .tableBack1 { background:url(newimages/newfront/img1.jpg); } .tableBack2 { background:url(newimages/newfront/img2.jpg)...
  3. sophielois

    adding image switcher function to bg images

    ok looked into math.random So the math:random function returns a random number from 0 to 1. I'm still unclear how i would call the function with the onload handler of the body tag and then program it to pick a random className from what you define really appreciate any help Soph
  4. sophielois

    adding image switcher function to bg images

    Hi Kaht, thanks for the advice and the code. Unfortunatley i need something that doesn't use buttons to display the bg images, I need somethings that randomaly chooses a different image to display every time the page loads. Thanks Soph
  5. sophielois

    adding image switcher function to bg images

    Hi guys, Could someone give me some advice how to use the following script so that it will randomly change a background image. this is the script im using that randomly changes the image being displayed when the page ios loaded. <SCRIPT LANGUAGE="VBScript"> <!-- Sub Window_OnLoad Dim...
  6. sophielois

    security feature giving me an errorr - sessions mysql

    hi DRJ478 ok so i could set $_SESSION['authorized'] = "somerandomstring"; when a user successfully logs in and then do something like this on each page [code] <? session_start(); header("Cache-control: private"); $sec_check="somerandomstring"; if ($_SESSION['authorized']!=$$sec_check){...
  7. sophielois

    security feature giving me an errorr - sessions mysql

    there is no credit cards or information of that sort just privacy issues i suppose. So checking that the username and password registered in the session variables match that found in the database should serve secure enough?
  8. sophielois

    security feature giving me an errorr - sessions mysql

    oops another error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/n/v/nvqwandp/public_html/nvq/index.php on line 8 ???
  9. sophielois

    security feature giving me an errorr - sessions mysql

    ok cool, i like it. Thank you DRJ478 could you give me your thoughts on this as a security device. Will it do??? or should i add more to it?? Is it especially vulnerable?? I was just checking to see if the user had a couple of sessions registered and if they matched a certain variable. But i...
  10. sophielois

    security feature giving me an errorr - sessions mysql

    Hi, Im trying to put togther an include file that im putting at the top of each "restricted to registered users page" to act as a security check heres the code im playing with <? session_start(); header("Cache-control: private"); // 1st security check $sql = mysql_query("SELECT * FROM...
  11. sophielois

    javascript function and a bit of php?

    Thanks for your posts guys, I've sorted the parenthesis problem. I love it oooh it sounds rude when you replace he with she ;) Soph
  12. sophielois

    javascript function and a bit of php?

    How can i enable a user to click a link which triggers an alert saying something like "are you sure you want to do that" then if the user clicks yes it continues to the url if the user clicks no it stays where it is. been trying to play around with this function checkCom(url) { if...
  13. sophielois

    Intermittent error on printing

    I don't mean to hijack this post, but how do you get the users print box to open up as soon as the html page has loaded?? Thats exactly what im looking for Soph
  14. sophielois

    highlighting a mysql row if == 1

    Thanks, thats great... easy when you know how :) Soph
  15. sophielois

    highlighting a mysql row if == 1

    Is it possible to change the colour of a certain row within a mysql result. ill try and explain what i mean <?php $result = mysql_query("SELECT * FROM candidate ORDER BY first_name"); while($row = mysql_fetch_object($result)) { echo "<tr bgcolor='#ffffff'>"; echo...
  16. sophielois

    reading the br as a line break when retrieving from mysql

    Thanks for all the help as its christmas here's your stars!! Sophxx
  17. sophielois

    reading the br as a line break when retrieving from mysql

    The data is getting put into the databse from a text area. The <br> is not being typed, it is appearing when pressing return. What do i need to be looking at doing so that if a user hits return it would create a html <br>? Soph
  18. sophielois

    reading the br as a line break when retrieving from mysql

    ok guys, echo nl2br($row->answer); this works. Its now displaying properly!! How would i add this code so it will display all rows correctly. I just thought could it be because im working on a subdomain which has ssl installed?? thanks for all the help Sophxx
  19. sophielois

    reading the br as a line break when retrieving from mysql

    yea, like it tried to explain (not very well) you see hello me in the source code Soph

Part and Inventory Search

Back
Top