8,966 Posted Topics

Member Avatar for davy_yg

This is exactly the same problem as in [URL="http://www.daniweb.com/web-development/php/threads/383670"]your other thread[/URL].

Member Avatar for pritaeas
-2
177
Member Avatar for manish250

[url]http://atmanes.blogspot.com/2006/08/axis-1x-or-axis2.html[/url] Go for the newest.

Member Avatar for pritaeas
0
152
Member Avatar for bookie
Member Avatar for dr.4030

Remove everything before [iCODE]<?php[/iCODE]. You will not see the title anyway, because the page is redirected.

Member Avatar for dr.4030
0
89
Member Avatar for acakaliman
Member Avatar for Nahiyan

Have a look at my [URL="http://www.pritaeas.net/view/articles/faq-with-jquery"]FAQ with jQuery[/URL].

Member Avatar for Nahiyan
0
199
Member Avatar for tsp003
Member Avatar for jbennet

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

Member Avatar for Netcode
0
692
Member Avatar for Buppy

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

Member Avatar for pritaeas
0
146
Member Avatar for narekm

I use EditPadPro mainly (like Notepad++ but with project list), but also RadPHP from Embarcadero.

Member Avatar for diafol
0
164
Member Avatar for srdva59
Member Avatar for Matthew N.
0
268
Member Avatar for davy_yg

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.

Member Avatar for Matthew N.
0
249
Member Avatar for davy_yg

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

Member Avatar for cwarn23
0
154
Member Avatar for vidjin

[url]http://www.smarty.net/docs/en/language.function.for.tpl[/url] Use two for loops.

Member Avatar for pritaeas
0
143
Member Avatar for bostonselkirk
Member Avatar for pritaeas
0
177
Member Avatar for sibymary

You can use something like [CODE=sql] UPDATE `books` SET available = available - 1 WHERE book_id = <book id here> [/CODE]

Member Avatar for pritaeas
0
109
Member Avatar for Infame

[CODE] $sql = "SELECT * FROM $tableName WHERE cata <> 'abc' ORDER BY times DESC LIMIT $start, $limit"; [/CODE]

Member Avatar for pritaeas
0
68
Member Avatar for ronysios
Member Avatar for Deepali_Jain

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.

Member Avatar for Deepali_Jain
0
245
Member Avatar for mathewmoozh

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

Member Avatar for pritaeas
0
161
Member Avatar for Fireprufe15

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

Member Avatar for pritaeas
0
165
Member Avatar for davy_yg

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]

Member Avatar for davy_yg
0
275
Member Avatar for Deepali_Jain

[url]http://rpbouman.blogspot.com/2007/09/creating-mysql-udfs-with-microsoft.html[/url]

Member Avatar for Deepali_Jain
0
273
Member Avatar for sam230

You are using [iCODE]$row[0][/iCODE] but 0 has not been set, you should be using [iCODE]$row['value'][/iCODE].

Member Avatar for ko ko
0
949
Member Avatar for davy_yg

It will fail if [iCODE]mysql_query[/iCODE] returns an error. Did you forget to connect to your server/database perhaps ?

Member Avatar for pritaeas
0
102
Member Avatar for arsheena.alam
Member Avatar for Brenhines

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, …

Member Avatar for Brenhines
0
262
Member Avatar for davy_yg

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.

Member Avatar for pritaeas
0
87
Member Avatar for komanche

Your query is using the wrong quotes. [CODE] $query = "SELECT `id` FROM `users` WHERE username= '$username' AND password= '$pass'"; [/CODE]

Member Avatar for karthik_ppts
0
788
Member Avatar for maimihits

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.

Member Avatar for diafol
0
361
Member Avatar for bala2111

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

Member Avatar for diafol
0
3K
Member Avatar for mosesaaron

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

Member Avatar for micheal_paul
0
108
Member Avatar for Ingska

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.

Member Avatar for Ingska
0
313
Member Avatar for fffkral
Member Avatar for NinjaMediaD
0
154
Member Avatar for emily-bcot

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.

Member Avatar for pritaeas
0
61
Member Avatar for mehrantahir
Member Avatar for madz015
Member Avatar for zevo

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.

Member Avatar for pritaeas
0
356
Member Avatar for petrakid

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 …

Member Avatar for petrakid
0
145
Member Avatar for elcubanoluis
Member Avatar for pritaeas
0
102
Member Avatar for sam230
Member Avatar for pritaeas
0
183
Member Avatar for AbhishekBiswal

Start [URL="http://php.net/mysql_connect"]here[/URL]. If you need help with issues, post your code, and explain where the error is.

Member Avatar for urtrivedi
0
197
Member Avatar for jabeen111
Member Avatar for vibhaJ
0
140
Member Avatar for broj1

Notify a moderator to make it a tutorial, you cannot do this yourself. You can use 'Flag bad post' to get attention from one.

Member Avatar for broj1
3
778
Member Avatar for maydhyam
Member Avatar for LittleMissChoco

Read everything you need in [URL="http://nl.php.net/manual/en/datetime.diff.php"]the manual[/URL].

Member Avatar for diafol
0
215
Member Avatar for SolImages
Member Avatar for Aksel

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

Member Avatar for diafol
0
4K
Member Avatar for AndrewH

There is an [edit] button next to your comment, but it is only active for 30 minutes after posting.

Member Avatar for pritaeas
0
48
Member Avatar for Buppy

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

Member Avatar for pritaeas
0
45

The End.