You are here:
| Subject | Date Asked |
| Help Needed | 10/7/2011 |
| Q: hope that this email finds you well, I need to have an " email to " form in my website. I guess I'm ... A: The first thing I would suggest is removing the @ before the mail function. That is used to ... | |
| PHP Session Mail | 1/5/2011 |
| Q: I would like to create a multi part form and then get the info through email. I created the first ... A: Let me first caution you to not send credit card info through email. Email is not secure at all. ... | |
| passing radio button value in pHp | 12/1/2010 |
| Q: Hi, I am trying to pass a radio button selected value to another php form using sessions. However ... A: If I understand your code correctly, what will result from your while loop is a bunch of rows with ... | |
| Help Needed Please | 10/9/2010 |
| Q: Good day,, hope this email finds you well,,, i have 2 questions and hope you can help me because ... A: I'm not sure what you mean by using the same PC to validate info - if you've got a login page on ... | |
| PHP help | 7/10/2010 |
| Q: I have this double opt-in newsletter code and everything works until the point where the subscriber ... A: It looks like your ereg statement is returning false, which is why you're getting the error page and ... | |
| Read Zip File | 5/28/2010 |
| Q: This is a receipt for a question you recently asked at allexperts.com of PHP5. You should receive ... A: If you have trouble getting info about the uploaded file, you might try using the following code in ... | |
| include php | 2/15/2010 |
| Q: How are you? I'm building a website where different parts of html are brought together by php. For ... A: Php is a server side language, so if you want to change an included file by clicking a button you ... | |
| re:php/mysql drop down list in js function | 2/4/2010 |
| Q: I checked with echo and indeed the array was not valid without "fetch" so now I changed it, checked ... A: It looks to me like you are mixing javascript and php and getting confused. Keep in mind that any ... | |
| Swapping array key with one of the values in Mysql Result Array | 1/31/2010 |
| Q: $result = mysql_query("SELECT Stn_Code, name, col16, col17 FROM mis_stations WHERE year =2009 AND ... A: I just realized that my code above uses the wrong name for the station code. It should be: ... | |
| Swapping array key with one of the values in Mysql Result Array | 1/29/2010 |
| Q: $result = mysql_query("SELECT Stn_Code, name, col16, col17 FROM mis_stations WHERE year =2009 AND ... A: If I understand you correctly you want an array like this: Array ( [93] => Array ( ... | |
| convert to Norwegian date format... | 11/14/2009 |
| Q: I have a field data which comes from database like this: $record["offerdatefrom"] However, I would ... A: You could do something like this: $myMonths['January'] = "Januar"; $myMonths['February'] = ... | |
| Mail with attachment problems | 11/2/2009 |
| Q: Can you help me with a bit of code for the mail function? My problem is that I can't seem to attach ... A: Here's part of a mail function I've used successfully in the past, when I compare it to yours it ... | |
| create invoice number | 10/17/2009 |
| Q: i'm creating the store from scratch with codeigniter..Are there any disadvantage with using ... A: If the characters will all be numbers then I would create an integer field, if not I would define it ... | |
| create invoice number | 10/16/2009 |
| Q: i'm creating the store from scratch with codeigniter..Are there any disadvantage with using ... A: If you are doing it from scratch I would definitely recommend an autoincremented ID as the invoice ... | |
| php | 9/16/2009 |
| Q: Robert im completely new to PHP i wrote a simple 'hello world' program, but i cant find the way to ... A: I assume you are trying to create a php page that will run in a browser, not from the command line, ... | |
| Ajax and DB | 9/14/2009 |
| Q: 1- i have a problem when i running my page using ajax..i make a text box and when a user writea ... A: The ajax is still working when the http_request.readyState is not 4 yet. You can review my blog ... | |
| Ajax | 9/10/2009 |
| Q: 1- i have a problem when i running my page using ajax..i make a text box and when a user writea ... A: An example I have used successfully is at http://www.dynamicajax.com/fr/AJAX_Suggest_Tutorial-.html ... | |
| Formatting feedback message | 8/21/2009 |
| Q: I use website feedback form to receive emails in text format; main problem is that message is not ... A: If you want to add tags to the text of the emails, you'd just need to modify your draw_success ... | |
| PHP4 to PHP5 and MYSQL | 8/20/2009 |
| Q: I have very limited PHP/Mysql experience so I will try to include all relative information but if I ... A: If you put your test script on the new server and were able to connect to the database, then you'll ... | |
| PHP4 to PHP5 and MYSQL | 8/20/2009 |
| Q: I have very limited PHP/Mysql experience so I will try to include all relative information but if I ... A: Have you updated the database connection parameters used in the site? It sounds like you don't have ... | |
| numerical values to graph | 7/31/2009 |
| Q: how to convert data (numerical value) from your database (mySQL) to a bar graph to be dsplayed in a ... A: There are a few different ways of doing this. A couple that I have used are these: 1) If it's just ... | |
| Why use session? | 6/29/2009 |
| Q: .. I would like to ask why should i use a session or cookies??? i would like to ask when should is ... A: I use the session to keep track of logged in users because it is easier to put this on every page: ... | |
| MYSQL Inserting data within a While loop | 6/21/2009 |
| Q: I am attempting to insert values into a table(from another). The While loop that I am using does ... A: Each insert command creates a new row, which is why your loop creates multiple rows. One way to ... | |
| Online forms using PHP | 6/20/2009 |
| Q: What PHP coding is necessarry to create on online form, where people can enter information and it ... A: For an online form that saves data, you'll probably want to have a database - mysql works well with ... | |
| site scraping | 5/11/2009 |
| Q: I am very fluent in php and many other programming methods but I have yet to look into this. Do you ... A: Oops, That was a mistake in the regular expression matching. The following line is incorrect: ... | |
| site scraping | 5/11/2009 |
| Q: I am very fluent in php and many other programming methods but I have yet to look into this. Do you ... A: For your tipsterz site, here's how I could get the article and title into variables (I assume you ... | |
| site scraping | 5/10/2009 |
| Q: I am very fluent in php and many other programming methods but I have yet to look into this. Do you ... A: There are several php methods that can be used to do this, including file_get_contents, fsockopen, ... | |
| form validation witout using js | 4/28/2009 |
| Q: i need help please about how to create form validation without using js..Suppose i got a ... A: Yes there are always several ways of doing anything you want to do. You could pass the parameters ... | |
| form validation witout using js | 4/28/2009 |
| Q: i need help please about how to create form validation without using js..Suppose i got a ... A: Form validation can be done with php, you can check all the fields at the top of the reg.php file, ... | |
| Tab Content script | 4/20/2009 |
| Q: my tab content works good but i would like to make my detail.php as a defult page (i want defult ... A: Have you tried using a simple <? include("detail.php"); ?> line of code wherever you want it to ... | |
| MySQL and Uploading | 4/12/2009 |
| Q: This is a receipt for a question you recently asked at allexperts.com of Kevin Cackler. You should ... A: Based on what I see above I'm guessing you should be hearing from Kevin if you haven't already. But ... | |
| PHP and XML | 3/26/2009 |
| Q: How can you, while iterating through an XML document (using either DOM or SimpleXML) check to see ... A: If you look at the example at http://www.w3schools.com/php/func_simplexml_children.asp, you can ... | |
| drop-down | 3/15/2009 |
| Q: sorry for late replay I was at work ,I said that to write the code to save your time but as you like ... A: When I said move the code to the top, I meant move the print_r($_POST) command to the top of your ... | |
| drop-down list | 3/14/2009 |
| Q: how can I insert selected value from drop-down list to mysql ? for text filed am using ... A: Is the city variable in the post array? You should see it print from the screen from this code: ... | |
| drop-down list | 3/14/2009 |
| Q: how can I insert selected value from drop-down list to mysql ? for text filed am using ... A: I see, this is a quotes issue. Before your insert query, put the city into another variable: ... | |
| drop-down list | 3/14/2009 |
| Q: how can I insert selected value from drop-down list to mysql ? for text filed am using ... A: For a select field, you'll need to make sure you set the values correctly in the form. In the ... | |
| PHP MYsql WHILE Loop Question | 3/13/2009 |
| Q: I have been playing around with php and mysql for a year or so and can do some basic things. ... A: I first want to recommend that you use more descriptive names for your variables, please. It will ... | |
| Search Results Pagination | 3/12/2009 |
| Q: My question is simple but I'm not sure if the answer is just as simple. Maybe you can help. What I ... A: I believe the problem you are having is because you are checking for the search string in the $_POST ... | |
| Search Results Pagination | 3/12/2009 |
| Q: My question is simple but I'm not sure if the answer is just as simple. Maybe you can help. What I ... A: Yes pagination is not trivial, although it may look that way on a web page. Here is a tutorial I ... | |
| Can not render PHP3 extensions | 3/2/2009 |
| Q: Robert, I am in the process of ugrading an old web server running an older version of REDHat ... A: I have seen blank pages when I forget to set my db connection parameters to access the right ... | |
| PHP help | 2/27/2009 |
| Q: I am brand new to PHP and am trying to write a simple script which assigns values to some variables, ... A: You haven't specified what the results of the above script are, but I'm guessing it just shows the ... | |
| career in php | 2/26/2009 |
| Q: i completed my MCA in 2008, now I'm working on php5 pls help me to clear that how much growth in ... A: If you are asking about the future opportunities for people to work with PHP, I believe there are ... | |
| Running a SQL Query? | 2/16/2009 |
| Q: I'm trying to implement a modification to PHPBB Ver3. I'm experienced with Note Tab Pro and have ... A: Yes you can do that, and I've actually done that before when I wanted to make some changes that ... | |
| difference between GET and POST | 2/6/2009 |
| Q: I am learning PHP on my own. Could you tell me the difference between get and post methods and when ... A: The GET method passes the parameters in the URL, while the POST method passes the parameters in the ... | |
| A simple example | 2/2/2009 |
| Q: I'm learning PHP and I searched the web but couldn't find a simple example that shows a form in PHP ... A: Here is an example file that I include in all my pages that interact with a database: <?php ... | |
| About language convert?? | 1/19/2009 |
| Q: I am trying to translate language using google translator In php file <? $URL="http://". ... A: It looks like the $URL variable needs to be parsed each time to remove the previous translation link ... | |
| Retrieve data from server and save it to local db | 1/10/2009 |
| Q: i need help about retrieving data from mysql server on web and save it into a sqlite local ... A: It sounds like you might want to use something similar to the example given by a user of the php ... | |
| Retrieve data from server and save it to local db | 1/9/2009 |
| Q: i need help about retrieving data from mysql server on web and save it into a sqlite local ... A: If you have phpmyadmin installed on your webserver, you can export the database into a csv file that ... | |
| Downloading pdf files :D | 1/1/2009 |
| Q: im not a newbie with php , ive done many projects , but this problem is driving me mad , i want a ... A: It sounds like you want people to be able to download pdf files from a location that they can't ... | |
| Regarding Sending XML | 12/27/2008 |
| Q: this is a continuationcouldn't followup on the previous it said too many followups. When sending ... A: Yes did you try echoing the $data value right after the first line to make sure the xml tags were ... | |
| Sending XML via HTTP | 12/26/2008 |
| Q: I this is relating to the other post where i asked you about sending an XML file via HTTP. You ... A: If you echo $data right after the first line, are the xml tags still there? The only change I would ... | |
| How to save javascript variable in php variable?? | 12/26/2008 |
| Q: This code for check time spend by user on page <body onload='window.setInterval("timeHere()", 100)' ... A: Php is a server side language, so once the page is done loading the php variables are all set. The ... | |
| Sending XML via HTTP | 12/25/2008 |
| Q: I this is relating to the other post where i asked you about sending an XML file via HTTP. You ... A: This statement stood out to me from your latest post: "The problem is when you read it in a string ... | |
| Send XML file via Http | 12/19/2008 |
| Q: I have PHP5 installed and want to send an XML file via HTTP from one website to another. I know Curl ... A: This is the question I thought I answered. Anyway, in the code you posted above, 'foo' and 'bar' ... | |
| Send XML file via Http | 12/19/2008 |
| Q: I have PHP5 installed and want to send an XML file via HTTP from one website to another. I know Curl ... A: file_get_contents seems to be very reliable. If there is a problem I get an error message returned. ... | |
| xml interaction | 12/16/2008 |
| Q: Trying for find a good sample script to learn how to interact with xml: specifically finding a ... A: I usually use regular expressions to manipulate files, but you can use the xml_parse_into_struct ... | |
| PHP MySQL Data Transfer | 12/10/2008 |
| Q: i have 2 web applications where 1 is online on a remote server and the other is offline on a local ... A: I would create a webpage on the Bravenet server that accepts the appropriate variables (for the ... | |
| PHP MySQL Data Transfer | 12/10/2008 |
| Q: i have 2 web applications where 1 is online on a remote server and the other is offline on a local ... A: I would suggest saving the data in the local mysql database for the offline application and using a ... | |
Answers by Expert:
Top Expert on this page
My focus in PHP has been calculations, reporting, database manipulation (MySQL), automated scripting, screen scraping, and tracking systems. A brief professional background is posted at http://businesscatalyst.info.
I've been programming in many languages for over 15 years, but the last several years I've focused on php. I've posted several tricks I've learned at goodfeelingplace.com.
Education/Credentials
I have a bachelors degree and a masters degree, both in electrical engineering from Arizona State University.

©2012 About.com, a part of The New York Times Company. All rights reserved.