%wildcard% Programming Web Development by phpDave Hello. I'm trying to use a wildcard for a $var. in a SELECT statement. Can't seem … Wildcard matching algorithm Programming Software Development by chiurox … a string with a signature. A wildcard '?' would mean it can skip 1 character. A wildcard '*' means it can skip 0 to… like this, and it seems to work fine with the '*' wildcard, but I don't understand why '?' is not working. [ICODE… Wildcard DNS - loosing hope Hardware and Software Linux and Unix by Gilded I have wildcard DNS on on my hosting account, how can I use it so I can achive the same effect Deviantart.com does, That is instant subdomains. Re: Wildcard DNS - loosing hope Hardware and Software Linux and Unix by blud The subdomains are easy, wildcard dns will point all of the subdomains to the same ip address, the thing you would need to do to get them to show a website is write a script that will create a VirtualHost entry in the httpd.conf for each subdomain that you want registered. Wildcard Search (strstr?) Programming Software Development by MacLeopard Is there some sort of wildcard search function in C? Detailed explanation. [code]Phrase: <blah=&… Re: Wildcard Search (strstr?) Programming Software Development by Ancient Dragon >> Is there some sort of wildcard search function in C? No >>Detailed explanation. write your own. c++ boost libraries have regexp libraries, but of course that isn't C. Re: Wildcard Search (strstr?) Programming Software Development by Ancient Dragon …=Ancient Dragon;248158]>> Is there some sort of wildcard search function in C? No >>Detailed explanation. write… Wildcard in variable Programming Web Development by Clarkeez Hello I'm not sure how this is possible but I want to enter a wildcard(?) into a php variable.. like this, <?php if($_SERVER['HTTP_HOST'] == '*.domain.com') { //do something } ?> Notice the * I basically need it to match if its any subdomain of domain.com Possible? Wildcard searching of encrypted data in a MySQL database? Programming Databases by Vincentas … of the application to search the information stored using a wildcard search, Possibly also via an API at a later date… Re: %wildcard% Programming Web Development by digital-ether What is the error. Do you get the error in PHP or in MySQL? Re: %wildcard% Programming Web Development by phpDave Warning: sprintf() [function.sprintf]: Too few arguments in C:\xampp\htdocs\folder\search.php on line 62 Query was empty Re: %wildcard% Programming Web Development by vibhaJ Try this code and see what error you are getting. [CODE] <? echo $query= "SELECT * FROM table WHERE col1 LIKE '%$search_Recordset2%' OR col2 LIKE '%$search_Recordset2%' OR col3 LIKE '%$search_Recordset2%'"; $result = mysql_query($query); if (!$result) { die('Invalid query: ' . mysql_error()); } ?> [/CODE] Re: %wildcard% Programming Web Development by diafol Are you using sprintf? If so it will look for the '%' to replace it. Re: %wildcard% Programming Web Development by digital-ether [QUOTE=phpDave;1560066]Warning: sprintf() [function.sprintf]: Too few arguments in C:\xampp\htdocs\folder\search.php on line 62 Query was empty[/QUOTE] Are you using a PHP framework? Or a custom database class? Whats happening is that your SQL query is being run through sprintf() function, which will try and replace the special keys that … Re: %wildcard% Programming Web Development by phpDave Thanks everyone, I tried this and it seemed to work ok.[CODE] 1. ("SELECT * FROM table WHERE col1 LIKE '%%$search_Recordset2%%' OR col2 LIKE '%%$search_Recordset2%%' OR col3 LIKE '%%$search_Recordset2%%'"[/CODE] Re: String matching with wildcard Programming Software Development by NathanOliver …wordlist.size(); size_t filenameLength, wordLength; // since the wildcard is in the string we need to find what… spot its in size_t wildcard = filename.find("*"); // now we… = filename.size(); if (filename == wordList[i].substr(0, wildcard) { wordLength = wordList[i].size(); // first part matches now… Re: String matching with wildcard Programming Software Development by Aranarth …::string& MatchStr,bool IgnoreCase=false,char Wildcard='*',char Placeholder='?') { bool (*const MatchFunction)(const…i]==Placeholder) { QP++; continue; } if (MS[i]==Wildcard) { int WCTS=i+1; while (WCTS<ML …WCTE<ML && MS[WCTE]!=Wildcard)WCTE++; int LL=WCTE-WCTS; if (… Batch file string with wildcard Hardware and Software Microsoft Windows by darthdundun Is it possible to add a wildcard onto a string? eg: IF /I '%input%'=='hi'[COLOR="Red"]Wildcard here[/COLOR] String matching with wildcard Programming Software Development by Excizted … it wouldn't work in some scenarios, where the non-wildcard parts of the pattern occurs multiple times. [CODE]#include <…(pos, (*it).length(), "#"); // let's temporarily pinpoint non-wildcard pattern matches pos = str.find(*it); } } } return 0; } [/CODE] I… Re: String matching with wildcard Programming Software Development by Excizted Many thank NathanOliver. Long post - much appreciated :) I'll see how far I get with this. I'll not be using boost, it's a bit overkill to link a whole library to get regex matching, in a case I simply need wildcard matching :) Thank you, all of you, anyway for posting! Re: DNS subdomain wildcard Programming Web Development by chrishea This might help: [URL="http://ma.tt/2003/10/wildcard-dns-and-sub-domains/"]http://ma.tt/2003/10/wildcard-dns-and-sub-domains/[/URL] File Driectory Wildcard Programming Software Development by Tyreses Open App.Path & "\irc\files\channel.txt" For Input As #1 This is generaly the same thing i used on all of he opening files. It says it cant find the file/directory, and ideas on what else to ue for a wildcard directory? onload wildcard? Digital Media UI / UX Design by Inny supposing you had multiple scripts running, many remote hosted and you cant remember how many or which ones used a body onload tag. Could you use a wildcard to cover them? for example, is something like this possible? [code]<body onload="popWindow();somefunction();"*"(); "*"();">[/code] :?: Re: onload wildcard? Digital Media UI / UX Design by MattEvans O_O the wildcard * generally relates to everything. If that was possible, your code … Access WildCard for Date Programming Databases by TBotNik … of "00/00/00". Is there a good Wildcard way to do this or is there another way? OMR How to use wildcard for attachement file name? Programming Software Development by leokuz [COLOR="Green"]How can I use [U][B]wildcard/s[/B][/U] for the attachment filename. Part of the … DNS subdomain wildcard Programming Web Development by Borzoi If I was to set a wildcard in my subdomain (*.example.com) to redirect to www.example.com, would that affect any pre-existing subdomains (for example, blog.example.com) or would it only redirect things I haven't set? The wildcard ? doesn't accept all types in this example ? Programming Software Development by daudiam … this case, the compiler complains. My question is that the wildcard ? denotes all types, so it should accept every type. The… Re: The wildcard ? doesn't accept all types in this example ? Programming Software Development by coil I'm guessing it has something to do with line 17, where you assign an integer value to the variable [icode]a[/icode], which, because of the use of the wildcard character, has no type. Re: The wildcard ? doesn't accept all types in this example ? Programming Software Development by ~s.o.s~ The wildcard [icode]<?>[/icode] is a shorthand notation for [icode]&…