Forum: DaniWeb Community Feedback 1 Day Ago |
| Replies: 4 Views: 127 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 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 Take a look at the GD library: http://www.libgd.org/Main_Page |
Forum: PHP 1 Day Ago |
| Replies: 1 Views: 92 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 Post up the actual code you are using at the moment. |
Forum: Geeks' Lounge 2 Days Ago |
| Replies: 667 Views: 73,221 |
Forum: PHP 2 Days Ago |
| Replies: 5 Views: 108 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 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 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 Rather funny :D Pointless, but funny... |
Forum: DaniWeb Community Feedback 3 Days Ago |
| Replies: 7 Views: 179 Haha, no I didn't notice that, but now you pint it out I do :) |
Forum: PHP 3 Days Ago |
| Replies: 11 Views: 237 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 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 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 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 It has been fairly slow.
No doubt it is being looked into though :) |
Forum: PHP 4 Days Ago |
| Replies: 8 Views: 187 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 Search Google, it has the answers. (http://lmgtfy.com/?q=xls+to+csv+php) |
Forum: PHP 5 Days Ago |
| Replies: 42 Views: 754 Do you mean delete in an SQL query, or a unlink to delete files? |
Forum: PHP 5 Days Ago |
| Replies: 7 Views: 197 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 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 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 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 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 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 Good to see you are on top of things :) |
Forum: PHP 6 Days Ago |
| Replies: 4 Views: 142 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 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 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 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 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 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 |
Forum: PHP 6 Days Ago |
| Replies: 4 Views: 186 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 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 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 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 Does it do anything?
Do you get a blank screen, an error? |
Forum: DaniWeb Community Feedback 6 Days Ago |
| Replies: 90 Views: 4,740 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 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 />";
} |