8,966 Posted Topics
Re: MySql does not support computed columns, but you can write an insert/update trigger to fill in the age column of your table. | |
Re: A trigger is something that works at the server side. If you write an update trigger to detect when a reservation is paid (for example setting a paid flag), then it will do what you tell it to. There is no need to call something from your code. | |
Re: [url]http://www.easymodrewrite.com/[/url] | |
Re: I assume your controller is in PHP. PHP has no way to get data from javascript, so you will have to post the javascript value to PHP. | |
Re: You want to use this in your own code ? [URL="http://www.tonymarston.net/php-mysql/role-based-access-control.html"]Here[/URL] is a good description of how it can work. | |
Re: Maybe, because you do not close the open file in the first loop. | |
Re: [url]http://www.webmaster-talk.com/php-forum/78717-differences-between-php4-and-php5.html[/url] | |
Re: [CODE] !preg_match("@^([0-9]?[0-9])+[-|/|.]+([0-9]?[0-9])+[-|/|.]+(([0-9]{2})|([0-9]{4}))$@i", $from_date, $date_regs) [/CODE] The code is trying to match a date format, but it appears incorrect. [CODE] !preg_match('@^(\d{1,2})[-/\.](\d{1,2})[-/\.](\d{2}|\d{4})$@', $from_date, $date_regs) [/CODE] | |
Re: Do you mean like [URL="http://php.net/manual/en/function.imagecopymerge.php"]this[/URL] ? | |
Re: [url]http://www.noupe.com/ajax/10-ajax-webmail-clients.html[/url] | |
Re: The easiest way would be to contact the author, ask to buy their database. (Although I doubt they want the competition.) Copying from the book sounds like a copyright infringement. Be careful of your steps. | |
Re: If I open the site in Chrome I also get a warning when visited directly. Your domain may be blacklisted. | |
Re: You can use CONCAT on the last three columns, if you CAST them to VARCHAR first. You can then CAST it back to a DATE if needed. | |
Re: [CODE] preg_match('@<p><b>(.*?)</b>@i', '<p><b>1,664</b> Referring IP addresses</p>', $matches); print_r($matches); [/CODE] | |
Re: [quote] The mysql extension provides a procedural interface and is intended for use only with MySQL versions older than 4.1.3. This extension can be used with versions of MySQL 4.1.3 or newer, but not all of the latest MySQL server features will be available. Note: If you are using MySQL … | |
Re: Are you developing a cloud ?? My guess is you have to develop a cloud application. There are many languages you can use, but your type of application should decide your language. I'm currently using C#. Visual Studio can deploy my application directly to Azure. But there are many more … | |
Re: [CODE] {(\w+)(:\w+)+} [/CODE] What do you need to put in an array ? Only the words ? Can't you use [iCODE]explode()[/iCODE] ? | |
Re: [url]http://www.php.net/manual/en/language.operators.logical.php[/url] | |
Re: For completeness, there is also Cufon ([url]http://cufon.shoqolate.com/generate/[/url]). | |
Re: MySql expects [iCODE]'2011-08-12 18:35'[/iCODE] or you can use the MySql function [iCODE]NOW()[/iCODE] in your query. | |
Re: [CODE] $total = mysql_query("SELECT COUNT(*) AS mycount FROM $table_and_query"); $total = mysql_fetch_array($total); echo $total['mycount']; [/CODE] | |
Re: [QUOTE=Ender330;1622158]+558499608822 -- I want any number that starts with the country code 55 to be [B]excluded[/B].[/QUOTE] [CODE] preg_match('/\+(?!55)\d+/', $string); [/CODE] | |
Re: Here is an [excellent article](http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/) on the database side of things. | |
Re: [CODE] $ibforums->skin['_wrapper'] = preg_replace("'index.php\?portal=AOT&act=aom_rec_game&cmd=([a-zA-Z0-9]*)&name=([\[\]a-zA-Z0-9]*)'", "The-Titans/Replay/Command-\\1/Name-\\2.html", $ibforums->skin['_wrapper']); [/CODE] | |
Re: Perhaps you can do it with a stored procedure (using parameters). | |
Re: If you have your indexes set and it's still too slow, you may have to look at the way you're extracting data. Perhaps there is a way to trim your resultset and still get what you want. In your case I'd try setting an index to ip_from and ip_to combined | |
Re: You could create a cookie using Javascript and let PHP check if it is there. The only pitfall is when cookies have been disabled. There is no sure way to do this. | |
Re: You need to decompile an .mo file to a .po file, before you can edit it. | |
Re: The URL is too long for the server to handle. Perhaps you can use two separate smaller requests to achieve the same result. | |
Re: [url]http://dev.mysql.com/doc/refman/5.5/en/insert.html[/url] [CODE] $sql = "INSERT INTO ue-userfile (`id`, `userid`, `albumname`) VALUES ('$imageid', '$userid', '$newalbum')"; [/CODE] | |
Re: You should check %{REQUEST_URI} instead of %{HTTP_HOST} | |
Re: Lines 104 and 111 are not closed correctly. Missing double quotes and semi-colon. | |
Re: Is there a reason you want to do this using an XSLT ? I don't think it is a wise choice. | |
Re: There are a lot of threads on the subject within this forum, but most end up changing the mailing altogether. Changing the PHP.INI to a different mail server is usually not possible, because it does not support authentication (which most smtp servers require). | |
Re: What do you mean, the query fails ? If you replace > with = you won't find any results, because there is no price of 35.00 in your xml. If however you do this: [CODE] $nodes = $xml->xpath(sprintf('/bookstore/book[price = '39.95']', $name)); [/CODE] You get one result. | |
Re: Could you perhaps create a screenshot of what you want to achieve ? It looks like you want to create polygons on a google map, as documented [URL="http://code.google.com/apis/maps/documentation/javascript/overlays.html#Polygons"]here[/URL]. | |
Re: What are you searching, some PHP array, or a sql table ? | |
Re: Google for "css menus". | |
Re: Because d.headlink is a pointer to a record, and has not been created with New. | |
Re: Personally, I'd prefer using SimpleXml (or one of the others) to easily extract the information I want from the returned xml feed. | |
Re: This is not HTML, but a template that gets parsed. What do you want to achieve ? See [URL="http://www.daniweb.com/web-development/php/threads/336394"]this thread[/URL] for example. | |
Re: Old: [CODE] $sqlC = " SELECT * FROM table_comments AS c, table_blogs AS b WHERE c.id_blog = b.id_blog AND c.id_blog = '$blogView'"; [/CODE] New: [CODE] $sqlC = " SELECT * FROM table_comments AS c JOIN table_blogs AS b ON c.id_blog = b.id_blog WHERE c.id_blog = '$blogView'"; [/CODE] | |
Re: Can you please explain with your table definition and a small example what it is that you want to achieve ? | |
Re: I suggest you search this forum for 'pagination'. | |
Re: Check lines 64-69. The defined variables are not used in your mysql_connect. | |
Re: This is very vague. Please explain what you want. Note that PHP runs only server-side. | |
Re: Can you please give an input and output example of what you are trying to achieve ? That may make it easier for us to come up with a solution. | |
The End.