Gaia
-
Posts
95 -
Joined
-
Last visited
Never
Posts posted by Gaia
-
-
Just when you are inserting the information into the database add a chunk of code that sends an email below it.
-
The PHP mail() function is what you are looking for [a href=\"http://ca3.php.net/manual/en/ref.mail.php\" target=\"_blank\"]http://ca3.php.net/manual/en/ref.mail.php[/a]
Just integrate the mail() function in your sendfeedback.php file and it will still display the message. -
I've already posted to this topic in another forum....you shouldn't be posting the exact same topic in 2 different forums..
-
You may want to take a look at the mail() function.
[a href=\"http://ca3.php.net/manual/en/ref.mail.php\" target=\"_blank\"]http://ca3.php.net/manual/en/ref.mail.php[/a] -
Thanks, but i'd rather learn how to do it myself and create my own function/class. Do you remember any of the resources/tutorials you used that helped you create your object?
Thanks ^_^ -
This may be of some help to you.
[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=86566&hl=\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?...topic=86566&hl=[/a] -
Ummm, sorry if i'm wrong, but do you mean like a select box in HTML?
[code]
<select>
<option>Option 1</option>
<option>Option 2</option>
<option> Etc...</option>
</select>
[/code] -
hi,
I want to be able to export some data from a mySQL table to a rss file ( .rss ). So basically i want to create a .rss file for syndication on other websites.
How can you do that via PHP? If anyone can get me started or point me to a resource/tutorial or a section in the PHP Manual that discusses this?
Thanks. -
I think you would be better off using Javascript for this instead of PHP....
-
I did......
change
[code]
$result = mysql_query($sql) or die(mysql_error());
[/code]
To...
[code]
mysql_query($sql) or die(mysql_error());
[/code] -
Well, with the code you have right there, it's not outputting anything, you've just saved the mySQL result to a variable...
You need to remove the $result = part..
[code]
mysql_query($sql) or die(mysql_error());
[/code]
Since you just want to update there's no need to save the result in a variable. -
Where are you initialzing this variable? (i'm assuming it is a variable).
[b]$eimages[/b] -
Are you sure?
page.php?action=delete is the form action, meaning it will go to that url correct?
So, wouldn't you just have to check if ?action=delete is attached to the URL? -
Exactly.
When you retrieve the data, it would be like 1,12,34...when you explode it, it will end up in an array.
[code]
$foo = array (
[0] => 1,
[1] => 12,
[2] => 34
);
[/code]
Then with the in_array function you just wrap an if statement around it.
[code]
if ( in_array('1',$foo) ) {
echo '1 was found in the array';
} else {
echo '1 was not found in the array';
}
[/code]
Hope that helps some :).
[i]EDIT[/i]: And yea, as Xeno said, you could create a new MySQL table listing the permissions and do it from a MySQL perspective. -
I think register_globals would have something to do with that, not sure though.
-
It could also be something wrong with your $db->query class, unless you've successfully ran queries with this script before.
-
You could probably do something like seperate them with comma's (make sure the table type is set to text) then use the explode() function in PHP to put them in an array then use the in_array() function with an if statement?
Not sure if that's the direction you're wanting to go or not. -
You'll still have to store the value into the variable.
[code]
$action = $_GET['action'];
[/code] -
Where are you getting the value of $action from?
-
He just has it so that when the database does not connect it will display an error, not when the query is ran..unless i'm missing something.
-
Also try adding in mysql_error();
[code]
if ($result) {
echo 'Success';
} else {
die(mysql_error());
}
[/code]
-
Maybe put in something like HTTP_REFERER so that you can save where they came from and then send them back?
-
Yes, that would work. That's basically what it is used for, using variables that were initiated outside of a function, inside a function.
If that makes any sense :p
I'm sure someone else can add some more to my try at answering your question. -
I think you need to use Javascript for that.
Email form
in PHP Coding Help
Posted