Forum: PHP 12 Hours Ago |
| Replies: 1 Views: 80 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 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 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 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 Have to wonder why this guy bothers coming back :D |
Forum: PHP 10 Days Ago |
| Replies: 4 Views: 251 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 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 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 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 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 Take a look at the GD library: http://www.libgd.org/Main_Page |
Forum: PHP 15 Days Ago |
| Replies: 1 Views: 166 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 Post up the actual code you are using at the moment. |
Forum: Geeks' Lounge 15 Days Ago |
| Replies: 672 Views: 75,089 |
Forum: PHP 16 Days Ago |
| Replies: 5 Views: 265 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 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 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 Rather funny :D Pointless, but funny... |
Forum: DaniWeb Community Feedback 16 Days Ago |
| Replies: 7 Views: 438 Haha, no I didn't notice that, but now you pint it out I do :) |
Forum: PHP 16 Days Ago |
| Replies: 11 Views: 363 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 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 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 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 It has been fairly slow.
No doubt it is being looked into though :) |
Forum: PHP 17 Days Ago |
| Replies: 8 Views: 341 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 Search Google, it has the answers. (http://lmgtfy.com/?q=xls+to+csv+php) |
Forum: PHP 18 Days Ago |
| Replies: 42 Views: 1,244 Do you mean delete in an SQL query, or a unlink to delete files? |
Forum: PHP 18 Days Ago |
| Replies: 7 Views: 253 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 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 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 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 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 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 Good to see you are on top of things :) |
Forum: PHP 19 Days Ago |
| Replies: 4 Views: 222 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 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 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 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 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 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. :)... |