8,966 Posted Topics

Member Avatar for haribo83

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.

Member Avatar for drjohn
0
3K
Member Avatar for Wakesta
Member Avatar for bhartman21
0
87
Member Avatar for sugumarclick

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]).

Member Avatar for pritaeas
0
169
Member Avatar for mayanktalwar

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) ...

Member Avatar for pritaeas
0
105
Member Avatar for webbozz

Do you already have code? If so, post the part which is giving you trouble. If not, specify what you want exactly.

Member Avatar for webbozz
0
255
Member Avatar for EntangledDesi

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 …

Member Avatar for pritaeas
0
124
Member Avatar for Acute

[url]http://www.sohtanaka.com/web-design/inline-modal-window-w-css-and-jquery/[/url]

Member Avatar for Acute
0
115
Member Avatar for niths
Member Avatar for json101
0
118
Member Avatar for samsons17

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.

Member Avatar for samsons17
0
360
Member Avatar for ajwei810192

Round brackets define grouping in a regex, so you need to escape them if you want to match them literally [code] \(\d+\) [/code]

Member Avatar for pritaeas
0
70
Member Avatar for Jean88

Apart from the normal methods, I've found this fun thing: [url]http://rafael.adm.br/css_browser_selector/[/url]

Member Avatar for MJ Pieterse
0
87
Member Avatar for Moderns
Member Avatar for Moderns
0
2K
Member Avatar for harry88

[url]http://php.net/manual/en/function.date.php[/url] [code] echo date('l jS \of F Y h:i:s A'); [/code]

Member Avatar for rajarajan2017
0
92
Member Avatar for greatseth

readText appears to be a function, but where is it defined ? Not sure, but maybe you don't need it.

Member Avatar for pritaeas
0
82
Member Avatar for PetrQ

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]).

Member Avatar for pritaeas
0
151
Member Avatar for niths

Have a look at this thread and try to disable the page caching: [url]http://www.daniweb.com/forums/thread17332.html[/url]

Member Avatar for charvie
0
186
Member Avatar for jonow

[url]http://blog.spencerkellis.net/2009/09/merging-google-syntax-highlighter-with-tinymce/[/url]

Member Avatar for jhbalaji
0
316
Member Avatar for WickidGRAFX

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]

Member Avatar for almostbob
0
176
Member Avatar for andrew89
Member Avatar for Gospp

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.

Member Avatar for pritaeas
0
410
Member Avatar for Dr.Acula

You can use regular expressions. Every language I know of either has an implementation of it, or can use a library to do it.

Member Avatar for scaiferw
0
153
Member Avatar for viscorus2004

You can use str_to_date(). Found here: [url]http://www.webdeveloper.com/forum/showthread.php?t=108647[/url]

Member Avatar for tyson.crouch
0
117
Member Avatar for u74

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.

Member Avatar for raju.kona
1
116
Member Avatar for andydeans

[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]

Member Avatar for pritaeas
0
55
Member Avatar for griswolf

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 …

Member Avatar for pritaeas
0
160
Member Avatar for sksingh73

Use double quotes around the parameter: [code] echo passthru("/usr/local/bin/php/hashargu \"$p\""); [/code]

Member Avatar for pritaeas
0
101
Member Avatar for deepmadan
Member Avatar for niths
Member Avatar for prem2
Member Avatar for K?!

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).

Member Avatar for K?!
0
201
Member Avatar for Ancient Dragon
Member Avatar for Stefano Mtangoo

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.

Member Avatar for mschroeder
0
92
Member Avatar for weizpyr
Member Avatar for Krstevski

[url]http://svn.modxcms.com/docs/display/MODx096/Installation[/url] See the comment at the bottom.

Member Avatar for pritaeas
0
97
Member Avatar for tyson.crouch

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]

Member Avatar for pritaeas
0
127
Member Avatar for jeepguy
Member Avatar for pritaeas
0
121
Member Avatar for jamshed ahmed

I think it should be: [code] OnClientClick="return ShowMsg()" [/code] You may have to return true in ShowMsg as default.

Member Avatar for jamshed ahmed
0
222
Member Avatar for complete

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

Member Avatar for pritaeas
0
31
Member Avatar for venet

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.

Member Avatar for sallecpt
0
130
Member Avatar for dnanetwork
Member Avatar for Froger93
Member Avatar for bsewell

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 …

Member Avatar for pritaeas
0
175
Member Avatar for alazanski

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.

Member Avatar for pritaeas
0
176
Member Avatar for Scottmandoo
Member Avatar for narayanyr

I don't think a stored procedure can read from the filesystem. You may have to find a different solution.

Member Avatar for pritaeas
0
48
Member Avatar for muzvambarara
Member Avatar for pritaeas
0
52
Member Avatar for codewalkz

Like liamfriel said, this will indefinitely get the same table row over and over again.

Member Avatar for codewalkz
0
155
Member Avatar for ConCon

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 ?

Member Avatar for colweb
0
94
Member Avatar for JerieLsky

Maybe this will help: [url]http://www.learnphp.org/tutorials/Setting-Up-Foreign-Keys-Using-PhpMyAdmin-63466.html[/url]

Member Avatar for pritaeas
0
83
Member Avatar for rahul8590

The End.