8,966 Posted Topics

Member Avatar for mrcniceguy

[URL="http://blog.boxedice.com/2009/03/21/handling-timezone-conversion-with-php-datetime/"]Here [/URL]is a nice description.

Member Avatar for mrcniceguy
0
81
Member Avatar for muralibobby2015

Redirecting everything from .com to .in [code=text] RewriteCond %{http_host} domain.com [nc,or] RewriteCond %{http_host} www.domain.com [nc] RewriteRule ^(.*)$ http://www.domain.in/$1 [r=301,nc] [/code]

Member Avatar for muralibobby2015
0
142
Member Avatar for Vanquish39

[code] SELECT * FROM pharmacy p LEFT JOIN junction j ON j.pharmacy_id = p.pharmacy_id LEFT JOIN item i ON i.item_id = j.item_id [/code] This is also a possibility, but this will not show a pharmacy if there are no junctions/items. [code] SELECT * FROM pharmacy p, junction j, item i …

Member Avatar for drjohn
0
171
Member Avatar for Moderns
Member Avatar for python01
Member Avatar for Toni Chopper
0
295
Member Avatar for reco21

I think you answered your own question already. A tags.php file should work just fine. You can get the tag through the URL. So, just make your tags clickable with an A tag, and point it to the tags.php?tag=bookreview

Member Avatar for reco21
0
191
Member Avatar for Thisisnotanid

[url]http://stackoverflow.com/questions/2200391/scalable-background-html-css-javascript[/url] A lot of related questions in the sidebar, so you'll have plenty to read.

Member Avatar for teedoff
0
604
Member Avatar for paolonewage

[CODE] <?php $username = 'username'; $password = 'password'; if (isset($_POST["username"]) && isset($_POST["password"])) { // open text.txt for reading $file = fopen("text.txt","r"); $login = false; while (!feof($file)) { $data = explode ("|", fgets($file)); if(isset($data[0]) && isset($data[1])) { if (trim($data[0]) == trim($_POST["username"]) && trim($data[1]) == trim($_POST["password"])) { $login = true; $_SESSION["login"] = …

Member Avatar for paolonewage
0
101
Member Avatar for DrRodge

Only, if you let ProgramA pass a specific parameter to ProgramB. But that could be faked manually, so there is no guarantee.

Member Avatar for Wolfgan
0
109
Member Avatar for styleest

Just copy/rename one of the functions you already have. Then make sure it gets called when your user hits the logout link (or whatever you have).

Member Avatar for styleest
0
94
Member Avatar for jaydipsinh

This should be described in the documentation of the soap service you're using. If it is sha1 and you're using php, then [icode]sha1('something here')[/icode] should do it.

Member Avatar for jaydipsinh
0
994
Member Avatar for michael1999

If your code does not explicitly close a connection, mysql will keep them in idle state until they time out.

Member Avatar for michael1999
0
94
Member Avatar for feoperro
Member Avatar for naziatarannum

Something like [URL="http://www.pritaeas.net/demos/jq-dropdown/"]this[/URL] ? You can see the jQuery code you need, however, you still need to provide 3 pages to return the contents as a JSON array.

Member Avatar for pritaeas
0
138
Member Avatar for suhnako

That folder is the default root folder for your apache webserver. This is where your html/php files go. The video shows this too, although briefly "Delete files and replace them with your site files"

Member Avatar for pritaeas
0
117
Member Avatar for Sorcher

So, instead of listing all files for a user, you want to show (say) 10 files and below that links to the previous/next pages ? Anyway, maybe [url=http://www.daniweb.com/forums/thread266366.html]this[/url] can help.

Member Avatar for pritaeas
0
226
Member Avatar for solvision
Member Avatar for tripwirekse

[code] if (!isset($_REQUEST['action'])) { switch ($_REQUEST['action']) { ... [/code] This is weird. First you test if action IS NOT SET. Next you see which value it has. The answer is: none. You should probably remove the ! (not) from the if statement.

Member Avatar for pritaeas
0
235
Member Avatar for airick10

You want something like this to return more teams ? [code] function teamselect($team) { $selected = array (); $yourteam = mysql_query("SELECT * FROM teams WHERE xid='$team'"); while ($row = mysql_fetch_array($yourteam)) { $selected[] = $row['name']; } return $selected; } [/code]

Member Avatar for pritaeas
0
134
Member Avatar for Awah Mohamed

Personally, I find [url=http://www.hobo-web.co.uk/seo-blog/]this blog[/url] very useful. If you subscribe, you get access to his e-book which contains useful tips. Create a fast website, use decent titles, preferably use titles in your url's. Sign up for webmaster tools (Google, Yahoo) and create/use a sitemap.

Member Avatar for Awah Mohamed
0
116
Member Avatar for showman13
Member Avatar for minimogul

If you want to have a PHP only slideshow, it means that for every action you will have to reload the page. If you use jQuery, then you can respond better to user interaction, and don't have to keep reloading the page. Should you be interested, I have a [url=http://www.pritaeas.net/view/articles/portfolio-with-jquery]simple …

Member Avatar for tiggsy
0
195
Member Avatar for lyrico

[code] $hour = strftime('%H'); // 00-23 if ($hour >= 16) { echo "Can not save record. Time limit has expire"; } else { mysql_query("insert into file(name,age,address) values ('$name','$age','$addr')"); echo "Record Save"; } [/code]

Member Avatar for lyrico
0
189
Member Avatar for tinkee

This is my properties file: [code=text] log4php.rootLogger=ALL, B log4php.appender.B=LoggerAppenderDailyFile log4php.appender.B.file=/log4php_files/B_%s.log log4php.appender.B.layout=LoggerPatternLayout log4php.appender.B.layout.ConversionPattern=%d %-5p %m%n [/code] You can find examples in the [url=http://logging.apache.org/log4php/docs/configuration.html]manual[/url].

Member Avatar for pritaeas
0
131
Member Avatar for Felixchan

Plain PHP is not enough in most cases. Make sure you know (X)HTML, CSS, Javascript, PHP and SQL. Preferably some tools/frameworks too. You need to learn how to debug your code. Writing reusable code is definitely a pre. Designing will be helpful in some cases, especially in small companies. Maybe …

Member Avatar for vinayakgarg
0
191
Member Avatar for bluetoot

How and where is your document stored ? You probably need to query your database, and provide a link to show the content of your document.

Member Avatar for pritaeas
0
176
Member Avatar for webmastercook

1. [url]http://www.edirectory.com/manual/topics/site-manager/transferring-data[/url] 2. eDirectory is probably using a database, so it should be possible to import them directly into it.

Member Avatar for pritaeas
0
60
Member Avatar for amberclaw

Pascal cannot handle type definitions that use a variable. Only constants or types are allowed. You'd need to create a dynamic array. [url]http://rosettacode.org/wiki/Retrieving_an_Element_of_an_Array#Delphi.2FObject_Pascal.2FStandard_Pascal[/url]

Member Avatar for Wolfgan
0
154
Member Avatar for bwallace

Something like this ? [url]http://www.pritaeas.net/public/jquery/partial-text/index.html[/url]

Member Avatar for bwallace
0
117
Member Avatar for iqra123
Member Avatar for Crossbow888

See the help for TCheckBox.Checked and TCheckBox.OnClick. Or see how to use TTimer.

Member Avatar for Wolfgan
0
99
Member Avatar for bob302

Clear out your db credentials and email settings while you still can. Next time, remove them before posting.

Member Avatar for pritaeas
0
78
Member Avatar for nasablast
Member Avatar for kkjay

[code] echo '<table>'; $i = 0; while ($pictures = mysql_fetch_assoc($pictures_result)) { if ($i % 5 == 0) echo '<tr>'; echo "<td><img src='User_Pictures/$pictures[picture_thumb_url]' /></td>"; if ($i % 5 == 4) echo '</tr>'; $i++; } if ($i % 5 > 0) { $i = 5 - ($i % 5); echo "<td colspan='$i'>&nbsp;</td></tr>"; …

Member Avatar for kkjay
0
816
Member Avatar for mushget
Member Avatar for anita_86
Member Avatar for anita_86

[code] $query = mysql_query("SELECT * FROM call_details WHERE !ISNULL(call_project_name)"); echo "<select name='detailr'>"; while($row = mysql_fetch_array($query)) { if (!empty(trim($row['call_project_name']))) { echo "<option value='{$row['call_id']}'>{$row['call_project_name']}</option>"; } } echo "</select>"; [/code]

Member Avatar for pritaeas
0
120
Member Avatar for tcollins412

Are you sure short tags are allowed ? Try switching from [icode]<?[/icode] to [icode]<?php[/icode]

Member Avatar for chrishea
0
385
Member Avatar for bjeffries

uptime is probably a column in both tables, so you have to specify which one you mean.

Member Avatar for bjeffries
0
93
Member Avatar for hariharans87

Something like this I think, but I have no way of testing. [code] type TBlock: array [0..63] of Byte; PBlock: ^TBlock; var send_buf: PBlock; receive_bug: PBlock; RecvLength: Longint; begin GetMem(send_buf, SizeOf(TBlock)); GetMem(receive_buf, SizeOf(TBlock)); RecvLength := 3; send_buf[0] = $32; send_buf[1] = (Byte)led; if State then send_buf[2] = 1 else send_buf[2] …

Member Avatar for pritaeas
0
180
Member Avatar for AliHurworth
Member Avatar for AliHurworth
0
259
Member Avatar for soft_coder

You have 3 jquery scripts and 2 jquery-ui scripts included. You just need one of each, preferably the latest version. You should show your HTML too.

Member Avatar for soft_coder
0
152
Member Avatar for MDanz

It should be [icode]$grade <= 80[/icode] but that is not the reason that the page doesn't work. Try putting this at the top of your page [icode]error_reporting(E_ALL);[/icode]

Member Avatar for pritaeas
0
58
Member Avatar for tcollins412
Re: help

Just run a query to update them: [code=sql] UPDATE table SET password_column = MD5(password_column) [/code] Don't forget to backup first, just in case...

Member Avatar for diafol
0
197
Member Avatar for Rohlik
Member Avatar for pritaeas
0
137
Member Avatar for TheIdiot
Member Avatar for shinsengumi
Member Avatar for supahoopsa

The runat server messes up your id iirc. Use developer tools to see it when the page is loaded. Try using a class instead of an id, as they are unaffected.

Member Avatar for pritaeas
0
79
Member Avatar for MysticalNomad

Although I do not recommend it, [url=http://php.net/eval]eval[/url] is an option. A better option would be to use mysqli with prepared statements. The trouble is however, knowing which query uses which parameters. Of course stored procedures are another option, but poses the same parameter issue.

Member Avatar for pritaeas
0
110
Member Avatar for public-image

[code] RewriteRule ^site/profiles/(.*)$ site/profile.php?username=$1 [/code]

Member Avatar for public-image
0
76

The End.