Forum: PHP Aug 1st, 2009 |
| Replies: 2 Views: 359 Any update or information about this problem? |
Forum: PHP Jul 31st, 2009 |
| Replies: 5 Views: 713 You can use a couple of things with this.
Read about URL Rewriting (a bit advanced thing, but you can try). Or search on this forum, you will get somethng about URL Rewriting using .htaccess.
... |
Forum: PHP Jul 31st, 2009 |
| Replies: 2 Views: 359 Hi,
I have a requirement where i have a windows server with IIS and PHP 5. My PHP script creates a file and windows OS is not allowing me to create a file using fopen function. It gives Permission... |
Forum: PHP Jul 14th, 2009 |
| Replies: 16 Views: 500 can you please be more specific in your requirement, or have you made somethng?? if yes, please post it here... i will help you out with this... |
Forum: PHP Jul 14th, 2009 |
| Replies: 3 Views: 232 something like this would be helpful:
switch($var)
{
case 1: include("1.php");
break;
case 2: include("2.php");
break;
case 3: include("3.php"); |
Forum: PHP Jul 14th, 2009 |
| Replies: 5 Views: 445 You can also try to limit the content of the description.
eg:
<td><?php echo substr(0,100,$desc)."...";
This will show only first 100 characters of the description. |
Forum: PHP Jul 14th, 2009 |
| Replies: 3 Views: 366 <?php
if($_POST['submit'] == "Send Email")
{
$sql = "Select * from tablename where id=".$_POST['id'];
$res = mysql_query($sql);
$data = mysql_fetch_array($res);
$to_email =... |
Forum: PHP Jul 14th, 2009 |
| Replies: 16 Views: 500 Well for this, you might have to modify the survey file a bit. Or perhaps you need some other file. I assumed survey.txt contains the questions.
From your point, i think it contains the answers (or... |
Forum: PHP Jul 14th, 2009 |
| Replies: 9 Views: 595 Thats good you solved it. But this $row is an array. So making it 0 is a bit strange. What other thing you can do is, you can declare it as an empty array:
$row = array();
$row =... |
Forum: PHP Jul 14th, 2009 |
| Replies: 8 Views: 715 Hi,
You can use XAMPP.. No issues..
But yes you need to setup and install MSSQL Server separately.
Make sure yyou create a tble in MS SQL and then run queries in MS SQL.
XAMPP contains an... |
Forum: PHP Jul 14th, 2009 |
| Replies: 16 Views: 500 And for the graph thing, refer to this forum :
http://www.daniweb.com/forums/thread120005.html |
Forum: PHP Jul 14th, 2009 |
| Replies: 16 Views: 500 Hi,
First of all before you read a text file (survey.txt), you need to define a particular way your file has the contents.
For eg: if you have your survey questions and options, then your file... |
Forum: PHP Jul 13th, 2009 |
| Replies: 2 Views: 281 Please be more specific. Any particular requirement of yours... |
Forum: PHP Jul 13th, 2009 |
| Replies: 2 Views: 229 Hi,
I hope you know how to send a mail to a user in php. If you know this, then the below code can help you.
Basic idea: Show a checkbox in front of every email id. Select and click a submit... |
Forum: PHP Jul 13th, 2009 |
| Replies: 3 Views: 234 Hi...
Ok, i got your problem. Since you would have put action in your form tag as register.php, so this is bound to go to the register.php page. Instead you can do one thing:
Set the... |
Forum: PHP Mar 30th, 2009 |
| Replies: 6 Views: 928 Hi,
Why to get the CURL Library individually and install it.. You can use XAMPP/WAMP type integrated environment apps, that gives you almost everythng.. They have built in curl extensions for... |
Forum: PHP Mar 27th, 2009 |
| Replies: 3 Views: 358 Once you post the data, insert it into the mysql database, use the mail function to send the confirmation through the email. Usually mail function does not work on local systems as no mail exchange... |
Forum: PHP Mar 27th, 2009 |
| Replies: 6 Views: 928 Hi.
Yes this thing works... Infact, the most famous payment gateway PAYPAL works on this principle...
If you want to make your transaction more secure, use CURL. Using this, you can get your... |
Forum: PHP Mar 27th, 2009 |
| Replies: 7 Views: 923 Usually you cannot change the ini file settings on the servers.
But If you want to change the upload_max_filesize, better use the ini_set function.
Using this function you can set the php.ini... |
Forum: PHP Mar 25th, 2009 |
| Replies: 4 Views: 372 Hi,
I agree with Chris... Use echo $sql_query to display if the query is working... If you are still unsure, try to use it through phpmyadmin and echo the query with values...
Secondly, when... |
Forum: PHP Mar 25th, 2009 |
| Replies: 6 Views: 437 Hi,
Try to debug your code as why the email is not going...
As far as mail function is concerned, it return true if mail is sent and returns false if mail is not sent.
So just use
echo... |
Forum: PHP Mar 18th, 2009 |
| Replies: 3 Views: 370 Hi All,
I have a PHP Application and a folder in that say, online_training.
Now i want this online_training to be secured.. It contains some pdf and swf files... I am using databases and PHP... |
Forum: PHP Dec 20th, 2008 |
| Replies: 11 Views: 1,179 Hi..
Here's the code to add to the database
<?php
// if the form has been posted, analyse it:
if ($_POST) {
foreach ($_POST as $field => $value) {
$value = trim($value);
} |
Forum: PHP Dec 19th, 2008 |
| Replies: 4 Views: 2,069 Hi..
Not much difference... The code behind both can remain same...
Just the extension is different...
What initially it started was that inc was used to include the files in plain html..... |
Forum: PHP Dec 19th, 2008 |
| Replies: 5 Views: 2,537 Hi kkeith29,
This thing you provided will not work...
Because the single quotes before the blah blah will point out an error..
single quote started before <a and it ends at confirm( ... and... |
Forum: PHP Dec 19th, 2008 |
| Replies: 22 Views: 1,642 I think you dint read my post carefully...
I posted
<?php
echo "<img src='../uploads/$tempFile' alt='Oops, not showing'>";
?>
I have put only two dots...
Try this... |
Forum: PHP Dec 18th, 2008 |
| Replies: 5 Views: 2,537 Use escape character which is a backslash (\)
<HTML>
<BODY>
<a href="delete.php" OnClick="return confirm('blah blah');"> Click here </a>
<?PHP |
Forum: PHP Dec 18th, 2008 |
| Replies: 4 Views: 1,647 Hi...
I read your post... This thing will be a problem to do because, you do not have anythng common in the Table1 and Table2. Im not sure how much you have idea about the Database Normalization... |
Forum: PHP Dec 18th, 2008 |
| Replies: 22 Views: 1,642 Hi...
In that echo part, use,
<?php
echo "<img src='../uploads/$tempFile' alt='Oops, not showing'>";
?> |
Forum: PHP Dec 18th, 2008 |
| Replies: 22 Views: 1,642 Im sorry...
It should be
<?php
echo "<img src='.../uploads/$tempFile' alt='Oops, not showing'>";
?> |
Forum: PHP Dec 18th, 2008 |
| Replies: 22 Views: 1,642 The last part should be..
<?php
echo "img src='.../uploads/$tempFile' alt='Oops, not showing'>";
?> |
Forum: PHP Dec 18th, 2008 |
| Replies: 4 Views: 1,647 Assuming that the two tables that you have are exactly the same in their structure.. i mean, both have same fields and same order of fields..
Then you can execute first query, then second query, and... |
Forum: PHP Dec 18th, 2008 |
| Replies: 2 Views: 340 Hi..
How are you trying to change the database...??
Seems you just getting out the data from the database..
And secondly...
in the if condition...
this condition is getting finished at echo... |
Forum: PHP Dec 18th, 2008 |
| Replies: 22 Views: 1,642 Hi..
It would be great if you could post me the whole code..
Including where the sessions are being set... Just to review..
Because from the above code, seems no problem here... |
Forum: PHP Dec 18th, 2008 |
| Replies: 11 Views: 1,179 Hi..
Always be very careful when you use so many conditions in if..
Count the no of opening brackets and closing brackets.. opening brackets are greater then closing brackets in if... |
Forum: PHP Dec 18th, 2008 |
| Replies: 1 Views: 340 Please be more clear in your requirement..
In first point... multi-select checkbox?? are u trying to say multiple select box...?? |
Forum: PHP Dec 18th, 2008 |
| Replies: 11 Views: 1,179 Oops i was trying to highlight the ) bracket (not curly one { )
I'll paste code here again..
// validate phone
if (is_numeric($phone) == FALSE ) {
$error = "Please enter a valid contact... |
Forum: PHP Dec 18th, 2008 |
| Replies: 11 Views: 1,179 Hi..
In validating phone you missed out one bracket { in the if condition
// validate phone
if (is_numeric($phone) == FALSE ) {
$error = "Please enter a valid contact number (must contain... |
Forum: PHP Dec 18th, 2008 |
| Replies: 22 Views: 1,642 Hi..
Whenever there is a permissions error, then you have to use chmod thing.. so u got that right...
And as far as the above thing is concerned, why are you using the temp_name...
The temporary... |
Forum: PHP Dec 17th, 2008 |
| Replies: 22 Views: 1,642 Seems you have kept your file inside some folder..
something like..
-uploads
-some_directory
-your_php_file
Just change the path name from ".../uploads" to "..uploads"
Hey.. wait a... |