Search Results

Showing results 1 to 40 of 518
Search took 0.03 seconds.
Search: Posts Made By: Will Gresham
Forum: PHP 12 Hours Ago
Replies: 1
Views: 80
Posted By Will Gresham
I cannot see a call to the mail_it function in the code you posted, but what you will need to do is change the $recipient value that is being sent to the mail_it function depending on which option is...
Forum: PHP 12 Hours Ago
Replies: 1
Views: 69
Posted By Will Gresham
There are many scripts available free that offer what you are looking for.

Search before you post (http://lmgtfy.com/?q=php+messaging+system)
Forum: PHP 12 Hours Ago
Replies: 1
Views: 84
Posted By Will Gresham
Do you have a link to an example of what you want to achieve? Your description is very vague.

Even better, post the code you already have as well as a link.
Forum: Geeks' Lounge 14 Hours Ago
Replies: 14
Views: 215
Posted By Will Gresham
Favourite movie of all time is a toss up between Back To The Future and LOTR (Return of the King)
Forum: Geeks' Lounge 5 Days Ago
Replies: 19
Views: 417
Posted By Will Gresham
Have to wonder why this guy bothers coming back :D
Forum: PHP 10 Days Ago
Replies: 4
Views: 251
Posted By Will Gresham
When referencing vars, you do not need a second $ :

$this->$servername = $server;
Would become

$this->servername = $server;

@tmash
The whole idea of Object Orientated programming is to...
Forum: PHP 10 Days Ago
Replies: 4
Views: 160
Posted By Will Gresham
If it uses MySQL, then in all probibility you can do what you want to.

However, I have not used this before and have not seen the source code, without this I cannot suggest what to modify.

Have...
Forum: PHP 10 Days Ago
Replies: 4
Views: 297
Posted By Will Gresham
Post up the code you are using at the moment for specific information/help.

It is likely that the database queries are wrong, probably the script is looking for columns you do not have if you are...
Forum: DaniWeb Community Feedback 14 Days Ago
Replies: 4
Views: 400
Posted By Will Gresham
You can see your topics here: http://www.daniweb.com/forums/search.php?do=process&userid=191738&exactname=1&starteronly=1

And you can see your posts on this link:...
Forum: PHP 14 Days Ago
Replies: 4
Views: 247
Posted By Will Gresham
You need to replace 'your_username' and 'your_password' with the username and password for the MySQL database.
Forum: PHP 14 Days Ago
Replies: 2
Views: 140
Posted By Will Gresham
Take a look at the GD library: http://www.libgd.org/Main_Page
Forum: PHP 15 Days Ago
Replies: 1
Views: 166
Posted By Will Gresham
1. Please use 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.
Forum: PHP 15 Days Ago
Replies: 3
Views: 253
Posted By Will Gresham
Post up the actual code you are using at the moment.
Forum: Geeks' Lounge 15 Days Ago
Replies: 672
Views: 75,089
Posted By Will Gresham
:-O That is a huge ship!
Forum: PHP 16 Days Ago
Replies: 5
Views: 265
Posted By Will Gresham
Why not use the RAND function of MySQL?

$query = "SELECT * FROM tbl_admin WHERE id=5 ORDER BY RAND();

Also, if you only want one image at a time, you should add LIMIT 1 to the end of the query.
Forum: PHP 16 Days Ago
Replies: 7
Views: 184
Posted By Will Gresham
Use array_pop to remove the last index from the array:

$liArray = explode("</li>", $string);
// $liArray_pop will contain the last index of $liArray, $liArray will be missing the final index...
Forum: PHP 16 Days Ago
Replies: 4
Views: 187
Posted By Will Gresham
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.
Forum: Geeks' Lounge 16 Days Ago
Replies: 5
Views: 413
Posted By Will Gresham
Rather funny :D Pointless, but funny...
Forum: DaniWeb Community Feedback 16 Days Ago
Replies: 7
Views: 438
Posted By Will Gresham
Haha, no I didn't notice that, but now you pint it out I do :)
Forum: PHP 16 Days Ago
Replies: 11
Solved: php code error
Views: 363
Posted By Will Gresham
That is an acceptable way to echo a variable within HTML code,

The problem is this line (Line 61):

<td><input type=text name=site value="<?=get_setting("site") size="20"?>" size=30></td></tr>
...
Forum: PHP 16 Days Ago
Replies: 7
Views: 184
Posted By Will Gresham
An explode would be the quickest/easiest way to do this.

$liArray = explode("</li>", $string);

foreach($liArray as $key => $value) {
// $value will contain the li string, do something with...
Forum: Geeks' Lounge 17 Days Ago
Replies: 50
Views: 2,222
Posted By Will Gresham
I am still without Windows 7 on my PC...

Only just got an email from the upgrade people saying the CD was shipped today... almost 2 weeks after the release and it has only just shipped :(
Forum: PHP 17 Days Ago
Replies: 42
Views: 1,244
Posted By Will Gresham
Please use code tags, it makes it easier to read your code.

Also, the code on the first page has a Delete statement, the code above does not. Which code are you using at the moment?
Forum: DaniWeb Community Feedback 17 Days Ago
Replies: 7
Views: 438
Posted By Will Gresham
It has been fairly slow.

No doubt it is being looked into though :)
Forum: PHP 17 Days Ago
Replies: 8
Views: 341
Posted By Will Gresham
Reread the first post and the title.

The OP wants a mailto link, not a PHP mail() function.
Forum: PHP 18 Days Ago
Replies: 2
Views: 211
Posted By Will Gresham
Search Google, it has the answers. (http://lmgtfy.com/?q=xls+to+csv+php)
Forum: PHP 18 Days Ago
Replies: 42
Views: 1,244
Posted By Will Gresham
Do you mean delete in an SQL query, or a unlink to delete files?
Forum: PHP 18 Days Ago
Replies: 7
Views: 253
Posted By Will Gresham
The database is not what matters here.

You will either need to make new scripts for the Admin and check within them if the user should have access (By querying the database for the users...
Forum: PHP 18 Days Ago
Replies: 17
Views: 386
Posted By Will Gresham
Surely pagination without a limit would not be pagination...

The limit is there to specify how many results are retreived, without it all records would be pulled on each query.
Forum: PHP 18 Days Ago
Replies: 7
Views: 253
Posted By Will Gresham
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...
Forum: DaniWeb Community Feedback 19 Days Ago
Replies: 91
Views: 6,118
Posted By Will Gresham
Hm, the online users seems to be back now for thread views :)

Really is useful!
Forum: Geeks' Lounge 19 Days Ago
Replies: 50
Views: 2,222
Posted By Will Gresham
Each to their own ;)

I prefer having a large screen so I can see my code without squinting :D

Although the price on them is tempting... My PC cost me £600, and the screen a further £100, so...
Forum: DaniWeb Community Feedback 19 Days Ago
Replies: 16
Views: 943
Posted By Will Gresham
I noticed that recently too :)

Saved me typing another 4 characters each time :D
Forum: DaniWeb Community Feedback 19 Days Ago
Replies: 2
Views: 416
Posted By Will Gresham
Good to see you are on top of things :)
Forum: PHP 19 Days Ago
Replies: 4
Views: 222
Posted By Will Gresham
As Atli says, Blowfish is an encryption cipher, not a hashing algorithm.
It is in the mcrypt library (http://php.net/manual/en/book.mcrypt.php)

There was a whole thread a while back discussing...
Forum: PHP 19 Days Ago
Replies: 13
Views: 446
Posted By Will Gresham
Do you have phpMyAdmin?

If you do, copy the query from your script and run it directly in there.

You say 'It still didn't work', do you mean it does exactly the same, or are you getting...
Forum: PHP 19 Days Ago
Replies: 3
Views: 202
Posted By Will Gresham
PHP does not reference objects in that way.
$_POST is an array of the objects in the form (Inputs, Buttons, Selects etc..)
$_POST does not reference the form itself, so unless you have a field with...
Forum: DaniWeb Community Feedback 19 Days Ago
Replies: 2
Views: 416
Posted By 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...
Forum: PHP 19 Days Ago
Replies: 13
Views: 446
Posted By Will Gresham
Rather than:

$data = mysqli_query($dbc, $query);

Try this:

if (!$data = mysqli_query($dbc, $query)) {
printf("Error message: %s\n", mysqli_error($dbc));
}
Forum: PHP 19 Days Ago
Replies: 13
Views: 446
Posted By Will Gresham
Nope, for some reason they swapped them for mysqli, although if no connection is specified, it will default to that last connection that was established I believe. :)...
Showing results 1 to 40 of 518

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC