8,966 Posted Topics
Re: Not sure if you can do it in a single query. You could run a count query beforehand, or write a stored procedure which can do the check for you and return either result set. | |
Re: [code] <a href="contact.htm"><img src="contact.jpg" /></a> [/code] | |
Re: You can use usort ([url]http://php.net/manual/en/function.usort.php[/url]) to sort an array, defining your own comparison. You'd need check the search positions of both passed strings ([url]http://php.net/manual/en/function.strpos.php[/url]). | |
Re: You should use it like this: [code] $result = preg_replace('%(https?://)?(www.)?[0-9A-Za-z]+\.com/[0-9A-Za-z]+/\?paged=[0-9]+%im', '', $subject); [/code] Perhaps you forgot to add the modifiers around your regex (% in this case, but it could be another character) ... | |
Re: Do you already have code? If so, post the part which is giving you trouble. If not, specify what you want exactly. | |
Re: For the banner, do you mean something like my portfolio (see pritaeas.net) ? All the code is there, just take it. For the mouseover effect I suggest you use an empty link tag. Then style it with css to give it the first image as background. Then on :hover use … | |
Re: [url]http://www.sohtanaka.com/web-design/inline-modal-window-w-css-and-jquery/[/url] | |
Re: Did you check if the filesize does not exceed the max upload limit ? | |
Re: Both functions return an array of fields, where the field is not there or empty. The merge merges all results together, so if at the end the newly merged array is still empty, all fields are validated to have a value. | |
Re: Round brackets define grouping in a regex, so you need to escape them if you want to match them literally [code] \(\d+\) [/code] | |
Re: Apart from the normal methods, I've found this fun thing: [url]http://rafael.adm.br/css_browser_selector/[/url] | |
Re: Are you looking for this ? [url]http://api.jquery.com/nth-child-selector/[/url] | |
Re: [url]http://php.net/manual/en/function.date.php[/url] [code] echo date('l jS \of F Y h:i:s A'); [/code] ![]() | |
Re: readText appears to be a function, but where is it defined ? Not sure, but maybe you don't need it. | |
Re: Looks like it requires a change in the plugin. On line 20 the variable page (a number) is used. You could change this to something like wordedNumber(page) where worderNumber would be a function to change the page number into it's matching word ([url]http://javascript.about.com/library/bltoword.htm[/url]). | |
Re: Have a look at this thread and try to disable the page caching: [url]http://www.daniweb.com/forums/thread17332.html[/url] | |
Re: [url]http://blog.spencerkellis.net/2009/09/merging-google-syntax-highlighter-with-tinymce/[/url] | |
Re: You can use javascript/jquery to rotate through content in a div. There are a lot of examples out there, so it depends mostly on how you want it to look, and what content you have. Something like this perhaps: [url]http://www.sohtanaka.com/web-design/automatic-image-slider-w-css-jquery/[/url] | |
Re: Do you have a live example where we can see the effect/problem ? | |
Re: Am not sure what you are outputting, possibly XML, so why not cache it for a specific amount of time (to a file). This way you can return the file's contents or rebuild it first if it has expired. | |
Re: You can use regular expressions. Every language I know of either has an implementation of it, or can use a library to do it. | |
Re: You can use str_to_date(). Found here: [url]http://www.webdeveloper.com/forum/showthread.php?t=108647[/url] | |
Re: Against Flash because anything in it does not get indexed by search engines. This does not automatically mean that it will with jQuery. That will depend on your coding. | |
Re: [code] SELECT * FROM (SELECT DATE_FORMAT(NOW(), '%Y') - DATE_FORMAT(dob, '%Y') - (DATE_FORMAT(NOW(), '00-%m-%d') < DATE_FORMAT(dob, '00-%m-%d')) AS age FROM table) WHERE age > 10 [/code] | |
Re: I'd go with 3, the link table. Option 1 with an enum requires a database change if something needs to be changed or is missing. Option 2 with a free form allows for a lot of different ways to mark the same type. Not recommended for filtering. Option 3 can … | |
Re: Use double quotes around the parameter: [code] echo passthru("/usr/local/bin/php/hashargu \"$p\""); [/code] | |
Re: Are you sure that root is allowed to connect remotely ? | |
| |
Re: I suggest you first make sure whether or not IE6 support is really required. If it isn't a requirement, well, then don't spent time on it (I see your texts are in Dutch. IE6 support is fading fast in The Netherlands). | |
Re: I use smarty. For me it makes it easy to share, since most people I share code with also use smarty. I have to say that the docs are a definite plus. XML/XSLT comes in handy once in a while, so I use a smarty plugin to handle those situations. | |
Re: [url]http://svn.modxcms.com/docs/display/MODx096/Installation[/url] See the comment at the bottom. | |
Re: Do you mean you want to do this: [code] SELECT * FROM packages p,attractionpackages a WHERE p.pacID = a.pacID ORDER BY pacID ASC [/code] | |
Re: [code] echo(preg_replace('/^[a-z]*.|\./','',$_SERVER["HTTP_HOST"])); [/code] | |
Re: I think it should be: [code] OnClientClick="return ShowMsg()" [/code] You may have to return true in ShowMsg as default. | |
Re: Here is the full rss2 spec: [url]http://cyber.law.harvard.edu/rss/rss.html[/url] If you want an example you can view the source of onderwaterwereld.org/rss | |
Re: I use a similar construct. I do not physically delete records though. I have a deleted column. The position column of a "deleted" row is -1 and always excluded from my results. Hidden rows I keep ordered between the others. | |
Re: [url]http://27.org/isocountrylist/[/url] | |
Re: Do you have the page online somewhere, so we can see ? | |
Re: I have a portfolio on my homepage ([url]www.pritaeas.net[/url]). You can download the linked js file from there. It uses jquery, two images and a list of files. If it is not clear, I can post it here with some additional comments. I did not make time yet to put it … | |
Re: A lot of webhosting parties have reseller accounts you can use. This will allow you to use their services. I'm sure you do not want to build your own datacenter. | |
Re: You are missing a closing curly bracket somewhere... | |
Re: I don't think a stored procedure can read from the filesystem. You may have to find a different solution. | |
Re: You can use it if you have (for example) Wamp or Xampp installed. | |
Re: Like liamfriel said, this will indefinitely get the same table row over and over again. | |
Re: I suggest you log all mysql errors to a file, so you can determine the cause. That said, do you trap single quotes in the username/password ? | |
Re: Maybe this will help: [url]http://www.learnphp.org/tutorials/Setting-Up-Foreign-Keys-Using-PhpMyAdmin-63466.html[/url] | |
The End.