8,966 Posted Topics
Re: [URL="http://blog.boxedice.com/2009/03/21/handling-timezone-conversion-with-php-datetime/"]Here [/URL]is a nice description. | |
Re: 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] | |
Re: [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 … | |
Re: Start with the [URL="http://php.net/ftp"]PHP FTP manual[/URL]. | |
Re: 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 | |
Re: [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. | |
Re: [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"] = … | |
Re: Only, if you let ProgramA pass a specific parameter to ProgramB. But that could be faked manually, so there is no guarantee. | |
Re: 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). | |
Re: 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. | |
Re: If your code does not explicitly close a connection, mysql will keep them in idle state until they time out. | |
![]() | Re: [url]http://sourceforge.net/projects/dir-list/[/url] |
Re: 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. | |
Re: 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" | |
Re: 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. | |
Re: Do you have this page online for us to see ? | |
Re: [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. | |
Re: 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] | |
Re: 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. | |
Re: What do you see when you disable your CSS ? The HTML looks okay. | |
Re: 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 … | |
Re: [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] | |
Re: 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]. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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] | |
Re: Something like this ? [url]http://www.pritaeas.net/public/jquery/partial-text/index.html[/url] | |
Re: See the help for TCheckBox.Checked and TCheckBox.OnClick. Or see how to use TTimer. | |
Re: Clear out your db credentials and email settings while you still can. Next time, remove them before posting. | |
![]() | |
Re: [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'> </td></tr>"; … | |
Re: [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] | |
Re: Are you sure short tags are allowed ? Try switching from [icode]<?[/icode] to [icode]<?php[/icode] | |
Re: uptime is probably a column in both tables, so you have to specify which one you mean. | |
Re: 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] … | |
Re: 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. | |
Re: 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] | |
Re: 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... ![]() | |
Re: [url]http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModRewrite[/url] | |
Re: In the first code you posted, $ticket is never set to a value. | |
Re: Go to services, and set the MySql service to start manually. | |
Re: 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. | |
Re: 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. | |
Re: [code] RewriteRule ^site/profiles/(.*)$ site/profile.php?username=$1 [/code] |
The End.