Search Results

Showing results 1 to 40 of 94
Search took 0.01 seconds.
Search: Posts Made By: sikka_varun
Forum: PHP Aug 1st, 2009
Replies: 2
Views: 348
Posted By sikka_varun
Any update or information about this problem?
Forum: PHP Jul 31st, 2009
Replies: 5
Views: 671
Posted By sikka_varun
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: 348
Posted By sikka_varun
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: 471
Posted By sikka_varun
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: 214
Posted By sikka_varun
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: 410
Posted By sikka_varun
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: 342
Posted By sikka_varun
<?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: 471
Posted By sikka_varun
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: 497
Posted By sikka_varun
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: 649
Posted By sikka_varun
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: 471
Posted By sikka_varun
And for the graph thing, refer to this forum :

http://www.daniweb.com/forums/thread120005.html
Forum: PHP Jul 14th, 2009
Replies: 16
Views: 471
Posted By sikka_varun
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: 263
Posted By sikka_varun
Please be more specific. Any particular requirement of yours...
Forum: PHP Jul 13th, 2009
Replies: 2
Views: 208
Posted By sikka_varun
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: 225
Posted By sikka_varun
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: 844
Posted By sikka_varun
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: 346
Posted By sikka_varun
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: 844
Posted By sikka_varun
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: 860
Posted By sikka_varun
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: 352
Posted By sikka_varun
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: 416
Posted By sikka_varun
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: 357
Posted By sikka_varun
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,106
Posted By sikka_varun
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: 1,825
Posted By sikka_varun
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,267
Posted By sikka_varun
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,545
Posted By sikka_varun
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,267
Posted By sikka_varun
Use escape character which is a backslash (\)


<HTML>
<BODY>

<a href="delete.php" OnClick="return confirm('blah blah');"> Click here </a>

<?PHP
Forum: MySQL Dec 18th, 2008
Replies: 2
Views: 782
Posted By sikka_varun
Since you have posted on MySQL Community, then it seems you are using MySQL.. Yes mysql demands its queries to be ended with a semicolon... Bt this mostly happens when you use the command line...
Forum: PHP Dec 18th, 2008
Replies: 4
Views: 1,516
Posted By sikka_varun
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,545
Posted By sikka_varun
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,545
Posted By sikka_varun
Im sorry...

It should be

<?php
echo "<img src='.../uploads/$tempFile' alt='Oops, not showing'>";
?>
Forum: PHP Dec 18th, 2008
Replies: 22
Views: 1,545
Posted By sikka_varun
The last part should be..

<?php
echo "img src='.../uploads/$tempFile' alt='Oops, not showing'>";
?>
Forum: PHP Dec 18th, 2008
Replies: 4
Views: 1,516
Posted By sikka_varun
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: 328
Posted By sikka_varun
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,545
Posted By sikka_varun
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,106
Posted By sikka_varun
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: 331
Posted By sikka_varun
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,106
Posted By sikka_varun
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,106
Posted By sikka_varun
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,545
Posted By sikka_varun
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...
Showing results 1 to 40 of 94

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC