492 Posted Topics

Member Avatar for BestJewSinceJC

I noticed that recently too :) Saved me typing another 4 characters each time :D

Member Avatar for cwarn23
0
392
Member Avatar for MosaicFuneral
Member Avatar for sneekula
5
302
Member Avatar for Stefano Mtangoo

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

Member Avatar for Stefano Mtangoo
0
444
Member Avatar for ggeoff

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]

Member Avatar for ggeoff
0
178
Member Avatar for sanjaypandit

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.

Member Avatar for network18
0
554
Member Avatar for manishmannan
Member Avatar for manishmannan
0
275
Member Avatar for valonesal

Take a look at the GD library: [url]http://www.libgd.org/Main_Page[/url]

Member Avatar for valonesal
0
116
Member Avatar for Chosen13

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.

Member Avatar for Will Gresham
-3
89
Member Avatar for rokape

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]

Member Avatar for Will Gresham
0
169
Member Avatar for happygeek

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

Member Avatar for iphone develop
1
324
Member Avatar for ez123

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

Member Avatar for ez123
0
141
Member Avatar for AirGear
Member Avatar for AirGear
0
372
Member Avatar for meko22

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

Member Avatar for meko22
0
4K
Member Avatar for verbob

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]

Member Avatar for verbob
0
128
Member Avatar for cwarn23
Member Avatar for BestJewSinceJC
0
221
Member Avatar for violarisgeorge

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.

Member Avatar for violarisgeorge
0
153
Member Avatar for Maged Media

Did you even read the 'Read Me' topic at the top of the forum list? [url]http://www.daniweb.com/forums/thread191031.html[/url]

Member Avatar for Maged Media
0
167
Member Avatar for SuntechWebsites

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

Member Avatar for foxwizzy
0
149
Member Avatar for Eman84

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

Member Avatar for liamfriel
0
210
Member Avatar for phouse512

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

Member Avatar for phouse512
0
233
Member Avatar for tygerberg

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

Member Avatar for GrimJack
0
180
Member Avatar for samarudge

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]

Member Avatar for digital-ether
0
175
Member Avatar for Will Gresham

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 …

Member Avatar for Will Gresham
0
185
Member Avatar for coder4Ever

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.

Member Avatar for Will Gresham
0
84
Member Avatar for FrozenSnake
Member Avatar for sameh7

As ardav said, you will need to use the API: [url]http://rapidshare.com/dev.html[/url]

Member Avatar for diafol
0
124
Member Avatar for Will Gresham

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 :(

0
80
Member Avatar for hemgoyal_1990

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.

Member Avatar for Atli
0
176
Member Avatar for SKANK!!!!!

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]

Member Avatar for SKANK!!!!!
0
146
Member Avatar for dangari

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.

Member Avatar for Airshow
0
183
Member Avatar for Phil++

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'

Member Avatar for liamfriel
0
193
Member Avatar for whitestream6

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.

Member Avatar for network18
0
100
Member Avatar for zhou1919

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 …

Member Avatar for Will Gresham
-1
61
Member Avatar for web3

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 …

Member Avatar for Will Gresham
0
147
Member Avatar for zhou1919

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 …

Member Avatar for zhou1919
-3
394
Member Avatar for lcyew

Use % values for all element width/heights. Use EM for text. Never specify Pixel ot Pt values.

Member Avatar for Will Gresham
0
79
Member Avatar for garcon1986
Member Avatar for stuckinmud

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.

Member Avatar for stuckinmud
0
128
Member Avatar for Duki

+1, but as far as I am aware, it is not available in the UK yet for anyone :(

Member Avatar for Will Gresham
0
48
Member Avatar for unwanted_virus

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.

Member Avatar for Will Gresham
0
103
Member Avatar for AliHurworth

This would probably be better asked in the Javascript forum: [url]http://www.daniweb.com/forums/forum117.html[/url]

Member Avatar for Will Gresham
0
140
Member Avatar for Toxikr3

Simply remove all < and > characters, htmlspecialchars should do this though: [code] str_replace(array("<", ">"), array("&lt;", "&gt;"), $string) [/code]

Member Avatar for Frement
0
108
Member Avatar for perosf

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

Member Avatar for diafol
1
1K
Member Avatar for Stefano Mtangoo

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

Member Avatar for Stefano Mtangoo
0
235
Member Avatar for DemonGal711

Cron jobs :) [url]http://www.adminschoice.com/docs/crontab.htm[/url]

Member Avatar for DemonGal711
0
89
Member Avatar for AndreRet

[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 :)

Member Avatar for William Hemsworth
0
437
Member Avatar for ultras1

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 …

Member Avatar for smartness
0
124
Member Avatar for thebluestar
Member Avatar for poojamakhija
0
89
Member Avatar for OnIIcE

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

Member Avatar for network18
0
98
Member Avatar for just_me

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

Member Avatar for just_me
0
95

The End.