Search Results

Showing results 1 to 40 of 510
Search took 0.03 seconds.
Search: Posts Made By: Will Gresham
Forum: DaniWeb Community Feedback 1 Day Ago
Replies: 4
Views: 127
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 1 Day Ago
Replies: 3
Views: 98
Posted By Will Gresham
You need to replace 'your_username' and 'your_password' with the username and password for the MySQL database.
Forum: PHP 1 Day Ago
Replies: 2
Views: 78
Posted By Will Gresham
Take a look at the GD library: http://www.libgd.org/Main_Page
Forum: PHP 1 Day Ago
Replies: 1
Views: 92
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 1 Day Ago
Replies: 3
Views: 163
Posted By Will Gresham
Post up the actual code you are using at the moment.
Forum: Geeks' Lounge 2 Days Ago
Replies: 667
Views: 73,221
Posted By Will Gresham
:-O That is a huge ship!
Forum: PHP 2 Days Ago
Replies: 5
Views: 108
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 3 Days Ago
Replies: 7
Views: 113
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 3 Days Ago
Replies: 4
Views: 114
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 3 Days Ago
Replies: 5
Views: 190
Posted By Will Gresham
Rather funny :D Pointless, but funny...
Forum: DaniWeb Community Feedback 3 Days Ago
Replies: 7
Views: 179
Posted By Will Gresham
Haha, no I didn't notice that, but now you pint it out I do :)
Forum: PHP 3 Days Ago
Replies: 11
Solved: php code error
Views: 237
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 3 Days Ago
Replies: 7
Views: 113
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 3 Days Ago
Replies: 41
Views: 1,040
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 4 Days Ago
Replies: 42
Views: 754
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 4 Days Ago
Replies: 7
Views: 179
Posted By Will Gresham
It has been fairly slow.

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

The OP wants a mailto link, not a PHP mail() function.
Forum: PHP 5 Days Ago
Replies: 2
Views: 102
Posted By Will Gresham
Search Google, it has the answers. (http://lmgtfy.com/?q=xls+to+csv+php)
Forum: PHP 5 Days Ago
Replies: 42
Views: 754
Posted By Will Gresham
Do you mean delete in an SQL query, or a unlink to delete files?
Forum: PHP 5 Days Ago
Replies: 7
Views: 197
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 5 Days Ago
Replies: 16
Views: 232
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 5 Days Ago
Replies: 7
Views: 197
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 6 Days Ago
Replies: 90
Views: 4,740
Posted By Will Gresham
Hm, the online users seems to be back now for thread views :)

Really is useful!
Forum: Geeks' Lounge 6 Days Ago
Replies: 41
Views: 1,040
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 6 Days Ago
Replies: 5
Views: 268
Posted By Will Gresham
I noticed that recently too :)

Saved me typing another 4 characters each time :D
Forum: DaniWeb Community Feedback 6 Days Ago
Replies: 2
Views: 191
Posted By Will Gresham
Good to see you are on top of things :)
Forum: PHP 6 Days Ago
Replies: 4
Views: 142
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 6 Days Ago
Replies: 13
Views: 342
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 6 Days Ago
Replies: 3
Views: 171
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 6 Days Ago
Replies: 2
Views: 191
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 6 Days Ago
Replies: 13
Views: 342
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 6 Days Ago
Replies: 13
Views: 342
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. :)...
Forum: Geeks' Lounge 6 Days Ago
Replies: 1,361
Views: 143,093
Posted By Will Gresham
Pizza :)
Forum: PHP 6 Days Ago
Replies: 4
Views: 186
Posted By Will Gresham
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 :)
Forum: Geeks' Lounge 6 Days Ago
Replies: 0
Views: 112
Posted By 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 :(
Forum: DaniWeb Community Feedback 6 Days Ago
Replies: 90
Views: 4,740
Posted By Will Gresham
Ah, seems Dani's last tweet addresses the lack of online users:


Though, surely there would be a less resource hungry way to do it...
Forum: HTML and CSS 6 Days Ago
Replies: 9
Views: 205
Posted By Will Gresham
You would probably be better asking this in the HTML/CSS forum: http://www.daniweb.com/forums/forum143.html
Forum: PHP 6 Days Ago
Replies: 30
Views: 589
Posted By Will Gresham
Does it do anything?

Do you get a blank screen, an error?
Forum: DaniWeb Community Feedback 6 Days Ago
Replies: 90
Views: 4,740
Posted By Will Gresham
Is it just me, or has the 'Whos online' block disappeared from the end of the page as well?
Forum: PHP 6 Days Ago
Replies: 2
Views: 158
Posted By Will Gresham
To add an item to an array, do this:

$array_name[] = 'Value';


Then to print out the entire array:

foreach($array_name as $key => $value) {
echo $value . "<br />";
}
Showing results 1 to 40 of 510

 


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

©2003 - 2009 DaniWeb® LLC