| Subject | Date Asked | Expert |
|
| convert to Norwegian date format... | 11/14/2009 | Robert Davis |
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'] = ...
|
| Are there any intermediate tutorials? | 11/13/2009 | Kevin Cackler |
Q: I'm decent with PHP and can get along with it, but I'm wondering if there are any tutorials that are ... A: Jerod - After you get the basics of the language down, I would say your next course of action should ...
|
| EMAIL ADDRESS | 11/11/2009 | Kevin Cackler |
Q: I wonder if you can help. I have set up the email php so that when the users completes their details ... A: Dale, Assuming your mail() line currently looks something like this: $recipient=$_POST['email']; ...
|
| Uploading files | 11/11/2009 | Hari Priya |
Q: I'm trying to make a website with multiple file uploads. If the user selects small files (40-50 kb), ... A: Ok, I have modified your upload page code slightly. Check and let me know how it works. <?php ...
|
| Uploading files | 11/11/2009 | Hari Priya |
Q: I'm trying to make a website with multiple file uploads. If the user selects small files (40-50 kb), ... A: I need to see all the functions in the class.easyzip.php to assist you more. However, at glance I ...
|
| Mail with attachment problems | 11/2/2009 | Robert Davis |
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 | Robert Davis |
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 | Robert Davis |
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 ...
|
| Pass combobox value to database table | 10/15/2009 | Hari Priya |
Q: I'm having trouble passing the valaue of a combobox back to the database table I'm posting the value ... A: You have to pass the value of the dropdown list correctly. You have given the value as $row[select1] ...
|
| Output apostrophes, quotation arks etc from Mysql database | 10/14/2009 | Kevin Cackler |
Q: I need to display mysql data with php 4 or 5 that has apostrophes etc. within the text. The data is ... A: If the value actually stored in the database field is Fred's Bakery (You've made sure that that ...
|
| Output apostrophes, quotation arks etc from Mysql database | 10/14/2009 | Kevin Cackler |
Q: I need to display mysql data with php 4 or 5 that has apostrophes etc. within the text. The data is ... A: I apologize, but it's very difficult to understand what you're trying to do, still. However, if ...
|
| Updating record from a form | 10/13/2009 | Hari Priya |
Q: I'm trying to figure out how to update a database record from a form, here's my codes: (this works ... A: You should enclose the post variable names with ' and '. Fields should be separated by comma. Try ...
|
| Php5 pagination code with more link | 10/13/2009 | Kevin Cackler |
Q: This needs register_global_on to work but my host correctly refuses to turn it on...so I urgently ... A: I'm afraid I don't quite get what you're asking for, but I'll put a few answers here based on what ...
|
| Easyphp Onto Compact Disc | 10/12/2009 | Kevin Cackler |
Q: Cackler, I'm a new to PHP programming and I recently signed up for a night class to ... A: EasyPHP is a package containing all of the necessary components to start developing in PHP right ...
|
| using passed variable as query criteria | 10/12/2009 | Hari Priya |
Q: your solution worked exactly as I had hoped. I have another problem now in that although the ... A: Can you do the following tests? First Let us check if there are any record exists for the field ...
|
| using passed variable as query criteria | 10/12/2009 | Hari Priya |
Q: your solution worked exactly as I had hoped. I have another problem now in that although the ... A: The query doesn't return any results I guess. There is no need for parenthesis in this select query ...
|
| passing variables with href | 10/10/2009 | Hari Priya |
Q: I have a dynamic table which is coded as follows: while($row = mysql_fetch_array($result)) { echo ... A: I have modified your code little. You have to assign the variable name to pass the row id value. I ...
|
| Php5 pagination code with more link | 10/9/2009 | Kevin Cackler |
Q: This needs register_global_on to work but my host correctly refuses to turn it on...so I urgently ... A: Rather than checking for $id, you need to be checking for $_GET['id'] As an alternative (Though not ...
|
| Display field value in dropdown | 10/1/2009 | Kevin Cackler |
Q: I am fairly new to programing in php. I have a form that is populated with the current values of ... A: Alan, you're actually very close to doing this right already. Here's what you need to do <select ...
|
| php | 9/16/2009 | Kevin Cackler |
Q: kevin im completely new to PHP i wrote a simple 'hello world' program, but i cant find the way to ... A: You need to have PHP installed on the computer on which you want to execute the program. If this is ...
|
| php | 9/16/2009 | Robert Davis |
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 | Robert Davis |
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 | Robert Davis |
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 ...
|
| session life time | 9/10/2009 | Kevin Cackler |
Q: i have two Qs. : 1- about session life time.. i have a login page but session die after several ... A: 1. You can increase the session lifetime from within your script (If the php.ini file allows it) by ...
|
| I have created a multilingual site with 3 languages and now i want to increase the languages. | 8/31/2009 | Kevin Cackler |
Q: I am Yogesh, a lead programmer. I have created a website with 3 languages (English, Polish, ... A: UTF-8 is acceptable to use in this case. If you were dealing with MOSTLY asian languages, I would ...
|
| Static variable problem PHP | 8/28/2009 | Kevin Cackler |
Q: .. I would like to ask if anyone of you knows what was the problem with my script... here the ... A: What you're doing is simply not possible in the way that you're trying to do it. Class variables ...
|
| PHP form question! | 8/24/2009 | Kevin Cackler |
Q: I'm trying to bang out a form script for my web site, but I have very little PHP experience so I'm ... A: Glad you're making progress. It's always nice getting something working that previously was not. ...
|
| PHP form question! | 8/22/2009 | Kevin Cackler |
Q: I'm trying to bang out a form script for my web site, but I have very little PHP experience so I'm ... A: Ah, there is your problem. In order for PHP code to successfully execute, it must be accessed with ...
|
| PHP form question! | 8/21/2009 | Kevin Cackler |
Q: I'm trying to bang out a form script for my web site, but I have very little PHP experience so I'm ... A: First of all, when debugging PHP scripts, it is often very helpful to add this at the top of your ...
|
| Formatting feedback message | 8/21/2009 | Robert Davis |
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 | Robert Davis |
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 | Robert Davis |
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 ...
|
| Passing variables to URL just like using $_GET, but without forms | 8/19/2009 | Kevin Cackler |
Q: What I am trying to do is to pass a variable called "types" to my url "www.mypage.com", just like we ... A: If that is the case, then yes, you are close. You would do something more like: echo '<a ...
|
| Passing variables to URL just like using $_GET, but without forms | 8/18/2009 | Kevin Cackler |
Q: What I am trying to do is to pass a variable called "types" to my url "www.mypage.com", just like we ... A: I guess I'm a bit confused at your question, as it seems like you've answered it yourself. <a ...
|
| numerical values to graph | 7/31/2009 | Kevin Cackler |
Q: how to convert data (numerical value) from your database (mySQL) to a bar graph to be dsplayed in a ... A: I always take a simple approach to this. I figure out the average of the scores (In your case, the ...
|
| numerical values to graph | 7/31/2009 | Robert Davis |
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 ...
|
| multilingual web site | 7/26/2009 | Kevin Cackler |
Q: I am developing a site with mulitilingual feature.its working fine without any problem.first the ... A: However, if you want to put a quick fix in place, you could simply add columns whenever the user ...
|
| PHP training | 7/11/2009 | Kevin Cackler |
Q: I am a long time computer consultant with programming background, and would like to learn PHP. Can ... A: my advice to you is to go out and download popular, well written scripts and just dive right in to ...
|
| Why use session? | 6/29/2009 | Robert Davis |
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 | Robert Davis |
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 ...
|