492 Posted Topics
Re: I noticed that recently too :) Saved me typing another 4 characters each time :D | |
Re: [QUOTE=evstevemd;1033042]I see, Can you help me point out method names that you see will prevent reuse? I see that I should change all login prompts may be to use XML (is that what you said?). But I'm afraid I might forget some. So pointing methods that need to be removed/changed … | |
Re: You can see your topics here: [url]http://www.daniweb.com/forums/search.php?do=process&userid=191738&exactname=1&starteronly=1[/url] And you can see your posts on this link: [url]http://www.daniweb.com/forums/finduser191738.html[/url] | |
Re: Why not use the RAND function of MySQL? [code] $query = "SELECT * FROM tbl_admin WHERE id=5 ORDER BY RAND(); [/code] Also, if you only want one image at a time, you should add [icode]LIMIT 1[/icode] to the end of the query. | |
Re: Do you mean delete in an SQL query, or a unlink to delete files? | |
Re: Take a look at the GD library: [url]http://www.libgd.org/Main_Page[/url] | |
Re: 1. Please use [noparse][code][/code][/noparse] tags to post your code. 2. Tell us what the problem is, I for one would not want to read your code and then guess at the problem. | |
Re: If you want to use preg functions, then this should work to match strings containing alphanumeric characters and spaces: [code] $pattern = '#^[a-z0-9\x20]+$#i'; if (preg_match($pattern, $new_pagealias)) $error = "Invalid page alias. Use only normal characters."; [/code] | |
Re: I do not use my iPhone as an alarm, it doesn't work, I fall back asleep, I do use a Clocky though (Google explains) as this is much more efficient in waking me... | |
Re: [QUOTE=kolibrizas;1037083][CODE]<?=$delay?>[/CODE] look at this place and similar ones what i can say (maybe I am not experienced in such things), but if you say this is php, then I think it is quite a bad code here. I think [/QUOTE] That is an acceptable way to echo a variable within … | |
Re: Does it do anything? Do you get a blank screen, an error? | |
Re: [QUOTE=network18;1036557]yes, its cool too, but the process by ajax will be done in the backend. page won't refresh while sending the mail.[/QUOTE] Reread the first post and the title. The OP wants a mailto link, not a PHP mail() function. | |
Re: An explode would be the quickest/easiest way to do this. [code] $liArray = explode("</li>", $string); foreach($liArray as $key => $value) { // $value will contain the li string, do something with it here. } [/code] | |
Re: It has been fairly slow. No doubt it is being looked into though :) | |
Re: You can specify BCC addresses in the mail function, but that way would not allow you to send personalised emails.. As far as I am aware, mail would be the best way to do this. | |
Re: Did you even read the 'Read Me' topic at the top of the forum list? [url]http://www.daniweb.com/forums/thread191031.html[/url] | |
Re: [QUOTE=HITMANOF44th;1034515][code=php]session_start(); if ($_SESSION["user_type"]) { Echo " i am a admin "; }[/code][/QUOTE] All that will do is check if $_SESSION['user_type'] has been assigned a value.. If there are more user levels added in the future, this could possibly allow any logged in user to access the admin page. Assign a … | |
![]() | Re: Paypal has a whole section of their website dedicated to this subject, along with their own support forums. You will probably get all the info you need there :) |
Re: [QUOTE=ardav;1033547][CODE]$data = mysqli_query($dbc, $query);[/CODE] Should this be: [CODE]$data = mysqli_query($query, $dbc);[/CODE] Having not used mysqli - I can't comment, but I think the first parameter should be the query, then the connection link identifier.[/QUOTE] Nope, for some reason they swapped them for mysqli, although if no connection is specified, it … | |
Re: Rugby is quite popular in the UK, I'd say probably less popular than Football (Soccer as america calls it) but its still quite big. I have seen your American Football, and I prefer Rugby :) | |
Re: As Atli says, Blowfish is an encryption cipher, not a hashing algorithm. It is in the mcrypt library ([url]http://php.net/manual/en/book.mcrypt.php[/url]) There was a whole thread a while back discussing passwords and some good methods. I'll see if I can find it... EDIT: Thread is here: [url]http://www.daniweb.com/forums/showthread.php?t=178241[/url] | |
It seems the search function on the site is broken. If I enter a phrase in the search box, it does return results. However, leave the box blank and click search to get the advanced options, and no matter what I put in, it came up with 'Sorry - no … | |
Re: Instead of this: [code] if($_POST['form1'].submit) [/code] Try this: [code] if(isset($_POST['submit_button_id'])) [/code] Replace 'submit_button_id' with the ID of the submit button. | |
Re: As ardav said, you will need to use the API: [url]http://rapidshare.com/dev.html[/url] ![]() | |
So, anyone else watch this? I am rather annoyed with one groups continued success so far, especially after they killed a Queen classic last night :( | |
Re: To add an item to an array, do this: [code] $array_name[] = 'Value'; [/code] Then to print out the entire array: [code] foreach($array_name as $key => $value) { echo $value . "<br />"; } [/code] If that is not what you want then post an example of your code. | |
Re: This should work, but I have not tested it, just call deleteDir with the directory you want to remove. [code] <? function deleteDir($dir) { if(is_dir($dir)) { $dir_handle = opendir($dir); while($entry = readdir($dir)) { if ($entry!= "." && $entry!= "..") { unlink($entry); } } } closedir($dir); rmdir($dir); } ?> [/code] | |
Re: You cannot use AJAX if JavaScript is disabled. Always try to write your code for non-JavaScript clients and then add AJAX afterwords. AJAX should be used to enhance the page, it should not be the core of it. | |
Re: Remove the spaces between the %s and the value. If the user entered 'Google' then the search query would look like: [code] $query = "SELECT * FROM products WHERE artist LIKE '% Google %'"; [/code] This would return values where the products column had an entry of 'something Google something' | |
Re: Why so many opening and closing tags for PHP? Get rid of all the unneeded tags, indent your code and missing braces will be more easy to spot. | |
Re: You will needs a system such as MySQL installed on the server, in most cases you will not be able to do this. Your host will need to install this for you. That being said, alot of hosts do include PHP and MySQL as a bundle, contact them to see … | |
Re: You can avoid this problem by using a statement similar to CFROGs suggestion. Make sure all fields have a default value, or are allowed to be NULL. Also, please look at your code, this can probably be reduced by 50% (in terms of the number of lines) due to a … | |
Re: Search online for registration scripts, there are lots of them. We will not write your code for you, go research it and ask specific questions when something doesn't work. Use code tags, its easy. Highlight the code and click the Code button... Also, why the hell do you have a … | |
Re: Use % values for all element width/heights. Use EM for text. Never specify Pixel ot Pt values. | |
Re: Post an example of the code you have already. | |
Re: Remove the linebreak after the comment on line 17. Also, try to put all comments on the line above the code they describe to make reading easier and to prevent syntax errors like this one. | |
Re: +1, but as far as I am aware, it is not available in the UK yet for anyone :( | |
Re: The only PHP code I can find in your post is this on line 777: [icode]<? echo $rows['no_matrik']; ?>[/icode] Please post what the problem is, as well as the relevant code. | |
Re: This would probably be better asked in the Javascript forum: [url]http://www.daniweb.com/forums/forum117.html[/url] | |
Re: Simply remove all < and > characters, htmlspecialchars should do this though: [code] str_replace(array("<", ">"), array("<", ">"), $string) [/code] | |
Re: Again, off topic, but I think he is trying to get help for [url=http://www.daniweb.com/forums/thread230007.html]this[/url] still :P ![]() | |
Re: [QUOTE=evstevemd;1022460][COLOR="Red"]seperate views from the actual code.[/COLOR] -->Please explain here what you mean [/QUOTE] Basically, when you code, you cannot do this: [code] <?php // php code here ?> <html tag="something"> <?php // More php code ?> [/code] You would need to have your logic (PHP) in a file when then … | |
Re: Cron jobs :) [url]http://www.adminschoice.com/docs/crontab.htm[/url] | |
Re: [QUOTE=William Hemsworth;1018795]Why thanks :) I'll be getting this camera soon [URL="http://www.amazon.co.uk/Canon-Digital-Camera-incl-18-55/dp/B0020MLKF0/ref=sr_1_1?ie=UTF8&s=electronics&qid=1255800048&sr=1-1"][link][/URL], I can't wait. Those pictures were taken with my awful Samsung S570, it will be nice to use a [I]real[/I] camera for once.[/QUOTE] That is an expensive camera :-O Pics do look really good though :) | |
Re: A database would be more secure. If your PHP compiler stopped working for any reason, your PHP code yould be displayed as plain text, meaning that your password would be visible. However, if you have it in a database and the compiler stops working, then the user will not see … | |
| |
Re: URL Rewriting is what you want. Your PHP script can stay the same, it can still get passed the Query String, all rewriting does is change how the user sees the URL in this case. A Google of URL Rewrite will give you a multitude of guides :) | |
Re: [code]$q= "select * from supplier_report where report_value='" .$_SESSION['reportTotal']."'" "order by report_value desc";[/code] Why do you have " " after the value? This should be: [code] $q= "select * from supplier_report where report_value='" .$_SESSION['reportTotal']."' order by report_value desc"; [/code] |
The End.