Forum: PHP 14 Days Ago |
| Replies: 2 Views: 305 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 24 Days Ago |
| Replies: 4 Views: 415 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 31 Days Ago |
| Replies: 4 Views: 225 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 31 Days Ago |
| Replies: 11 Views: 407 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 31 Days Ago |
| Replies: 7 Views: 235 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 31 Days Ago |
| Replies: 42 Views: 1,398 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 31 Days Ago |
| Replies: 8 Views: 410 Reread the first post and the title.
The OP wants a mailto link, not a PHP mail() function. |
Forum: PHP 32 Days Ago |
| Replies: 42 Views: 1,398 Do you mean delete in an SQL query, or a unlink to delete files? |
Forum: PHP 34 Days Ago |
| Replies: 4 Views: 281 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 34 Days Ago |
| Replies: 13 Views: 502 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 34 Days Ago |
| Replies: 13 Views: 502 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 34 Days Ago |
| Replies: 13 Views: 502 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 34 Days Ago |
| Replies: 4 Views: 406 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 34 Days Ago |
| Replies: 30 Views: 1,274 Does it do anything?
Do you get a blank screen, an error? |
Forum: PHP 34 Days Ago |
| Replies: 5 Views: 284 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: 284 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 22nd, 2009 |
| Replies: 2 Views: 151 Cron jobs :)
http://www.adminschoice.com/docs/crontab.htm |
Forum: PHP Oct 21st, 2009 |
| Replies: 8 Views: 291 I am going to disagree with your reasons for using sessions over cookies, although Sessions are more secure in themselves:
This can also be done with Cookies, you can set the time they expire.
I... |
Forum: PHP Oct 20th, 2009 |
| Replies: 8 Views: 291 A database would be more secure.
If your PHP compiler stopped working for any reason, your PHP code yould be displayed as plain text, meaning that your password would be visible.
However, if... |
Forum: PHP Oct 20th, 2009 |
| Replies: 3 Views: 807 Post an example of the code you have already. |
Forum: PHP Oct 18th, 2009 |
| Replies: 4 Views: 269 Do you mean double as in it echos 1.15 or it displays 0.575 twice? |
Forum: PHP Oct 18th, 2009 |
| Replies: 4 Views: 267 You only need one = on your mysql_connect statement. |
Forum: PHP Oct 15th, 2009 |
| Replies: 2 Views: 251 Use a while statement, like:
$query = mysql_query(query here...);
while($result = mysql_fetch_assoc( $query )) {
echo "<tr><td>{$result['column_title']}</td></tr>"
}
That will output... |
Forum: PHP Oct 15th, 2009 |
| Replies: 5 Views: 252 Try this:
$q6 = "SELECT * FROM banners WHERE lang='{$_SESSION['lang']}' AND section='top' ORDER BY RAND() LIMIT 1"; |
Forum: PHP Oct 13th, 2009 |
| Replies: 5 Views: 513 Your problem will be this line:
<form action='manager_employee_select.php?proc_employee_id=<?php echo $_POST['proc_employee_id']; ?>' method="POST">
This will put the proc_employee_id from the... |
Forum: PHP Oct 8th, 2009 |
| Replies: 4 Views: 221 What parse error?
It will usually give you something to go by, e.g. 'expecting x' or 'unexpected x' |
Forum: PHP Oct 8th, 2009 |
| Replies: 15 Views: 529 In delete.php do you actually have a mysql_connect statement?
From your code it would seem not... |
Forum: PHP Oct 7th, 2009 |
| Replies: 3 Views: 297 Since HTML is client side, it cannot directly access a PHP script, so you will need to send a request to a PHP script on your server, which can be done either by reloading the page, sending the... |
Forum: PHP Sep 25th, 2009 |
| Replies: 5 Views: 718 Take a look at this line:
echo "<a href 'stats.php'>$fname</a>";
You are missing the = on href. |
Forum: PHP Sep 10th, 2009 |
| Replies: 3 Views: 250 Either the password you are using is wrong, or there is no permission for user 'admin' on local machine to access the database.
Check your username/password for the DB and also check the user has... |
Forum: PHP Sep 9th, 2009 |
| Replies: 4 Views: 522 Look at your value attribute,:
value = <?php echo $_SESSION["namevalue"]; ?> />
This should be:
value="<?php echo $_SESSION["namevalue"]; ?>" /> |
Forum: PHP Sep 5th, 2009 |
| Replies: 4 Views: 350 First, I would not suggest taking POST variables (or $_GET or $_REQUEST etc..) and put them straight into sessions for use later, I would suggest you look into checking/sanitizing the results to... |
Forum: PHP Sep 1st, 2009 |
| Replies: 6 Views: 355 Can you post your actual code, as what you have posted will not work - this is not correct PHP syntax. |
Forum: PHP Jun 23rd, 2009 |
| Replies: 11 Views: 495 Do you have more than one SQL query?
In an error, MySQL will echo the query, but in the error you posted the ip and adid values are swapped.
I can't see anything wrong with your code there. |
Forum: PHP May 20th, 2009 |
| Replies: 13 Views: 491 If you want to run in once a day, then that would be fine, if you are on a Linux server, a Cron job would be best. |
Forum: PHP May 20th, 2009 |
| Replies: 13 Views: 491 Rather than
$message .= "Today's Calendar Events Reminder: $title\r\n";
Just put
$message .= "$title\r\n";
Then before use mail() put: |
Forum: PHP May 20th, 2009 |
| Replies: 13 Views: 491 When you assign a value to $message, use .= rather than just =, this will append the text to the end of the current value. You may also want to put an \r\n onto the end of the string to add a new... |
Forum: PHP May 20th, 2009 |
| Replies: 13 Views: 491 It should be
$query = "SELECT * FROM pec_mssgs WHERE m=$todaysMonth AND d=$todaysDay AND y=$todaysYear";
Edit: Ezzaral beat me to it :) |
Forum: PHP May 20th, 2009 |
| Replies: 7 Views: 282 Try replacing (!$sqlStr==... with ($sqlStr != ... |
Forum: PHP May 20th, 2009 |
| Replies: 3 Views: 877 I am not sure I understand exactly what you are trying to do here, but surely passing a table name in the URL is a very bad idea.
Isn't the reason that SQL errors should be suppressed in... |