8,966 Posted Topics

Member Avatar for TonyDeWittePony

If your path consists of (X1,Y1)-(X2,Y2) line pairs or just all (X,Y) points then it is possible to calculate. The all point system being the easier one I guess.

Member Avatar for pritaeas
0
107
Member Avatar for John Linux

If you select MAM1 or PHY2 then you can group the results by student-id and select only those who have two records (see HAVING).

Member Avatar for John Linux
0
134
Member Avatar for fredrickprem
Member Avatar for sundeep_g

See [url=http://dev.mysql.com/doc/refman/5.1/en/show-databases.html]SHOW DATABASES[/url] and [url=http://dev.mysql.com/doc/refman/5.1/en/show-tables.html]SHOW TABLES[/url].

Member Avatar for sundeep_g
0
126
Member Avatar for chalasesha

You can use AJAX (Javascript) to periodically check the server for new messages. It cannot be done solely with PHP/MySQL.

Member Avatar for chalasesha
0
146
Member Avatar for sowmiya.aariya

See [url=http://php.net/manual/en/reference.pcre.pattern.modifiers.php]this page[/url] for the e modifier. I think it is for a template engine, it looks what is between double curly braces and parses that before replacing it into the string.

Member Avatar for pritaeas
0
61
Member Avatar for ceeandcee
Member Avatar for nurul_208
Member Avatar for pritaeas
0
181
Member Avatar for dschuett
Member Avatar for dschuett

You can use this function. Pass the full path to the new image, the thumbdir and the width: [code=php] function createThumb($pathToImage, $pathToThumbs, $thumbWidth) { $info = pathinfo($pathToImage); if (strtolower($info['extension']) == 'jpg') { $img = imagecreatefromjpeg("{$pathToImage}"); $width = imagesx($img); $height = imagesy($img); $new_width = $thumbWidth; $new_height = floor($height * ($thumbWidth / …

Member Avatar for dschuett
0
157
Member Avatar for John Linux
Member Avatar for pritaeas
0
137
Member Avatar for iaaan
Member Avatar for niths
Member Avatar for NicAx64

People do this to themselves. There are a lot of different kinds of hardware out there, all fit for different uses. You should pick the one your most comfortable with, but most people just don't care. Being a programmer myself (25+ years) I can say I've never had any issues …

Member Avatar for pritaeas
0
139
Member Avatar for k_manimuthu

As far as I understand MSSQL does not support this. You'd have to drop and recreate the table.

Member Avatar for pritaeas
0
158
Member Avatar for Sunganani

Typo, check your code. For redirecting, look here: [url]http://php.net/manual/en/function.header.php[/url]

Member Avatar for Brianbc
0
179
Member Avatar for samarudge

Another way is not to use the / as the regex delimiter (in PHP). You can use any character, e.g. ~ or %. That way you won't have to escape the slash. Example: [code] $valid_protocol = "~^http://|https://~i"; [/code]

Member Avatar for pritaeas
0
173
Member Avatar for essence388
Member Avatar for dantheman50_98

You want the li to have a class if it has child ul/li's ? [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body> <ul> <li>One</li> <li>Two <ul> <li>Two 1</li> <li>Two 2</li> </ul> </li> <li>Three</li> <li>Four <ul> <li>Four 1</li> <li>Four 2</li> …

Member Avatar for dantheman50_98
0
165
Member Avatar for Ikomasoji

Why not put all cards in the same table, and use the type (of the card) as a foreign key to a type table. You can do the same with other card properties that are shared.

Member Avatar for pritaeas
0
122
Member Avatar for n.utiu

Not sure if it can be done in one go, but try this: [code] $result = preg_replace('%(\[nobb\].*?)(\[)(.*?\[/nobb\])%m', '$1^$3', $content); $result = preg_replace('%(\[nobb\].*?)(])(.*?\[/nobb\])%m', '$1*$3', $result); [/code] For the other just use str_replace().

Member Avatar for n.utiu
0
364
Member Avatar for pritaeas

Below is the XML response you get from the W3C Validation API: [code=xml] <?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> <env:Body> <m:markupvalidationresponse env:encodingStyle="http://www.w3.org/2003/05/soap-encoding" xmlns:m="http://www.w3.org/2005/10/markup-validator"> <m:uri>http://www.pritaeas.net/</m:uri> <m:checkedby>http://validator.w3.org/</m:checkedby> <m:doctype>-//W3C//DTD XHTML 1.1//EN</m:doctype> <m:charset>utf-8</m:charset> <m:validity>true</m:validity> <m:errors> <m:errorcount>3</m:errorcount> <m:errorlist> <m:error> <m:line>10</m:line> <m:col>1</m:col> </m:error> <m:error> <m:line>12</m:line> <m:col>2</m:col> </m:error> <m:error> <m:line>14</m:line> <m:col>3</m:col> </m:error> </m:errorlist> </m:errors> <m:warnings> <m:warningcount>0</m:warningcount> <m:warninglist> </m:warninglist> …

Member Avatar for pritaeas
0
169
Member Avatar for masocha
Member Avatar for pritaeas
0
84
Member Avatar for ayesha789

You can run it through the task scheduler, but I think you can only specify per 5 minutes as smallest interval.

Member Avatar for digital-ether
0
1K
Member Avatar for bjc999

I have the second situation. On my personal (reseller) domain i have a sub-folder called 'hosted' where each different website has a sub-folder. The domain name for that website is mapped to that folder. SE's really don't notice this. For PHP it makes no difference to what domain the folder …

Member Avatar for pritaeas
0
165
Member Avatar for Borzoi

Technically no, PayPal will handle that part for you. However, most users will trust you more if you do have one yourself. It means you take their privacy seriously.

Member Avatar for Borzoi
0
216
Member Avatar for Puster
Member Avatar for Puster
0
103
Member Avatar for bufospro
Member Avatar for rv_mup08
Member Avatar for aslamdoctor

How about [url=http://flowplayer.org]flow[/url] or [url=http://www.happyworm.com/jquery/jplayer/]jPlayer[/url] ? You can see an implementation of the latter here: [url=http://www.flowener.nl]flowener[/url]

Member Avatar for aslamdoctor
0
157
Member Avatar for dre-logics
Member Avatar for nsam

[code] $sql = "UPDATE `farmlogin` SET `doccity`='$id' WHERE `cowid`=last_insert_id()"; [/code]

Member Avatar for pritaeas
0
287
Member Avatar for mpc123
Member Avatar for Puster

Your code does not set the [icode]<table>[/icode] and [icode]</table>[/icode] tags.

Member Avatar for pritaeas
0
1K
Member Avatar for mpc123

You can use a query like [code] INSERT INTO new_table (modelid, column2, column3) SELECT modelid, column2, column3 FROM main_table WHERE modelid = 1614 [/code] You can get the unique model id's [code] SELECT DISTINCT modelid FROM main_table [/code] Hope this will get you started.

Member Avatar for mpc123
0
94
Member Avatar for JimOneill

What helped me getting started with linq was LinqPad. It allows you to write and convert queries and execute them against your database. You can write sql, the app will convert it to linq. Nice way of getting used to it.

Member Avatar for jdsurgeon
0
158
Member Avatar for rashmijain
Member Avatar for RobotFX

You can put these lines in a text file (commands.sql), but make sure all lines end with semi-colon ([icode];[/icode]). Then you can use a cron-job in which you could put something like [code] mysql -u user -p password < commands.sql [/code] See the help for mysql to get more details …

Member Avatar for RobotFX
0
2K
Member Avatar for DarkDot
Member Avatar for pritaeas
0
122
Member Avatar for Smudly
Member Avatar for pritaeas
0
96
Member Avatar for JayGeePee

See [url=http://www.alistapart.com/articles/zebratables/]this example[/url].

Member Avatar for Lsmjudoka
0
66
Member Avatar for valipour

If you have registered your website to Google's Webmaster Tools, then yes, you can tell it the site has moved.

Member Avatar for pritaeas
0
83
Member Avatar for H_TSOPELAS
Member Avatar for bthaxor

By accessing your files, do you mean in (php) code ? If so, if you use absolute paths the files should all be accessible to you.

Member Avatar for pritaeas
0
162
Member Avatar for danimal132

[QUOTE=mwasif;1343113]This might be due to low wait_timeout of MySQL value. What is the value of wait_timeout?[/QUOTE] Default value should be 180 seconds, so I think you are correct. It matches the three minute limitation mentioned.

Member Avatar for drjohn
0
177
Member Avatar for Cool&Awesome

1. Smarty uses .tpl files in a templates directory. These are the files you need to edit. 2. Yes you can, but then you need to merge the smarty templates into your php files somehow. Probably a lot of work. 3. Yes, multiple ways, either through coding in the templates, …

Member Avatar for pritaeas
0
107
Member Avatar for nyler01

In mysql you can quote columns using the backtick character, in mssql using brackets. Possibly access has a similar method, but I have not found it yet.

Member Avatar for nyler01
0
2K
Member Avatar for pkdaftari

[url]http://www.google.com/support/forum/p/sites/thread?tid=122122e29c722908&hl=en[/url]

Member Avatar for pritaeas
0
66
Member Avatar for gybte.wartex
Member Avatar for maxelcat

I think this is an IE thing. Probably rerendering the font when it's fully visible. When posting the code on jsbin.com I can see it happen in IE, but not in Opera or Safari.

Member Avatar for benhowdle89
0
133

The End.