Search Results

Showing results 1 to 40 of 153
Search took 0.01 seconds.
Search: Posts Made By: Will Gresham ; Forum: PHP and child forums
Forum: PHP 14 Days Ago
Replies: 2
Solved: Form Mailer
Views: 305
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Solved: php code error
Views: 407
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
Do you mean delete in an SQL query, or a unlink to delete files?
Forum: PHP 34 Days Ago
Replies: 4
Views: 281
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
Does it do anything?

Do you get a blank screen, an error?
Forum: PHP 34 Days Ago
Replies: 5
Views: 284
Posted By Will Gresham
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
Posted By Will Gresham
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
Solved: Time question
Views: 151
Posted By Will Gresham
Cron jobs :)

http://www.adminschoice.com/docs/crontab.htm
Forum: PHP Oct 21st, 2009
Replies: 8
Views: 291
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
Post an example of the code you have already.
Forum: PHP Oct 18th, 2009
Replies: 4
Views: 269
Posted By Will Gresham
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
Posted By Will Gresham
You only need one = on your mysql_connect statement.
Forum: PHP Oct 15th, 2009
Replies: 2
Solved: Fill a table
Views: 251
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Solved: PHP Post
Views: 350
Posted By Will Gresham
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
Posted By Will Gresham
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
Posted By Will Gresham
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
Solved: Help with query
Views: 491
Posted By Will Gresham
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
Solved: Help with query
Views: 491
Posted By Will Gresham
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
Solved: Help with query
Views: 491
Posted By Will Gresham
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
Solved: Help with query
Views: 491
Posted By Will Gresham
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
Posted By Will Gresham
Try replacing (!$sqlStr==... with ($sqlStr != ...
Forum: PHP May 20th, 2009
Replies: 3
Views: 877
Posted By Will Gresham
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...
Showing results 1 to 40 of 153

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC