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 dencom 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: jasc2k
  • Content: Threads
  • Order by date
  1. jasc2k

    nonce - unique single use number for for xss problem

    hi all, back again I love this forum, lol below is a simple php class that generates a unique number thats included on all of my forms to prevent xss. admitadly the class was not originally mine just improved and customized a little. anyways the problem is simple - in my __construct function...
  2. jasc2k

    php autolink input

    thread434-1618095 A revived thread of a great text autolinking script by jpaide. It supports many domains / emails and youtube links. Now to the reason for reposting: A recent craze of links posted on my site like www.myphaze.co.uk/profile/testing are causing problems facebook and twitter...
  3. jasc2k

    BitConverter with CType

    Hi all, I will try to keep this as simple as possible as the project is quite large. But quite simply we have a signature capture app that capture the coordinates of lines of a signature that posts them into an SQL column as 'image'. We then convert the contents using: recSign =...
  4. jasc2k

    Unix/Perl ASCII Carriage return

    Hi all, I am having a small issue when sending data over a TCP socket. Basically I need to send a carraige return as an ASCII code at the end of our data (to signify the end of data stream). The ASCII code is Alt+13 but when typing this into our perl script it actually performs a carriage...
  5. jasc2k

    pocket pc compact .net framework signature image class

    hi all, I am working on a signature capture control class provided by microsoft :~ from http://msdn.microsoft.com/en-us/library/aa446559.aspx using the vb.net compact frameworks I have adapted the backend to have an SQL connection to store a load of signatures at a time. I have one column...
  6. jasc2k

    Random javascript error - google suggest

    hi all firstly my apologies for being vague but this baffles me :( www.myphaze.co.uk when viewed in my internet explorer 8 if I type jame into my free mp3 search bar I get a javascript error: line 1 char 62 expected ';' I do not get this error in firefox or chrome so am really troubled for...
  7. jasc2k

    htaccess mod_rewrite rule help

    hi all, not sure if this is technically the correct forum but here goes. I have tried many different code combinations but this seems to be a little too much for me, in short I would like to rewrite the URL from: http://www.myphaze.co.uk/content/invite.html to...
  8. jasc2k

    this should be easy - simple query problem

    hi all, I dont use SQL that much as I have no real need but the little I do use it and I come across the following: SELECT username,email FROM users WHERE username NOT IN('admin','james') AND name LIKE '%test%' OR lastname LIKE '%test% this may be obvious, I even know the problem however I...
  9. jasc2k

    preg_replace autolink input

    hi all, my shortened function below simply takes a user input and links any URLs or email addresses appropriatly in HTML so when posted links work as seen on facebook etc /* Convert all URL matches to appropriate HTML links */ $message = preg_replace('#([\s|^])(www)#i', '$1http://$2'...
  10. jasc2k

    preg_match and arrays

    Hi all, Below is a function I have wrote for remembering previous URL vars that have been posted. i.e I have a mail section on my site where you can sort by different things like date or subject. they can also choose to sort asc or desc - my function will remember their previous choice and/or...
  11. jasc2k

    Noob misunderstanding?

    Hi all, This must be an obvious answer but I have never had much dealings in javascript/jQuery. In short I have a php routine contained in an external file I wish to call via the client side and echo the returned php string into a HTML div Here is my code to process the file...
  12. jasc2k

    an array/loop problem

    Hi there, It has been a while since I have looked at loops/arrays but this has me stumped. I am using the following code in a couple of other locations and all is fine BUT this time I know there will only be one result from the SQL query this seems to be the issue. When I return multiple results...
  13. jasc2k

    jQuery - passing variable

    hi all, I have a simple javascript function (below) that basically just displays a row in a table // This will hide/show the comments on comments table row function displayRow(rowId){ // Toggle visibility between none and inline if ((document.getElementById(rowId).style.display ==...
  14. jasc2k

    implode arrays

    hi all, this is probably an easy one but just wanted confirmation really - I have a array of names that I want to use in an SQL statement so I need each array item to be surrounded by 's Heres my implode: $id_string = "'".implode("','", $follow)."'"; Now this code does work ie it returns...
  15. jasc2k

    PHP Encrypt URL

    Hi All Another task I am faced with on the development of my website project is somehow encypting my variables passed through the address bar. I have seen alot of disscussion on this topic also on goolge but managed to source the following: Firstly if I have multiple variables ie...
  16. jasc2k

    PHP - MySQL Timestamps

    Hi All I have googled this until my eyes hurt and I cant seem to find a consistant answer. What I basically would like to do is insert the current date and time into a MySQL table with a coloumn defined as 'datetime' and how to get it back acording to the users timezone. Currently I am now...
  17. jasc2k

    IE7 and firefox align problem

    Hi there, My new website: http://www.theunit46.co.uk/ when I view it using IE7 (dev mode) or firefox my <hr> (all pages) and <feildset> (contact and guestbook pages) aligments are to the left or right but they should all be center as they are displayed correctly in IE8. Does anyone have any...
  18. jasc2k

    Date of birth selectbox in form script

    Hi All, I do not typically program using javascript however I have built a form that requires your date of birth being entered where I have used select boxes. When the user selects a month the script will work out how many days in that month and then populate the days selectbox and then on to...
  19. jasc2k

    PHP sql delete row

    Hi there, Firstly apologies as I know this is not technically the right forum but I am using PHP? Anyway I hope you can help. Basically I have a table for internal user mail that has many rows including UserTo and mail_id. The function below is to delete a message my only problem being because...
  20. jasc2k

    WHERE clause problem

    Hi there, This maybe (or at least I hope) really obvious to someone and I apologize if this is in the wrong forum (there are sooo many! lol) but basically sql seems to always return a value of 1 whether a: the query completes, or b: the query did not find any results in either UserFrom or...

Part and Inventory Search

Back
Top