8,966 Posted Topics
Re: This is exactly the same problem as in [URL="http://www.daniweb.com/web-development/php/threads/383670"]your other thread[/URL]. | |
Re: [url]http://atmanes.blogspot.com/2006/08/axis-1x-or-axis2.html[/url] Go for the newest. | |
Re: Get paid hotmail for $20 a year, no advertising. | |
Re: Remove everything before [iCODE]<?php[/iCODE]. You will not see the title anyway, because the page is redirected. | |
Re: Did you contact Navicat support about this ? | |
Re: Have a look at my [URL="http://www.pritaeas.net/view/articles/faq-with-jquery"]FAQ with jQuery[/URL]. | |
Re: Line 283 executes the same query again. | |
Re: Shouldn't the ProductCategory have an Id and Description ? I think a refund is just a negative quantity (and thus negative price) in your TransactionLine (doesn't it need it's own Id ?). Perhaps you have to think about product ordering, since normally you'd have to order fixed amounts per product. … | |
Re: My tool shows a match: [CODE] preg_match_all('%\\\\\\\\u003cspan class=\\\\\\\\\\\\"someClass\\\\\\\\\\\\">(.*?)\\\\\\\\u003c\\\\\\\\\\\\/span>%s', $subject) [/CODE] The backslash needs to be escaped in the regex (which you did), but also in the string (which you did not). | |
Re: I use EditPadPro mainly (like Notepad++ but with project list), but also RadPHP from Embarcadero. ![]() | |
Re: [URL="http://cufon.shoqolate.com/generate/"]Cufon[/URL] is an option. | |
Re: Connect to the database first, using [iCODE]mysql_connect[/iCODE] and [iCODE]mysql_select_db[/iCODE]. If you do: [CODE] $result = mysql_query("SELECT * FROM kategori_berita") or die(mysql_error()); [/CODE] you can see what error is returned. | |
Re: [iCODE]class LongName extends firstname[/iCODE] without parenthesis. BUT: First, LongName is already defined, so you can't use the name again. Second, firstname is a function so you cannot extend from that. Third, read about [URL="http://php.net/manual/en/keyword.extends.php"]extends[/URL] and [URL="http://www.php.net/manual/en/language.oop5.inheritance.php"]inheritance[/URL] first. | |
Re: [url]http://www.smarty.net/docs/en/language.function.for.tpl[/url] Use two for loops. | |
Re: A mysql date needs to be in the format [iCODE]'2011-09-23'[/iCODE] | |
Re: You can use something like [CODE=sql] UPDATE `books` SET available = available - 1 WHERE book_id = <book id here> [/CODE] | |
Re: [CODE] $sql = "SELECT * FROM $tableName WHERE cata <> 'abc' ORDER BY times DESC LIMIT $start, $limit"; [/CODE] | |
Re: [iCODE]good_data[comment][/iCODE] is not a valid column name. ![]() | |
Re: See [URL="http://www.daniweb.com/web-development/databases/mysql/threads/382398"]this thread[/URL], it has a link to a page about creating and installing UDF's. | |
Re: The Yahoo Maps API has been shut down, they point to [URL="http://api.maps.ovi.com/"]this partner[/URL]. All you need to know about Bing is [URL="http://www.microsoft.com/maps/developers/web.aspx"]here[/URL]. | |
Re: [QUOTE=Fireprufe15;1649132]Also, how could I make the password file so that it cannot be accessed, altered or deleted by anything but my application?[/QUOTE] No way you can ensure this. You should be able to detect alteration, but you cannot 100% prevent access, alteration or deletion. | |
Re: Because these variables have not received a value, before you are using them. Add to line 3: [CODE] $username = isset($_POST['username']) ? $_POST['username'] : ''; $password = isset($_POST['password']) ? $_POST['password'] : ''; $login = isset($_POST['login']) ? $_POST['login'] : ''; [/CODE] | |
Re: [url]http://rpbouman.blogspot.com/2007/09/creating-mysql-udfs-with-microsoft.html[/url] | |
Re: You are using [iCODE]$row[0][/iCODE] but 0 has not been set, you should be using [iCODE]$row['value'][/iCODE]. | |
Re: It will fail if [iCODE]mysql_query[/iCODE] returns an error. Did you forget to connect to your server/database perhaps ? | |
Re: Isn't the [iCODE]WHERE Answer_id = 1[/iCODE] causing this ? | |
Re: I'm guessing you have a component on the form. If you type it's name in a function followed by a dot, then press CTRL+Spacebar you should see the methods you can use. I assume there will be an Encrypt/Decrypt you can use. If you select one and open the parenthesis, … | |
Re: Your code is sloppy, lines 4, 6 and 7 are not terminated with a semi-colon. Line 4 is missing [iCODE]array[/iCODE]. Line 13 has a wrong double quote. | |
Re: Your query is using the wrong quotes. [CODE] $query = "SELECT `id` FROM `users` WHERE username= '$username' AND password= '$pass'"; [/CODE] | |
Re: Line 4 in makeimage.php should be [iCODE]mysqli_query[/iCODE], instead of [iCODE]mysql_query[/iCODE]. You cannot mix the mysql and mysqli modules like that. ![]() | |
Re: This should work in PHP, but am unable to test right now: [CODE] echo date('F'); for ($i = 1; $i < 6; $i++) { echo date(', F', strtotime("-$i month")); } [/CODE] [URL="http://php.net/strtotime"]From the manual[/URL]. ![]() | |
Re: Event tracking helps you understand your visitors usage of your website. As for how it is implemented, check the [URL="http://code.google.com/apis/analytics/docs/tracking/eventTrackerOverview.html"]documentation[/URL]. | |
Re: Do you want your output to show the numbers that way, or do you want to change after a user inputs a value and leaves the editbox. In the last case, this would be more of a javascript issue. | |
Re: If you use AJAX then you can send to as many as you want. | |
Re: Make sure everything is or can be cached. Try putting as much of the static pages and images on a CDN. Make sure your database queries are optimal. | |
Re: Post your code, or website. We can't help without it. | |
Re: Fiddler. If you want to test web services, try SoapUI. | |
Re: This [URL="http://php.net/manual/en/function.imagettfbbox.php"]page[/URL] shows how to determine the width of a given text. You can use it to determine where to split your text, and use that width to center if needed. | |
Re: If you still want the 150 characters, you could subtract the length of the search from 150 and divide by 2. Then you can substract that value from strpos and take the 150 characters from there. There are of course the edge cases which require some additional calculation, for example … | |
Re: You need some kind of CMS. If you don't know how to use mysql, start at w3schools. | |
Re: Convert your varchar to a date and use ORDER BY DESC, or GROUP BY and MAX() | |
Re: Start [URL="http://php.net/mysql_connect"]here[/URL]. If you need help with issues, post your code, and explain where the error is. | |
Re: Do you want to do this in PHP (needs a separate page), or use a javascript popup ? | |
Re: Notify a moderator to make it a tutorial, you cannot do this yourself. You can use 'Flag bad post' to get attention from one. | |
Re: [url]http://www.modwest.com/help/kb6-253.html[/url] | |
Re: Read everything you need in [URL="http://nl.php.net/manual/en/datetime.diff.php"]the manual[/URL]. ![]() | |
Re: Never mind te following, as you fixed your problem. Posted just too late... I do think your [iCODE]\s*\S*[/iCODE] could be replace by [iCODE].*?[/iCODE] One issue you may have is that you want to check more img tags in the same string. Perhaps you should look into [URL="http://php.net/preg_match_all"]preg_match_all[/URL]. [CODE] <img.*?/> [/CODE] … ![]() | |
Re: There is an [edit] button next to your comment, but it is only active for 30 minutes after posting. | |
Re: If you set the right header for the filetype, then yes you can. See [URL="http://www.daniweb.com/web-development/php/threads/88823"]this thread[/URL]. |
The End.