AllExperts > PHP5 
Search      
PHP5
Volunteer
Answers to thousands of questions
 Home · More PHP5 Questions · Question Library  · Free Encyclopedia ·
More PHP5 Answers
Question Library

Ask a question about PHP5
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
About Robert Davis
(Top Expert on this page)

Expertise
My focus in PHP has been calculations, reporting, database manipulation (MySQL), automated scripting, screen scraping, and tracking systems. A more complete summary is posted at http://businesscatalyst.info.

Experience
I've been programming in many languages for over 13 years, but the last couple 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.

   

You are here:  Experts > Computing/Technology > Perl/PHP > PHP5

Questions Answered By Expert  Robert Davis 
In Category  PHP5

SubjectDate Asked

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 problems11/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 number10/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 number10/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 ...
php9/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 DB9/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 ...
Ajax9/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 message8/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 MYSQL8/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 MYSQL8/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 graph7/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 loop6/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 PHP6/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 scraping5/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 scraping5/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 scraping5/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 js4/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 js4/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 script4/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 Uploading4/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 XML3/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-down3/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 list3/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 list3/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 list3/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 Question3/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 Pagination3/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 Pagination3/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 extensions3/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 help2/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 php2/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 POST2/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 example2/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 db1/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 db1/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 :D1/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 XML12/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 HTTP12/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 HTTP12/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 Http12/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 Http12/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 interaction12/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 Transfer12/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 Transfer12/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 ...

All Questions in This Category

Email this page
     
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2006 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.