Search found 16 matches
- Mon Feb 14, 2011 12:46 pm
- Forum: PHP - Code
- Topic: sending mail function attachments with php mail() function
- Replies: 1
- Views: 149
sending mail function attachments with php mail() function
Hello Everyone I have written a simple mail function to be emailed to a certain person on submission. On submission they would also like to have attachments sent to them. I got the email being sent but I can;t get the attachments to work. I have read several different examples and tutorials and none...
- Thu Feb 10, 2011 9:20 am
- Forum: PHP - Code
- Topic: Deletion Script is not working
- Replies: 8
- Views: 349
Re: Deletion Script is not working
Yay!!!! That worked
Thank you for your help with this problem
Thank you for your help with this problem
- Thu Feb 10, 2011 8:23 am
- Forum: PHP - Code
- Topic: Deletion Script is not working
- Replies: 8
- Views: 349
Re: Deletion Script is not working
<?php $sql = "SELECT * FROM $table WHERE id = '$_POST[id]'"; // while ($row = mysql_fetch_array($result)) { $id = $row['id']; } ?> <!-- append value of $id to the page --> <form method="POST" action="do_delete_user.php?id=<?php $id; ?>"> You have to append the value of...
- Thu Feb 10, 2011 6:29 am
- Forum: PHP - Code
- Topic: Deletion Script is not working
- Replies: 8
- Views: 349
Re: Deletion Script is not working
The way delete script works isMordred wrote:ACTION=\"show_user_del.php\" means the id is passed to THAT script, not do_delete_user.php
Also, go read about sql injection and mysql_real_escape_string.
pick user --> show user --> delete user
- Thu Feb 10, 2011 6:06 am
- Forum: PHP - Code
- Topic: Deletion Script is not working
- Replies: 8
- Views: 349
Re: Deletion Script is not working
Through a page called pick_user.php Here is the code <?php require('../includes/auth_user.php'); $connection = mysql_connect($host, $username, $dbpassword) or die (mysql_error()); $db = mysql_select_db ($dbname, $connection) or die (mysql_error()); $sql = "SELECT * FROM $table"; if(!$conne...
- Wed Feb 09, 2011 10:25 pm
- Forum: PHP - Code
- Topic: Deletion Script is not working
- Replies: 8
- Views: 349
Deletion Script is not working
Hello Everyone. I am trying to figure out why this delete script does not want to work. I click on the delete user and all it does it take me back to the page to pick a person to delete from the database. When I run the sql in the database it deletes the user with no problem This is the show_user_de...
- Fri Jan 21, 2011 7:13 am
- Forum: PHP - Code
- Topic: Php and MySql not displaying image from path in DB
- Replies: 4
- Views: 95
Re: Php and MySql not displaying image from path in DB
This is what the generated source code looks like <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Classified Added</title> </head><body> <div> <h3>The following information has been added to th...
- Thu Jan 20, 2011 11:05 pm
- Forum: PHP - Code
- Topic: Php and MySql not displaying image from path in DB
- Replies: 4
- Views: 95
Php and MySql not displaying image from path in DB
Hello Everyone, I hope someone will be able to help me with this since I am :banghead: banging my head against the wall. I am running a script that uploads information and image paths to a database. After the information has been uploaded to the database. It is retrieved to show the person what info...
- Sun Jan 16, 2011 7:47 pm
- Forum: PHP - Code
- Topic: Record Deletion script only working some of the time
- Replies: 1
- Views: 95
Re: Record Deletion script only working some of the time
Oh I forgot to say that when I click on the delete ad button. It sends me back to the pick_modify2.php file
- Sun Jan 16, 2011 7:44 pm
- Forum: PHP - Code
- Topic: Record Deletion script only working some of the time
- Replies: 1
- Views: 95
Record Deletion script only working some of the time
Hello Everyone I am in the process of creating a small CMS system for someone. My problem is that I am still in the process of learning PHP and MySql databases. I am in the process of creating a deletion script for the CMS. Basically what I am trying to do is make it a three step process. Pick the f...
- Fri Jan 14, 2011 1:43 pm
- Forum: PHP - Code
- Topic: PHP is not reading mysql DB
- Replies: 9
- Views: 395
Re: PHP is not reading mysql DB
This is what my code looked like after inserting what you had suggested <?php if (!$_POST[id]) { header ("LOCATION: pick_modify.php"); exit; } else { //session start session_start(); } if ($_SESSION[valid] != "yes") { header ("Location: admin_menu.php"); } include('/inc...
- Fri Jan 14, 2011 1:23 pm
- Forum: PHP - Code
- Topic: PHP is not reading mysql DB
- Replies: 9
- Views: 395
Re: PHP is not reading mysql DB
I have tried doing what yopu have suggested and now I am getting an error
Parse error: syntax error, unexpected $end in /home/content/m/i/k/mikedmartiny/html/CMS/show_delete.php on line 47
Parse error: syntax error, unexpected $end in /home/content/m/i/k/mikedmartiny/html/CMS/show_delete.php on line 47
- Fri Jan 14, 2011 11:21 am
- Forum: PHP - Code
- Topic: PHP is not reading mysql DB
- Replies: 9
- Views: 395
Re: PHP is not reading mysql DB
I will give this a shot when I get home
- Fri Jan 14, 2011 10:38 am
- Forum: PHP - Code
- Topic: PHP is not reading mysql DB
- Replies: 9
- Views: 395
Re: PHP is not reading mysql DB
It lets me pick it.. It does not delete it from the record and there are no Mysql errors.
I planned on it being a 3 step process...pick it, check it to make sure it is the one that you want to delete and finally delete it.
I planned on it being a 3 step process...pick it, check it to make sure it is the one that you want to delete and finally delete it.
- Fri Jan 14, 2011 9:22 am
- Forum: PHP - Code
- Topic: PHP is not reading mysql DB
- Replies: 9
- Views: 395
Re: PHP is not reading mysql DB
Sorry about that.. The code that I am having an issue with is <?php if (!$_POST[id]) { header ("LOCATION: pick_modify.php"); exit; } else { //session start session_start(); } if ($_SESSION[valid] != "yes") { header ("Location: admin_menu.php"); } include('includes/conne...