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 Andrzejek 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: math
  • Order by date
  1. math

    search special characters

    Hi, I've made a search-script, it searches in a mysql-table and just displays the results... The problem is that users probably will search with only the normal characters, but in the mysql-table, ë é è is used (when correct)... How can i search so that if the users search for...
  2. math

    generate fake names

    Hi, I'm trying to create a online game for which i need fictious (fake) names... Preferably by nationality... Currently I've made 2 databases (first and second names) (mysql), and I let php randomly choose a name... Problem being that making such a database for a number of nationalities is alot...
  3. math

    Running a script on specified time

    Serbtastic, Could you give me some more information on an AT command?? I've never heard of it... Thanx in advance, math
  4. math

    Running a script on specified time

    Hi, I have IIS, php and mysql installed and working. Now I don't know if it's possible, but I would like to run a couple of scripts (php) on a specified time (sunday at midnight for example), these scripts are for updating the mysql-tables and other things... Is that possible in IIS? or some...
  5. math

    command to change resolution

    Hi, For family-members, I would like to make a small program, maybe just a bat-file or something that would change te screen-resolution to let's say 1024x768, so when my family-members execute the program, the screen changes so they can read everything properly... Learning them how to do it...
  6. math

    Searching table through filter property

    Hi, I need to be able to search a table for searchstrings... The table is a Adressbook and what I want to do is search on names with the Filter property... Table1.Filter := 'Name = ' + QuotedStr(EditSearch.Text); This works, but then you have to search for the full name, correctly spelled or...
  7. math

    protecting scripts

    Hi, Is there a way to protect php-scripts? Like for connecting to mysql, I have a php-file where pasword etc... are kept, I thought of putting those files in a separate folder but I can't seem to get the right chmod settings, I'd like the scripts to be able to access them but the user(s)...
  8. math

    inputting around a selection

    Hi, I have a textarea and I'd like to input some tags around a selection that the user makes... Like adding <B> and </B> around it, so it can later be used on a webpage... I can get it at the end of the textarea but I'd like it to be around the selected text :( Here's what I've got so far...
  9. math

    reading variables from file

    Thanx benlinkknilneb, that's a really good start for me !! But the problem is that the file I need to read is a file that should and could be changed by the user... sort of a configuration-file... And for that, I think It would be usefull if the file contains the variable-names aswell... Each...
  10. math

    Mysql table exists?

    Hi, I'm making a online app in which I need to make a mysql-table if it doesn&quot;t already exists? Making the table isn't the problem, but what's the best way to check If a certain table already exists? Is there a function for this? Or should I load all the tablenames in an array and then...
  11. math

    reading variables from file

    Hi, Is there a good way to read variables from a file... Maybe a file like: var1=tekst1 var2=tekst2 ... and use the variables var1 and var2 in the program with the values tekst1 and tekst2 ? And if this is possible can I read arrays in? maybe like array1=(bla,bla,bla) ?? Thanx to anyone who...
  12. math

    Getting filename from dialog

    Hi, I'm a newbie &quot;newbie&quot; and I'm looking for a good COMPLETE example for showing a dialog in wich the user can choose a file wich the program will than read... And I know its something with CFileDialog and GetPathname but how and what i need to &quot;include&quot;, I don't know :(...
  13. math

    php on IIS: problem tranfering variables

    Hi, I've just installed php on IIS 5.1 on my Windows XP, but apparently I can't transfer variables between scripts... It doesn't seem to remember the vars :| I don't know If its a problem with ISS or with PHP, does anyone know what setting or something needs to be done for it to work? Here's a...
  14. math

    split function with OR

    Hi, I need help with the split fuction :( It seems that perl spilts TWICE when you use an OR (|) and both parts are accepted... My example: $rule = &quot;This is a sentence!&quot;; @words = split(/(^[\w]+$)|([\W]+$)/,$rule); foreach $word (@words) { print &quot;$word\|&quot;; } Perl...
  15. math

    Spliting a sentence

    Hi, I want to spilt a sentence but KEEP the points,questionmarks,spaces,... Like so: $sentence = &quot;A simple sentence!&quot;; @words = spilt(/???/,$sentence); @words[0] should be 'A' @words[1] should be ' ' @words[2] should be 'simple' @words[3] should be ' ' @words[4] should be 'sentence'...
  16. math

    making a button to start the Search function (CTRL+F)

    I want to make a button so people can search the current page using the already implemented function. You can open it by doing CTRL+F in almost any browser !! but I want a button that does that on my page? I think its the same as for making a button to add the current site to your Favourites...
  17. math

    exporting Mysql table with php

    Hi, I've seen a script that exports a Mysql Table into a CSV-file that you can open with Office Excel... But unfortunatly, I have no Idea how? Can Anyone be so kind as to tell me how it is done? Thanks a million !! math
  18. math

    reading strings until empty

    Hi, I want to let the user give strings until he wants to stop. He can stop by just giving an empty string... BUT... my while loop doesn't seem to work?? read String name; while (name != &quot;&quot;) { ... read strig name; } It doesn't work... I think there's an ENTER hidden, because the...
  19. math

    Dynamic arrays

    Hi, I need to be able to have an array of which I don't know how big it has to be... It should be dynamic... Isn't there a way to just say that the array needs to expand when necesarry? I don't know how many cell will be needed !! I have a prog that reads input, and i need it put that info in...
  20. math

    keeping zero in variable

    hi, I'm working on a script that uses a calendar... for that, I have variable like $m, $d, $y to represent month, day and year... But apparently php just throws the zero away, and I need the zero later in the script... so if I were to say: $d = &quot;02&quot;; $m = &quot;02&quot;; $y =...

Part and Inventory Search

Back
Top