39,326 Topics

Member Avatar for
Member Avatar for morrisproject

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".

Member Avatar for morrisproject
0
149
Member Avatar for davy_yg

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 …

Member Avatar for davy_yg
0
1K
Member Avatar for london-G

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 …

Member Avatar for Stefano Mtangoo
0
115
Member Avatar for rob_hartley

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 …

Member Avatar for rob_hartley
0
239
Member Avatar for albo1125

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 …

Member Avatar for SQLpower
0
121
Member Avatar for rajeevphp2011

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

Member Avatar for blocblue
0
104
Member Avatar for godwinaka4life

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 …

Member Avatar for simplypixie
0
89
Member Avatar for Will Gresham

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 …

Member Avatar for mschroeder
0
215
Member Avatar for godwinaka4life

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.

Member Avatar for diafol
0
48
Member Avatar for lovelylaya

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 …

Member Avatar for Stefano Mtangoo
0
156
Member Avatar for OnIIcE

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 …

Member Avatar for pritaeas
0
130
Member Avatar for davy_yg

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 …

Member Avatar for ThLFR
0
68
Member Avatar for varoluscu_prens

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 …

Member Avatar for diafol
0
164
Member Avatar for triltaison

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 …

Member Avatar for niranga
0
182
Member Avatar for opjjuly

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?

Member Avatar for opjjuly
0
894
Member Avatar for reco21

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.

Member Avatar for reco21
0
198
Member Avatar for phpDave

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.

Member Avatar for phpDave
0
111
Member Avatar for Canea

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.

Member Avatar for Canea
0
136
Member Avatar for amsane

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?

Member Avatar for diafol
0
626
Member Avatar for shella

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 …

Member Avatar for niranga
0
220
Member Avatar for jsquadrilla

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 …

Member Avatar for pritaeas
0
264
Member Avatar for DarkBerzerk

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 …

Member Avatar for DarkBerzerk
0
91
Member Avatar for narekm

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 ?

Member Avatar for pritaeas
0
60
Member Avatar for kay19

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 …

Member Avatar for kay19
0
178
Member Avatar for azdonald

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"; // …

Member Avatar for mschroeder
0
125
Member Avatar for mayreeh

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

Member Avatar for mayreeh
0
70
Member Avatar for Szabi Zsoldos

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 &raquo; </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 …

Member Avatar for Stefano Mtangoo
0
201
Member Avatar for klemme

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 …

Member Avatar for klemme
0
578
Member Avatar for moshe12007

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 = …

Member Avatar for vimalnath53
0
84
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
191

The End.