8,966 Posted Topics
Re: 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. | |
Re: 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). | |
Re: 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]. | |
Re: You can use AJAX (Javascript) to periodically check the server for new messages. It cannot be done solely with PHP/MySQL. | |
Re: 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. | |
Re: The variables (like $DocName) are probably all empty. I don't see code giving them a value. | |
Re: Default quality of imagejpeg is 75, try setting it to 100. | |
Re: 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 / … | |
Re: Something like [url=http://coppermine-gallery.net/]Coppermine[/url] perhaps ? | |
Re: In some cases your query can end with an 'and', which is invalid. | |
Re: 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 … | |
Re: As far as I understand MSSQL does not support this. You'd have to drop and recreate the table. | |
Re: Typo, check your code. For redirecting, look here: [url]http://php.net/manual/en/function.header.php[/url] | |
Re: 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] | |
Re: Why don't you start by explaining your opinion. | |
Re: 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> … | |
Re: 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. | |
Re: 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(). | |
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> … | |
Re: [url]http://goldmoney.com/news/currency-feed-with-live-data.html[/url] | |
Re: You can run it through the task scheduler, but I think you can only specify per 5 minutes as smallest interval. | |
Re: 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 … | |
Re: 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. | |
![]() | Re: The file in the second link is broken, you're missing a closing bracket. ![]() |
Re: What goes wrong ? Do you get an error ? | |
Re: 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] | |
Re: Try adding the --databases option to your command. | |
Re: [code] $sql = "UPDATE `farmlogin` SET `doccity`='$id' WHERE `cowid`=last_insert_id()"; [/code] | |
![]() | Re: Your code does not set the [icode]<table>[/icode] and [icode]</table>[/icode] tags. |
Re: 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. | |
Re: 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. | |
Re: [url]http://www.w3schools.com/js/default.asp[/url] | |
Re: 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 … | |
Re: You do have [icode]$rid = $_GET['rid'];[/icode] somewhere in your code ? | |
Re: You have a phrase in the table, yet you want to list per word, is that correct ? | |
![]() | Re: See [url=http://www.alistapart.com/articles/zebratables/]this example[/url]. |
Re: If you have registered your website to Google's Webmaster Tools, then yes, you can tell it the site has moved. | |
Re: What does not work ? Can you give some examples ? | |
![]() | Re: 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. |
Re: [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. | |
Re: 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, … | |
Re: 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. | |
Re: [url]http://www.google.com/support/forum/p/sites/thread?tid=122122e29c722908&hl=en[/url] | |
Re: Have you tried OpenFile() in OF_SHARE_EXCLUSIVE mode ? | |
Re: 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. |
The End.