8,966 Posted Topics

Member Avatar for klemme

Change the echo on line 15 to output it the way you want. [CODE] <a href="/' . $linknavn . '?sid=' . $sid . '">' . $subjectlinklabel . '</a></li>'; [/CODE]

Member Avatar for tiggsy
0
282
Member Avatar for zulfistyle
Member Avatar for vibhaJ
0
97
Member Avatar for decade

This issue can be resolved by setting a default timezone in your PHP.INI. This error most often occurs after your server's PHP version has been upgraded. A newer version of PHP expects something like the following: [CODE=text] date.timezone = Europe/Amsterdam [/CODE]

Member Avatar for decade
0
142
Member Avatar for uselessninja

You choose whether you add an IDENTITY column, or a timestamp column to your table structure. My personal preference is to always use an IDENTITY column. Show your current table structure, and we will advise.

Member Avatar for uselessninja
0
1K
Member Avatar for Virangya

Although consistent use of require_once should avoid this problem, [URL="http://www.electrictoolbox.com/tell-if-php-constant-defined-already/"]here[/URL]'s another way to check your constants.

Member Avatar for diafol
0
395
Member Avatar for joedy

[CODE] if (preg_match('/([-\w]+)\.html$/i', $subject, $regs)) { $result = $regs[1]; } else { $result = ""; } [/CODE]

Member Avatar for pritaeas
0
208
Member Avatar for httpgal

You cannot reference mysql table columns in a php if statement. Php if structure looks like this: [CODE] if ($var1 == $SID) { $sql = ""; } elseif ($var2 == $SID) { $sql = ""; } else { echo 'no match'; } [/CODE]

Member Avatar for pritaeas
0
165
Member Avatar for DILO3D

Something like: [CODE] preg_replace('%(^++ b.*?)(++ c)%', '$2', $yourfile); [/CODE] but you'll have to do some test to see if it is correct.

Member Avatar for pritaeas
0
126
Member Avatar for RealNoob

No, you cannot use strings in a case. It accepts only ordinal types (booleans, sets, integers). There are work-arounds for this. One tutorial can be found [URL="http://delphi.about.com/cs/adptips2002/a/bltip0202_5.htm"]here[/URL].

Member Avatar for Duoas
0
907
Member Avatar for rakwel10
Member Avatar for rakwel10
0
200
Member Avatar for Mian Waqar
Member Avatar for diafol
0
91
Member Avatar for veledrom

Just posted a link in [URL="http://www.daniweb.com/web-development/php/threads/380948"]this thread[/URL]. Hope it helps.

Member Avatar for diafol
0
253
Member Avatar for smantscheff

There is some information on [URL="http://dev.mysql.com/doc/refman/5.5/en/type-conversion.html"]this page[/URL].

Member Avatar for pritaeas
0
313
Member Avatar for Aksel

No, this is not possible using PHP only. You could use PHP to call an external program that does this. Also, there are plenty of websites that offer this as a service (paid of course).

Member Avatar for pritaeas
0
362
Member Avatar for TerenceZ
Member Avatar for whiteyoh

I think that hiding that address is a feature of the mail client, and not something that can be controlled by headers.

Member Avatar for pritaeas
0
88
Member Avatar for cgull
Member Avatar for samsnov

Something like [URL="http://www.google.com/cse/"]Google CSE[/URL] perhaps ?

Member Avatar for pritaeas
0
43
Member Avatar for jenberden

Open results.xml from the source zip file and change the question and answers. Do not forget to reset the votes to 0.

Member Avatar for pritaeas
0
116
Member Avatar for spawn2004

You want to display a PDF in a div you specify, is that correct ? If so, I don't think it is possible, because it depends on the browser whether it can handle PDF files.

Member Avatar for pritaeas
0
90
Member Avatar for fifarulez

The reason you get the notice is, that the $_GET array may not have a key with value 'op'. It wants you to check the value before using it. If you want to get rid of it do something like this: [CODE] $op = isset($_GET['op']) ? $_GET['op'] : ''; if …

Member Avatar for pritaeas
0
456
Member Avatar for ionu_

Chances are that that domain is a CDN, so optimized for delivering static data (like images). Benefit is a better caching and faster retrieval for all images, thus improving usability.

Member Avatar for pritaeas
0
67
Member Avatar for almr3b
Member Avatar for sarithak

Use a session variable, to determine whether this code has already been executed.

Member Avatar for sarithak
0
141
Member Avatar for jbennet

I use [URL="http://www.mantisbt.org/"]Mantis[/URL]. Compared to the ones you mention, very lightweight, but it suits my needs.

Member Avatar for peter_budo
0
208
Member Avatar for uselessninja

Minor correction, uselessninja says he's using mssql (which does not support limit) [CODE] $sql="SELECT TOP 1 TOTALMW, TOTALMVAR, ID FROM generators WHERE date='2011-08-11' ORDER BY ID DESC"; [/CODE]

Member Avatar for uselessninja
0
293
Member Avatar for Ingska

[iCODE]isset($_SESSION['navn'])[/iCODE] returns true or false, depending on whether that variable has a value set. You should use something like this: [CODE] isset($_SESSION['navn']) ? $_SESSION['navn'] : '' [/CODE] If [iCODE]$_SESSION['navn'][/iCODE] has a value then use it, else use an empty string (or whatever you want).

Member Avatar for Ingska
0
201
Member Avatar for gilgil2

line 33 should start with [iCODE]echo '[/iCODE] (single quote, instead of double).

Member Avatar for gilgil2
0
2K
Member Avatar for digital_plunder

You set the page output to image, which should have a sub type. Echo'ing other data after that will not show correctly, because you are trying to output a picture.

Member Avatar for ddymacek
0
103
Member Avatar for zachattack05

If you really want to have it tested by unknowns, setting up a Non Disclosure Agreement is your only defense I guess.

Member Avatar for pritaeas
0
114
Member Avatar for masterjiraya

If every book and sale is kept in the database, then determining the best seller is relatively easy. The actual query depends on the structure of your database and your specific requirements.

Member Avatar for pritaeas
0
249
Member Avatar for Buppy

You get that notice because the session variable may not be set yet. You can do something like this: [CODE] public $myArray = array ( 'key1' => 'something', 'key2' => isset($_SESSION['something_else']) ? $_SESSION['something_else'] : 'a default value' ) [/CODE]

Member Avatar for Buppy
0
91
Member Avatar for momonq1990

You can change the map's center with something like this: [CODE] gMap.setCenter(new google.maps.LatLng(0, 0)); [/CODE] Replace gMap with the variable for your map. Replace the 0's with your lat and long.

Member Avatar for pritaeas
0
88
Member Avatar for ashking
Member Avatar for gatomsgirl

Search for (multiple times): [CODE] $like_button_xfbml = " [/CODE] and replace with: [CODE] $like_button_xfbml = ""; [/CODE]

Member Avatar for almostbob
-1
297
Member Avatar for peter_carlos
Member Avatar for s0bigg

It is a verification problem. Are you sure that the username shouldn't be your e-mail address ? If not, ask your system administrator.

Member Avatar for pritaeas
0
532
Member Avatar for stephen_UK

Because you want to display the URL differently, I'd suggest replacing the link before outputting it, after retrieving it from the database.

Member Avatar for stephen_UK
0
109
Member Avatar for lobebe

Specify your error and it's location. (use code tags for your code)

Member Avatar for lobebe
0
216
Member Avatar for ZER09
Member Avatar for whiteyoh

New line before content-disposition ? And doesn't it need a content-length ?

Member Avatar for whiteyoh
0
141
Member Avatar for seularts

Output mysql_error(). You'll see that you need a primary key on id. [CODE] CREATE TABLE admin( id int(11) NOT NULL AUTO_INCREMENT, username varchar(24) NOT NULL, password varchar(24) NOT NULL, last_log_date date NOT NULL, PRIMARY KEY (id), UNIQUE KEY (username) ) [/CODE]

Member Avatar for seularts
0
106
Member Avatar for musicmaker001

If the insert works, then the problem is most likely with the retrieval of the latest record. Check that code instead.

Member Avatar for paulrajj
0
985
Member Avatar for ditty

You can use SimpleXml or XmlReader to parse the data. Read more in [URL="http://www.php.net/manual/en/refs.xml.php"]the manual[/URL].

Member Avatar for ditty
0
379
Member Avatar for silvercats
Member Avatar for rajeevbu

Do you want to insert into a datetime or time column, or in a varchar column ? datetime/time: [iCODE]insert into table (datetime_column) VALUES (NOW())[/iCODE] varchar: [code] $time = date('g:i A'); $query = "insert into table (varchar_column) VALUES ('$time')"; [/code]

Member Avatar for pritaeas
0
71
Member Avatar for tatarao25

[url]http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by-extension/[/url]

Member Avatar for tatarao25
0
185
Member Avatar for bharanidharanit

Your stored proc never returns an error, because it updates the existing record when found.

Member Avatar for pritaeas
0
66
Member Avatar for titosd
Member Avatar for pritaeas
0
88
Member Avatar for PinoyDev
Member Avatar for PinoyDev
0
113

The End.