Forum: PHP 26 Days Ago |
| Replies: 2 Views: 365 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 26 Days Ago |
| Replies: 2 Views: 285 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 26 Days Ago |
| Replies: 2 Views: 293 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: PHP Nov 11th, 2009 |
| Replies: 4 Views: 522 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 Nov 11th, 2009 |
| Replies: 4 Views: 221 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 Nov 11th, 2009 |
| Replies: 4 Views: 444 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: PHP Nov 6th, 2009 |
| Replies: 4 Views: 320 You need to replace 'your_username' and 'your_password' with the username and password for the MySQL database. |
Forum: PHP Nov 6th, 2009 |
| Replies: 2 Views: 191 Take a look at the GD library: http://www.libgd.org/Main_Page |
Forum: PHP Nov 6th, 2009 |
| Replies: 1 Views: 229 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 Nov 6th, 2009 |
| Replies: 3 Views: 312 Post up the actual code you are using at the moment. |
Forum: PHP Nov 5th, 2009 |
| Replies: 5 Views: 441 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 Nov 4th, 2009 |
| Replies: 7 Views: 267 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 Nov 4th, 2009 |
| Replies: 4 Views: 243 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: PHP Nov 4th, 2009 |
| Replies: 11 Views: 427 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 Nov 4th, 2009 |
| Replies: 7 Views: 267 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: PHP Nov 4th, 2009 |
| Replies: 42 Views: 1,434 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: PHP Nov 4th, 2009 |
| Replies: 8 Views: 444 Reread the first post and the title.
The OP wants a mailto link, not a PHP mail() function. |
Forum: PHP Nov 3rd, 2009 |
| Replies: 2 Views: 343 Search Google, it has the answers. (http://lmgtfy.com/?q=xls+to+csv+php) |
Forum: PHP Nov 3rd, 2009 |
| Replies: 42 Views: 1,434 Do you mean delete in an SQL query, or a unlink to delete files? |
Forum: PHP Nov 3rd, 2009 |
| Replies: 7 Views: 319 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 Nov 3rd, 2009 |
| Replies: 27 Views: 902 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 Nov 2nd, 2009 |
| Replies: 7 Views: 319 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: PHP Nov 1st, 2009 |
| Replies: 4 Views: 289 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 Nov 1st, 2009 |
| Replies: 13 Views: 533 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 Nov 1st, 2009 |
| Replies: 3 Views: 225 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: PHP Nov 1st, 2009 |
| Replies: 13 Views: 533 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 Nov 1st, 2009 |
| Replies: 13 Views: 533 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: PHP Nov 1st, 2009 |
| Replies: 4 Views: 493 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: PHP Nov 1st, 2009 |
| Replies: 30 Views: 1,317 Does it do anything?
Do you get a blank screen, an error? |
Forum: PHP Nov 1st, 2009 |
| Replies: 2 Views: 545 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 />";
} |
Forum: PHP Nov 1st, 2009 |
| Replies: 4 Views: 266 As ardav said, you will need to use the API:
http://rapidshare.com/dev.html |
Forum: PHP Nov 1st, 2009 |
| Replies: 16 Views: 536 AJAX is JavaScript.
The easiest way to implement it would be using a library, such as jQuery or the scriptaculous ones.
Be aware that 'AJAX' requires JavaScript to be available, so design your... |
Forum: PHP Nov 1st, 2009 |
| Replies: 5 Views: 291 The error you are getting tells you exactly what the problem is.
The problem is that the 'supplied argument is not a valid MySQL result resource'.
If you re-read the topic I linked to, you will... |
Forum: PHP Oct 31st, 2009 |
| Replies: 5 Views: 291 Did you even read the 'Read Me' topic at the top of the forum list?
http://www.daniweb.com/forums/thread191031.html |
Forum: PHP Oct 30th, 2009 |
| Replies: 3 Views: 312 If you want to use preg functions, then this should work to match strings containing alphanumeric characters and spaces:
$pattern = '#^[a-z0-9\x20]+$#i';
if (preg_match($pattern, $new_pagealias))... |
Forum: PHP Oct 28th, 2009 |
| Replies: 4 Views: 246 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. |
Forum: PHP Oct 28th, 2009 |
| Replies: 3 Views: 225 Instead of this:
if($_POST['form1'].submit)
Try this:
if(isset($_POST['submit_button_id']))
Replace 'submit_button_id' with the ID of the submit button. |
Forum: PHP Oct 28th, 2009 |
| Replies: 5 Views: 194 Talk to the people who own the server. |
Forum: PHP Oct 28th, 2009 |
| Replies: 5 Views: 194 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... |
Forum: PHP Oct 28th, 2009 |
| Replies: 3 Views: 224 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... |