Forum: PHP Mar 13th, 2009 |
| Replies: 2 Views: 482 I came across a write up in which the author was calling an include PHP file which has extension ".PHPX"
The argument is they are writing silver light applications in PHP.
May be someone needs... |
Forum: PHP Mar 9th, 2009 |
| Replies: 2 Views: 482 Has any one ideas about developing PHP pages that includes Microsoft's Silver Light?
More specifically, generating pages like the graphics on the micirosft home page. |
Forum: PHP Nov 12th, 2008 |
| Replies: 4 Views: 580 K2K,
can you close this by clicking on solved if your problem has indeed been solved? |
Forum: PHP Nov 12th, 2008 |
| Replies: 17 Views: 1,115 I am posting the Mfix class
class Mfix{
function db()
{
$met = mysql_connect("","","");
if (!$met)
{ |
Forum: PHP Nov 10th, 2008 |
| Replies: 17 Views: 1,115 |
Forum: PHP Nov 9th, 2008 |
| Replies: 4 Views: 580 K2K, sorry for not being clear enough but the procedure I meant was last_insert_id()
Try This
sql='insert into person (pid, lastname, firstname) values ("NULL", "$ln","$fn")'; // generate ID... |
Forum: PHP Nov 8th, 2008 |
| Replies: 4 Views: 580 From my understanding you have a form that needs to be filled but this form has both details of PERSON table and also the PHONE table.
Now, you want to know how to insert these details into the... |
Forum: PHP Nov 8th, 2008 |
| Replies: 17 Views: 1,115 I have done the correction and inserted var_dump($_SESSION['$endt']);
unfortunately there is an error::
Fatal error: Call to undefined method Mfix::write_meet()
from this line
if... |
Forum: PHP Nov 7th, 2008 |
| Replies: 17 Views: 1,115 I am posting the entire code, I tried to comment out the function call for add_time(); however, another function was next reported. can somebody look at the code below and offer advise?
<?php... |
Forum: PHP Nov 7th, 2008 |
| Replies: 17 Views: 1,115 Since I have Session already started in the pages, I decided to use session instead of global and the error is gone. I did a print of the $_session['$endt'] but had only one record as the output,... |
Forum: PHP Nov 6th, 2008 |
| Replies: 17 Views: 1,115 From my last post, I have done some work but the following function is given errors because I may be doing something wrong with the array.
I have populated an array by using
// $_SESSION array... |
Forum: PHP Nov 6th, 2008 |
| Replies: 17 Views: 1,115 Hi Folks, I have sorted the FOREACH and the printing into a single table - it was due putting '}' at the wrong place.
The corrected part is:
}
} |
Forum: PHP Nov 6th, 2008 |
| Replies: 13 Views: 1,910 Great stuff and thanks to everyone who shared an idea.
Thanx |
Forum: PHP Nov 6th, 2008 |
| Replies: 17 Views: 1,115 I have updated the code as you all requested.
I am using the
FOREACH ($_SESSION['check_array'] as $check_array)
because $_SESSION holds an array of IDS which I am using as reference to search... |
Forum: PHP Nov 5th, 2008 |
| Replies: 17 Views: 1,115 I just tried your correction but it did not work, therefore I have decided to display the whole query just in case you can tell me what I am doing wrong at this stage.
The program needs to check... |
Forum: PHP Nov 5th, 2008 |
| Replies: 9 Views: 440 May be you need to wait for some of the Gurus to have a look.
Sorry it didn't work |
Forum: PHP Nov 5th, 2008 |
| Replies: 17 Views: 1,115 If I run this query in the PHP Admin it displays 2 records
SELECT staff.emp_no, staff.fName, staff.lName, event.event_date, event.timeStart, event.timeEnd, event.emp_no, event.agenda
FROM... |
Forum: PHP Nov 5th, 2008 |
| Replies: 9 Views: 440 Looks like you will need to tidy the first part by including braces and also look at the structure of the if elseif else statement.
Your code should be
<?php
if((H >= 06 && H < 08) || (H >= 18... |
Forum: HTML and CSS Nov 5th, 2008 |
| Replies: 5 Views: 1,522 Any ideas to display contents of a database table using CSS may help. |
Forum: PHP Nov 5th, 2008 |
| Replies: 13 Views: 1,910 Great Stuff!
Your postings have giving me much understanding of most issues.
start_time is a varchar data type, is it possible to perform an addition on this variable?
Supposing $start_time... |
Forum: PHP Nov 2nd, 2008 |
| Replies: 13 Views: 1,910 Hmm, your inputs are great.
About the time, I do not want a user to type any characters less than 4
ie '0900'
and any value less than 0900 or greater than 1700 should be rejected
With the... |
Forum: PHP Nov 1st, 2008 |
| Replies: 13 Views: 1,910 I am going to tryyour solutions with the date - wht about the 24 hour time format with the respective time given:
0900 - 1700
and Strings to ensure they are not used as SQL injection by users? |
Forum: PHP Nov 1st, 2008 |
| Replies: 13 Views: 1,910 Hi Folks, is there a way to validate input fields using only PHP scripts before inserting into a MySQL database?
I have fileds for:
Date (DD-MM-YYYY)
Time (24 hour format between 0900 and 1700)... |
Forum: HTML and CSS Oct 31st, 2008 |
| Replies: 5 Views: 1,522 Well, may be I wasn't clear enough - but what I need done is to display the contents for AGENDA for an activity for each booked specific date / day into that months day / date column / box within the... |
Forum: PHP Oct 31st, 2008 |
| Replies: 7 Views: 1,604 Folks, I have solved the problem with the follwoing script just in case any one may be interested.
FOREACH statement worked for me alright by using it on the array to search the database
... |
Forum: HTML and CSS Oct 30th, 2008 |
| Replies: 5 Views: 1,522 |
Forum: PHP Oct 30th, 2008 |
| Replies: 7 Views: 1,604 I have sorted the MySQL syntax, however, I need help.
I can now read from only one table and this is the results.
I have separated the queries because I was not getting any record.
line 28,... |
Forum: HTML and CSS Oct 26th, 2008 |
| Replies: 5 Views: 1,522 Hi Folks,
To begin with, I know nothing about CSS - I have a PHP Calendar and I need to display my events for each month in the respective calendar month when it is selected.
I have been told I... |
Forum: PHP Oct 26th, 2008 |
| Replies: 7 Views: 1,604 The Event table has the following attributes
(`event_id`, `start_time`, `event_date`, `description`, `location`, `duration`, `emp_no`)
What is expected of the query is to search the event table... |
Forum: PHP Oct 24th, 2008 |
| Replies: 7 Views: 1,604 Shanti,
I think you are things out clearly, except it has date which is critical - because, I should be able to query the said date, time and ensure the emp_no also matches.
$get_event =... |
Forum: PHP Oct 23rd, 2008 |
| Replies: 7 Views: 1,604 I am trying to query a table where at least three conditions have to be met and then the outcome stored in an array and printed into a table.
I tried with the code, but I am having problems... |
Forum: PHP Oct 23rd, 2008 |
| Replies: 10 Views: 1,751 Thanks so much, it is working!!! |
Forum: PHP Oct 23rd, 2008 |
| Replies: 10 Views: 1,751 Kindly find below the whole code as requested
// Make a MySQL Connection
$conn = mysql_connect("", "", "")
or die(mysql_error());
mysql_select_db("",$conn) or die(mysql_error()); |
Forum: PHP Oct 22nd, 2008 |
| Replies: 10 Views: 1,751 Can somebody please be of HELP? |
Forum: PHP Oct 21st, 2008 |
| Replies: 10 Views: 1,751 I updated the code with the update above, I seem not to get the values of the 'emp_no' - it has gotten me confused, may be I am not doing something right. this is how the code looks now:
... |
Forum: PHP Oct 20th, 2008 |
| Replies: 10 Views: 1,751 Hi Chrelad and Shanti, Thanx for your inputs they have been helpful but haven't found the solution yet.
This is what the output was, when I tried Chrelad's
Array ( [0] => row['emp_no'] [1] =>... |
Forum: PHP Oct 16th, 2008 |
| Replies: 10 Views: 1,751 I have a form in which there is a table that displays a list from the MySQL with checkboxes to each displayed name. I have to make a selection out from the list by checking some the checkboxes all... |
Forum: PHP Oct 3rd, 2008 |
| Replies: 10 Views: 1,621 The statements are already in php tags so I had to take out the <? ?> with the answer you gave. It gave a an error and I had tried debugging but now the error jumps to the next code instead. So I... |
Forum: PHP Oct 2nd, 2008 |
| Replies: 10 Views: 1,621 Would somebody be kind enough to point out what to do to get the selected option to display in the TEXTAREA? |
Forum: PHP Oct 1st, 2008 |
| Replies: 10 Views: 1,621 I have made changes to the script, there has been an improvement - whereby if I click on the 'ADD To LIST' button, the TEXTAREA as well as the page stays put. However, the selected option is printed... |