How To Delete Attachments From A Letter?
I want to archive a letter, but I can't figure out how to "strip out"
the attachments, photos etc. that were sent along with it.
View Complete Forum Thread with Replies
Related Forum Messages:
Delete Record - When The Delete Link Is Clicked The Next Page Is Blank And Nothing Is Deleted.
This is my "delete.php" and this "todo/delete.php?id=64" an example of a link to it generated from the index.php page. When the delete link is clicked the next page is blank and nothing is deleted. What have I done wrong? <? include("dbinfo.inc.php"); mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $id="delete from todo where id='$id'"; mysql_query($id); mysql_close(); ?>
View Replies !
Mysql Delete - $query = Mysql_query("DELETE
how would i do the following ? $query = mysql_query("DELETE notes, datestamp, abs_value, ID FROM absence_mgt WHERE datestamp='$date' AND ID='$vtc_login' ") or die(mysql_error()); im just getting "Unknown table 'notes' in MULTI DELETE" ?
View Replies !
Select The First Letter
I'm trying to do a query, but i want the query to be done using only the first letter of the values in lname. ("SELECT * from wisdom where lname == '$letter' "); "Letter" is the value that i want generated coming from the previous page. I want all the data from lname with A as the first letter selected so i can display them.
View Replies !
Get Any Record Where The First Letter Is X
Regulars have probably seen this answered hundreds of times but how do you get records with the first letter beginning with 'a' for example? I have this: $letter = $_GET['l']; // = a $query = mysql_query('SELECT alias FROM badmembers WHERE alias RLIKE "^'.$letter.'$"'); But it doesnt seem to work....
View Replies !
Random Letter?
Look at the following code: if ($carrier == "Chautauqua Airlines") { $reg_number = rand (100, 999); $reg_number = "N".$reg_number."SK";} As you can see, if $carrier equals Chautauqua Airlines, then it will make a random number from 100-999 and build the following result: N###SK What I want to know is how can I also make this code so that instead of always using SK, it would randomly select between using SK or JQ or RP?
View Replies !
Grab First Letter Of Name
i have a pagination that has the alphabet buttons also. how to i set the query so that when i click the letter it will return the list wherein all names starts with that letter let say, i click letter "A" in the return list, all names starting at A will be listed.
View Replies !
Selecting By First Letter
Say I have a list of restaurants and this list is changing all the time so I run a query to get all the restaurants that are in the database. I would like to have something like A-D | E-H....etc. When a user clicks on one of those links it displays restaurants where their names start with that letter. Anyone have any ideas on how to do this?
View Replies !
Display By Letter
example: $letter = a <? $sql = "SELECT * FROM name WHERE *****first letter = $letter *****"; $result = mysql_query($sql, $conn) or die(mysql_error()); while ($newArray = mysql_fetch_array($result)) { $name = $newArray['name']; echo "$name *<br>"; } ?> I am trying to make a script so i can display a list of name beging with the letter *.
View Replies !
Lowercase Letter
I hope you guys can help me with this one. Say, $x = 'get me out' In mySQL table, I have a row that matches $x, but it is more like in 'Get ME out'. I want to match $x to that row. Is there something I can do to manipulate the mySQL SELECT query by changing the rows to lowercase letters before matching with $x. So, I am thinking of something like this. "SELECT * FROM TABLE WHERE $x = name" <-- where name column has to be changed to lower case.
View Replies !
Capital Letter
I have data that comes form a sql database, i need it so the first letter is a capitol letter <? $sql = "SELECT * FROM adddb ORDER BY id DESC LIMIT 0,20"; $result = mysql_query($sql, $conn) or die(mysql_error()); while ($newArray = mysql_fetch_array($result)) { $id = $newArray['id']; $nameof = $newArray['nameof']; $link = "view.php?id"; $totalcomments = 0; $query = "SELECT id FROM comments WHERE adddbid = '$id' "; $resultone = mysql_query($query); while ($user = mysql_fetch_assoc ($resultone)) { $totalcomments++; } echo "<a href='$link=$id'>" .$nameof. "</a> - Comments: " .$totalcomments. "<br>";
View Replies !
Removing First Letter
I have a php script that takes the a thing from the table and delete's it it also add's it to a new mysql table but when it adds it to a new mysql table I want it to be like (thethingidelted/sessionvarible) however when I run my code it takes the first letter off the session varible Code:
View Replies !
First Letter Of Sentence
I am in the process of making a function, what this function will do,is take a body of text, and strip it down, and bold all the words in the array of words. A word can be bold in in the center of a sentence, so what I would like to know, is how to find the the position of the first letter of the bold word, and go backwards until I find the first letter in the sentence. This letter will start the text of the displayed content, and will show 50 words, or the first two sentences.
View Replies !
First Letter In A String.
If my username for a session was Randy , and i wanted to Get the R from Randy and assign it to a variable to use. Is their a php function that will get the first letter from a string and return it? Ive checked the manual and found strtoupper , strtolower , ucwords , but thats not what im looking for.
View Replies !
Form Letter??
I am trying to set up a page that will enable me to enter one variable into a form letter and then type in an email address I want the form letter sent to. Code:
View Replies !
Sorting By First Letter
I have a huge database and need to sort by first letter, basically A-Z. This is what I have so far, but it gives me ALL the results. PHP Code: $result = mysql_query("SELECT Distinct id,name FROM table WHERE name REGEXP '[A-Z]' ORDER BY name  ") or die(mysql_error()); while($row = mysql_fetch_array( $result )) { $id=($row['id']); $name=substr($row['name'],0,1); echo "<a href="page.php?id=" .$id. "&name=" .$name. ""> $name</a> "; }
View Replies !
Number Or Letter
how to select data from a database that doesnt begin with a letter or a number (eg. ~#hello#~). Obviously i cant do: "WHERE NOT LIKE 'A%' OR NOT LIKE 'B%' ......" coz that would take the p***.
View Replies !
Attachments
I would like to enable a user to upload files from a page. Reading the PHP manual, all I can find is that they require "HTTP POST". The problem is, I cannot use this method of dealing with form data. Is there another way anyone knows of to upload a file using PHP? I am not even sure exactly how it is done.
View Replies !
Get First Instance Of A Letter In Array And Do Something With It
Not to informative subject, let me see if I can make it understandable. I have just redsigned my website to have access keys available for navigation. The menu's are taken from mySql, not going into table setup , but I do have a field called access_key and one called title. Anyway, I pull the information from the database to display the menu, I was wondering if there is a way to get the first instance of a letter in the title, that pertains to the access key, and then <em>h</em>ighlight it?
View Replies !
Results Sort By First Letter Of Last Name
Ok, this is probably really easy. I know how to sort a MySQL result alphabetically by last name, but how can I restrict the sort to the first letter of the last name of a person... Basically I have a big list of people. I made an HTML table with headers for each letter of the alphabet. The goal is to list people who's last name begins with "A" under that heading, and so on.
View Replies !
First Letter In String Only Showing?
I have a super-simple CMS I'm making where someone can either delete a photo and description or change the description. The description on the first parse works fine, however after I sumbit my form, it repopulates the data, and gives me only the first letter in the original string. However the correct string is passed and updated in the dbase. Code:
View Replies !
Three Letter Alphabet Combination
I m lookin for a script to generate three letter combination of all alphabets. May be I am looking for wrong key word. I want something that will list eg. AAA AAB AAC BCA BCB DDA . . . MMA MMB . . . ZZZ
View Replies !
Tell If A Number Or A Letter Is Being Passed From A Url?
I have a website that is passing something to the url, and then grabbing it from the url. Can php tell if a number or a letter is being passed through the url? So for instance..if A was passed through the url then it would do this...or if 124 was passed through the url then it would do this.
View Replies !
How To Replace Letter Position?
How to replace each letter on each position? ex. $word = compare price /* if letter position = a => replace q,w,s,x,z on a if letter position = b => replace v,f,g,h,n on b if letter position = c => replace x,s,d,f,v on c if letter position = o => replace i,k,l,p on o if letter position = m => replace n,h,j,k on m if letter pos.. . . . and the result will be : Code:
View Replies !
How To Mail With Attachments
I would be greatful if somebody out there knows how to attach a text document to an E-mail using PHP. I have looked at mail() but I can't figure out how to do what I want. Thanks for any replies!
View Replies !
Displaying Attachments
I have a shell script which parses an incoming email and stores the full email (including attachments) into the mysql table using an insert statement. This email is then displayed (including attachments) in a html textarea. The attachments are displayed as some junk characters. Is there a way to save this attachment to the hard disk and view it in its original form. I want to do all this through an html form. I guess first I will have to get the required part of text (attachment) from the textarea. Then convert/encode the attachment. Then open a download box.
View Replies !
PHP Mail Attachments
I have written / adapted a script that lets the user upload a number of file, these files are then attached to an email and sent to someone. I have successfully got the script to attach 2 files, problem is when i try and attach any more than that they do not get attached. The files i am trying to attach are not that big, so i would assume its not because of files size. was wondering if there is a limit on how many files you can attach to email and if there is is there any way i can change it..
View Replies !
Attachments And Email
Can anyone point me in the right direction of a script which creates a file with a few lines of text written in it and then emails it as an attachment to a given address? I know this has been asked before, but I found that the suggested link was broken.
View Replies !
Mail() With Attachments
Of course I could generate a unique boundary, use the base64_encode() function and do all the MIME-stuff myself, but I am trying to avoid re-inventing the wheel. Anyone know of a *good* PHP function for sending an e-mail with multiple attachments? Using PHP 4.3.something. I've been looking at this: http://pear.php.net/package/Mail_Mime and this: http://www.phpguru.org/static/mime.mail.html
View Replies !
E-Mail Attachments
I've been trying to find something about how to do this all day but haven't had any luck as yet. I'm trying to find a way to get a PHP script to pick up an attachment from an e-mail that is sent. For example... User sends e-mail with attachment to address@domain.com which is directed to www.domain.com/script.php So, the e-mail is being handled by script.php. I then need this to look at the e-mail as a whole including the e-mail address its been sent to but more importantly to pick up the attachment and place it in a folder on the server. Hard to explain but I hope that's easy to understand.
View Replies !
Mail() & Attachments
I just want the form to be able to mail an attachment, but no matter what, I keep getting the "Undefined index:filename" error. I've tried setting the error reporting at different levels, but that doesn't seem to help. I'm convinced there's something wrong with the code....
View Replies !
Put Attachments Option
how can i put a attachments option on my phpnuke forum i want people to be able to use attachments Mp3,wav.zip.pic.rar,and more. what im doing a forum so people can battle Beats on the forum by puting attachments and people can download the beat or if it is posible to be no download youst click.
View Replies !
Attachments Showing
have been working on an emailer and its working, check out my code below. my images should be in the attachment but it shows up below the emailer. $hdr .= "--SOMEWEBSITE"; $hdr .= "Content-Type:$filetype;"; $hdr .= "name="$file_name""; $hdr .= "Content-Transfer-Encoding:base64"; $hdr .= "Content-ID:classic1"; $hdr .= "Content-Disposition:attachment;"; $hdr .= "filename="$file""; $hdr .= "$fileinc"; it makes no difference if i set the Content-TRansfer-Disposition to "inline" or "attachment"
View Replies !
HtmlMimemail And Attachments
I am trying to send emails with an attachment using htmlMimemail 2.5.1 (PHP5 isn't supported by my webhost...yet). I can send HTML and text emails fine until I insert the code to add the attachment. Here is what I'm working with to email file "fileatt": Code:
View Replies !
Receiving Attachments
I'm using the POP3 class to receive emails for a moblogging type site but I can't figure out how to make it receive attachments. Anyone know a good simple way? A typical attachment would be an image and it should be automatically downloaded and posted in the entry.
View Replies !
|