39,326 Topics
| |
Hi, What code would i need to use for my php form, so when my record is saved using my save button on my form to my mysql database, it displays a message to say "Record Saved". | |
I get this error when trying to send e-mail form with PHP Mailer 5.1: SMTP Error: Could not connect to SMTP host. Error sending: SMTP Error: Could not connect to SMTP host. [CODE] <?php require("PHPMailer5\class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->SMTPSecure = 'tls'; $mail->SMTPSecure = 'ssl'; $mail->Host … | |
Hello, I am currently learning PHP. I am trying to implement a sign up page. The name at the same email address of the users in the database should give me an error message. I don't know how to start with. I started this by searching the emails in the … | |
Hi all I've searched everywhere on the internet including Daniweb for this answer but I can't find one. I don't want to break the rules, so I've changed the real domain name to domain.co.uk I manage a website [url]www.domain.co.uk[/url] where the owner requires a subdomain called quotes.domain.co.uk He then needs … | |
| Hi community, I recently started learning html and I tried to make a short feedback form. That should send the data over to a php file and that should append it to a txt file. However, every time I try to submit my form data, I keep just seeing the … |
we are want to pass value in url when we click om menu in <?php wp_nav_menuservice(array('menu' => '27')); ?> function click on menu , current output in url: [url]http://localhost/daffodilsite/?page_id=540[/url] and we want in url: [url]http://localhost/daffodilsite/?page_id=540&cityid=3[/url] please help me how to pass cityid in url thanks Rajeev Dhar | |
Hello everone, I am designing a website with php for different users. And I will like to give each user a unique page according to what their input in the form is, I want to MySQL database to save the information and retrieve it each time a user login into … | |
Very simple question, looking on google brings up plenty of MySQL resources on triggers but I can't find the answer I am looking for. What I want to know is; When I perform a query on a database from PHP, Does MySQL provide any way for PHP to know a … | |
Hello Everone, Can any one know where I can get a script for community websites, if you know please don't hesitate to reply this message, Thanks for reading this post. And greater thanks for your reply to this post. | |
Hi I recently installed XAMPP and tried my first test page by creating a sub-folder in htdocs namely password_test which containts 2 files: password.txt and an index.php. While trying to execute i get the following: file:///C:/xampp/htdocs/password_test/ -------------- Index of C:\xampp\htdocs\password_test\ Name Size Date Modified [parent directory] index.php.txt 129 B 11/18/11 … | |
Hello, I am looking for a way to stop variable scope leakage. I have a class with a function to include a page something like this: [CODE] class functions{ function getView($viewTheme, $viewType, $viewTask, $viewFunction, $pageID=null, $itemID=null){ $baseView = ROOTME.DIR_VIEWS.$viewType.'/'.$viewTheme.'/'.BASE_VIEW_DIR.$viewTask.'/'.$viewFunction.'.php'; if(file_exists($baseView)){ include($baseView); } } }[/CODE] My problem is, I am now … | |
product_preview.php [CODE] <?php // EDIT / DELETE MODE $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; if(!empty($_POST['id']) && !empty($_POST['mode'])){ if(!$_POST['mode'] == 'edit'){ $output = mysql_query("SELECT * FROM kategori WHERE id=".$_POST['id']) or die(mysql_error()); $data = mysql_fetch_array($output); $kategori = $data['nama_kategori']; echo $kategori; } elseif(!$_POST['mode'] == 'delete'){ $output = mysql_query("DELETE * FROM produk WHERE … | |
Hi There; I have a MS-SQL server and I have Turkish names in my table. User enters names and I send it to SQL server, print result to output. However, my PHP code process and prints text as a UTF-8, and send it to MS-SQL and print it to output.However … | |
I have some code that I use to display random images, which it draws from a list of possibilities. My problem is that I want to be able to echo the name of the randomized image as text below it. If someone could help me figure out how to do … | |
hey guys, i have quiet a number of .css and .js files on my website <head></head> pages. how do i compress them with gzip? | |
how do I set the path of this cookie to my whole site "/"? [ICODE]setcookie("name$id$uid", $id, $month);[/ICODE] currently this is what I have. How do I format the above to set the cookie on a global scale for the entire site. | |
Hi, I'm looking to build a payment button using Amazon Simple Marketplace Payments. Here is some code: [CODE]<input type="hidden" name="recipientEmail" value="email_address yahoo.com" >[/CODE] I would like value to be a variable but having trouble making this happen or finding info on how to do this. Any help would be awesome. | |
Hello, working on an Opencart website using Wamp and Windows7. Having trouble with Php settings _please view screenshot_ [URL=http://imageshack.us/photo/my-images/408/phph.png/][IMG]http://img408.imageshack.us/img408/1097/phph.png[/IMG][/URL] I've seen going through several sites with no solution so far; any help you could provide would be greatly appreciated. regards, C. | |
hi, I am changing my html web pages for website. my eclipse project is inside www directory. But I don't see html changes when I open web pages. I restarted server as well as eclipse many times. Still, the same result. Any Help, suggestion please? | |
Hi all. I'm working on a project where I'm supposed to store some PDF into a website. I'm usibg PHP/MySql. Actually these PDF are very personal and I need to be sure that no one can access the PDF even if this is on an address like [url]www.site.com/document.pdf[/url]. I need … | |
Hello, Currently I have a PHP Script that screen scrapes a website for data, and store it into a MySQL table. I'd like to set this up to run in intervals during the day. Right now, all I do is open the link in my browser and it runs the … | |
lets say it in example,i had column, which its rows contain numbers increasing -10,-9,-8,-7,....-1, those rows got bugged and changed into 1,2,3,4,.....10, that was example, the real one is over 40,000 rows, and it was -2147483629,-2147483630,-2147483631,....etc and it turned into 1000000001,1000000002,1000000003,.... how to make script that scan for 1000000001~1000000050 (for … | |
HI. I want to dig deep into PHP and OOP so I have been told that Zend is a very popular framework so I want to learn . Can you give me some (not many) resources for learning the beginning Zend and step by step go deep into it ? | |
Well, doing a beginner project. I've 100% finished with adding items to the DB. However, having stuck trying to use the "search" button to retrieve the DB list, as well updating errors. Objective, input last name, click on search, and find the results based on the last name input. Here's … | |
Good day, I'm trying to build an online quiz for my website. i want to do it oop style but i'm having problems in certain areas but i'll need help. this is the class code [CODE]class Quiz{ // method to get the questions and answers public function getQuestion(){ $host="localhost"; // … | |
i nid to set a generated password to email, a link to the mail for user to change to a better password, now the generated password shold expire after few hours how do i do...at the moment am genearting the password effectivly, problem is settimng it expire...how do i do | |
Hello, I have this weird issue with my simple upload form for different files. [CODE] <form enctype="multipart/form-data" action="mesaje_furnizori.php" method="GET"> <table> <tr><td align="right">Va rugam selectati » </td><td><?php echo $selectare; ?></td></tr> <tr><td align="right"><td><input type="file" name="file" id="file"/></td></tr> <tr><td align="right" colspan="2">Fisiere suportate (.*gif,*.jpg,.*jpeg,.*png,.*bmp,.*doc,.*docx,.*xls,.*xlsx) Marimea maxima de: <strong>5MB</strong></td></tr> <tr><td colspan="2"><textarea name="mesajTrimis" cols="70" rows="15"></textarea></td></tr> </table> <input … | |
Is it possible to run to functions at the same time when using onchange? Now i have this one: [CODE] <select name="hovedside_id" onchange="hentPosition(this.value)"> [/CODE] Using ajax i get updated another dropdown list with db info from this function just above. I return the data to a span tag with an … | |
hello i have problem with my code i try to delete user but i have some problem with that i cant to delete it... [CODE] if((mysql_num_rows($resultAdmin))) { if(mysql_num_rows($result) > 0) { ?> <table align="left" border="2" cellspacing="0" cellpadding="3"> <tr><td>Name</td><td>Email</td><td>Phone</td></tr> <?php $str = ""; while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $name = … | |
Hi, I want to parse PHP entities (classes, variables functions methods and properties) and save information on database (function signature, variable name et al). I'm trying to see alternatives for how I can archieve that with any language (the technique). So far I'm thinking of using regex to match stuffs … |
The End.