Forum: PHP 16 Days Ago |
| Replies: 2 Views: 313 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 25 Days Ago |
| Replies: 4 Views: 423 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 32 Days Ago |
| Replies: 4 Views: 226 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 32 Days Ago |
| Replies: 11 Views: 408 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 32 Days Ago |
| Replies: 7 Views: 236 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 33 Days Ago |
| Replies: 42 Views: 1,401 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 33 Days Ago |
| Replies: 8 Views: 416 Reread the first post and the title.
The OP wants a mailto link, not a PHP mail() function. |
Forum: PHP 34 Days Ago |
| Replies: 42 Views: 1,401 Do you mean delete in an SQL query, or a unlink to delete files? |
Forum: PHP Nov 1st, 2009 |
| Replies: 4 Views: 282 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: 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 Nov 1st, 2009 |
| 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 Nov 1st, 2009 |
| 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 Nov 1st, 2009 |
| Replies: 4 Views: 418 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: HTML and CSS Nov 1st, 2009 |
| Replies: 13 Views: 677 You would probably be better asking this in the HTML/CSS forum: http://www.daniweb.com/forums/forum143.html |
Forum: PHP Nov 1st, 2009 |
| Replies: 30 Views: 1,279 Does it do anything?
Do you get a blank screen, an error? |
Forum: PHP Nov 1st, 2009 |
| 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: JavaScript / DHTML / AJAX Oct 26th, 2009 |
| Replies: 7 Views: 501 You cannot use AJAX if JavaScript is disabled.
Always try to write your code for non-JavaScript clients and then add AJAX afterwords.
AJAX should be used to enhance the page, it should not be... |
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: 293 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: 293 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: 822 Post an example of the code you have already. |
Forum: PHP Oct 18th, 2009 |
| Replies: 4 Views: 273 Do you mean double as in it echos 1.15 or it displays 0.575 twice? |
Forum: PHP Oct 18th, 2009 |
| Replies: 4 Views: 269 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: 253 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: 521 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: JavaScript / DHTML / AJAX Oct 12th, 2009 |
| Replies: 2 Views: 431 Add this code to the head of your document (Or in an external file if you use one)
<script type="text/JavaScript">
function checkValue() {
if(document.getElementById('my_field').value ==... |
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: 530 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: 298 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: 726 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: 252 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: Site Layout and Usability Sep 5th, 2009 |
| Replies: 6 Views: 765 URL rewrites are good for translating set patterns, for example:
www.site.com/products.php?catagory=1&product=32&viewmode=2
to:
www.site.com/products/cat1/item32/2
But if you are using... |
Forum: Site Layout and Usability Sep 5th, 2009 |
| Replies: 6 Views: 765 You will want rewrites to do this.
This will be fairly simple if the 'folder/folder/folder' is always the same, but if you have alot of sub directories then you will need more than just /file.php... |
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: Geeks' Lounge Jun 27th, 2009 |
| Replies: 75 Views: 4,864 Haha, back on topic now :)
Never really liked Westerns though...
A couple more good films:
Donnie Darko
Crocodile Dundee
and Final Fantasy VII: Advent Children (If you haven't yet seen the... |
Forum: Geeks' Lounge Jun 24th, 2009 |
| Replies: 75 Views: 4,864 Shawshank Redemption is up there at the top of my list :) |