Search Results

Showing results 1 to 40 of 42
Search took 0.01 seconds.
Search: Posts Made By: Rhyan
Forum: PHP Dec 1st, 2008
Replies: 5
Views: 587
Posted By Rhyan
Hm, I think that the question was whether multiple visits on a database-driven site would be handled well, because each php page, which requires data from the db, would initiate a new sql session as...
Forum: PHP Nov 28th, 2008
Replies: 3
Views: 409
Posted By Rhyan
Ok, the error says that no result has been returned from sql. This may be caused either by no data in tables or by a wrong sql statement.
I suggest you to put this line just after...
Forum: PHP Nov 28th, 2008
Replies: 2
Views: 882
Posted By Rhyan
Depends on what you expect to happen next. You can act both in PHP, manipulating the returned array result, or you can change your SQL so that sql returns the first and last name as one column,...
Forum: PHP Nov 27th, 2008
Replies: 2
Views: 455
Posted By Rhyan
FTP_PUT () overrites files without warning. I have no idea about ftp_fput(), but I suppose it will overwrite as well, that is - it will replace content.

Why don't you try with a simple txt file...
Forum: PHP Nov 25th, 2008
Replies: 8
Views: 1,787
Posted By Rhyan
Well, honestly, I do not like while loops, so I would go with scandir() function in php that returns an array of all files. Then I will manipulate the array and upload file by file, rather than...
Forum: PHP Nov 24th, 2008
Replies: 8
Views: 1,787
Posted By Rhyan
Hmmm.. I have had problem with file creation using php, so I had to change folder permissions to 777 and just then it worked.

I think also that you do not change the ftp_delete command, as it is...
Forum: PHP Nov 24th, 2008
Replies: 8
Views: 1,787
Posted By Rhyan
Check permissions for read/write/delete on the folder on the remote machine using the name / pass.
Forum: PHP Nov 21st, 2008
Replies: 4
Views: 842
Posted By Rhyan
The proposed code works 100%, but maybe you have not explained precisely what do you want to do, or what errors you have, etc.

What pritaeas proposed is a 100% working solution to what you have...
Forum: PHP Nov 20th, 2008
Replies: 9
Views: 1,448
Posted By Rhyan
Guys, I am actually interested in the single quotes used - i mean one time quotes used are like this [ ‘ ] or [ ’ ], the other time used they are as supposed to be [ ' ].
I am not sure whether PHP...
Forum: PHP Nov 20th, 2008
Replies: 10
Views: 1,590
Posted By Rhyan
Ooops...my bad. I thought you want to append content rather than replace it.

In this case 'w' is correct option for fopen to be used. Maybe w+, but in any way, as I have read your code more...
Forum: PHP Nov 20th, 2008
Replies: 10
Views: 1,590
Posted By Rhyan
You should use fopen with parameter 'a' or 'a+'instead of 'w' in this way if file exists new data will be appended, otherwise php will attemt to create it.
...
Forum: PHP Nov 20th, 2008
Replies: 19
Views: 1,645
Posted By Rhyan
Sorry, my bad - use % instead of / for division of total numbers against display numbers. I don't know exactly in English how this division is called, but the result is integer with remaining result...
Forum: PHP Nov 19th, 2008
Replies: 19
Views: 1,645
Posted By Rhyan
Yes, it is ok like that... Keep on
Forum: PHP Nov 19th, 2008
Replies: 19
Views: 1,645
Posted By Rhyan
Yes, you are correct.

One suggestion only

this code

IF ( ISSET($_GET[combo_2]) )
{
$combo_2 = $_GET['combo_2'];
IF ( $combo_2 <> 0 ) // check to see if user has selected something...
Forum: PHP Nov 19th, 2008
Replies: 19
Views: 1,645
Posted By Rhyan
Well, is it viable - 100%, because otherwise your SQL select will be different and you will present different results when you click on a page number.

What concerns the checkboxes - I did not get...
Forum: PHP Nov 19th, 2008
Replies: 19
Views: 1,645
Posted By Rhyan
Well,

we have to start it all over again obvioursly :)

The things go like this.

In order to retrieve results from a search query, you have to do the following

1. Check what get or post...
Forum: PHP Nov 19th, 2008
Replies: 3
Views: 361
Posted By Rhyan
You have omitted column ( : ) on case 11, and the break statement after it.
Forum: HTML and CSS Nov 19th, 2008
Replies: 5
Views: 1,184
Posted By Rhyan
To your last you have just posted.

the correct order to define styles for a link is
a:link, a:hover, a:visited and optionally a:active

As for the question where to do css coding - inside page...
Forum: HTML and CSS Nov 19th, 2008
Replies: 5
Views: 1,184
Posted By Rhyan
If you used class menu directly on a element, then instead of using a:hover in your css, you should use .menu:hover, .menu:visited, etc...
On the other hand, if you have applied menu class to your...
Forum: PHP Nov 19th, 2008
Replies: 19
Views: 1,645
Posted By Rhyan
Yes, by usign get i refer to defining your search form as mehtod=get.

This is how normally get works. You can see the get request as all the symbols in the browser address which appear like this...
Forum: PHP Nov 19th, 2008
Replies: 19
Views: 1,645
Posted By Rhyan
Marcmm,

Normally the sql statement should be re-run every time with the new parameters. This is why it is good to use $_GET, instead of $_POST, because $_GET does not explicitly require a form...
Forum: PHP Nov 18th, 2008
Replies: 2
Views: 658
Posted By Rhyan
Hmm...really strange. Normally LIMIT does not require brackets around the parameters, so LIMIT 0,5 should work for you.
I suggest you to run your sql query in an mysql graphical tool first and then...
Forum: PHP Nov 17th, 2008
Replies: 5
Solved: Time out error
Views: 542
Posted By Rhyan
keep in mind that if a wrong if/else or while loop has been written, you can eventually crash the server with an infinite request, because a wrong loop that loads itself will continue forever..., so...
Forum: PHP Nov 14th, 2008
Replies: 2
Views: 400
Posted By Rhyan
Yes, and you have reached the solution by yourself, but you just don't see it, or there is something that stops you from doing it this way.
Suppose you have a form with many check boxes. The form...
Forum: PHP Nov 13th, 2008
Replies: 11
Views: 3,110
Posted By Rhyan
You should do it like this

$run=mysql_query('select max(id) from interal');
$lastid = mysql_fetch_row($run);
$lastid=$lastid[0];

Then it should be OK.

Please note that last_insert_id()...
Forum: PHP Nov 13th, 2008
Replies: 11
Views: 3,110
Posted By Rhyan
You can find the last id in your table using the following select:

Select max(id) from Yourtable;

I am not sure if you can run an update using max(id) in where statement.
You can try ...
Forum: PHP Nov 10th, 2008
Replies: 2
Views: 754
Posted By Rhyan
I don't really understand your problem, but it seems you have the correct values you need already populated in the plaintext, however these values are surrounded by brackets, which cause the spell...
Forum: PHP Oct 2nd, 2007
Replies: 10
Views: 3,144
Posted By Rhyan
Is that the complete code you have entered? If it is so, I don't see your loging into mysql. I don't need to see that, however, first login into mysql, then perform the query.

it should be like...
Forum: PHP Oct 2nd, 2007
Replies: 10
Views: 3,144
Posted By Rhyan
It seems that your timestamp is in unix format. In order to convert it to a humanly readble one there is a function in php called unixtojd(unixdate);

So if it is a unix date, then this code should...
Forum: PHP Jun 27th, 2007
Replies: 9
Views: 2,700
Posted By Rhyan
Hi there,

you have to advise what is the message that the system throws when you are unable to insert data. There may be many reasons.
From your code I suspect the following:

1....
Forum: PHP Mar 8th, 2007
Replies: 4
Views: 14,681
Posted By Rhyan
Such an action is created easier with Javascript. Still you can do it with php, but after clicking on the drop-down menu, the form will be submited and code revalidated in order to show the value you...
Forum: PHP Feb 23rd, 2007
Replies: 5
Views: 2,770
Posted By Rhyan
Normally both PHP and HTML are ignoring multiple spaces and display them as one single space.

If you're sure you get the correct data from the database, trya simple test over the result.

$name...
Forum: PHP Feb 23rd, 2007
Replies: 5
Views: 2,770
Posted By Rhyan
Another option is to pre-format the string using substring_replace($string, $replacement) before posting to the DB, where the replacement should be &nbsp;
In this way you will have the string...
Forum: PHP Feb 17th, 2007
Replies: 3
Views: 2,857
Posted By Rhyan
I've had this problem with php 5.2.x on windows machine running apache 2.2.x. For some reason the PHP cannot find the mysql libraries, although they are present in the extension directory.

Running...
Forum: Database Design Feb 15th, 2007
Replies: 2
Views: 4,363
Posted By Rhyan
It really depends on how buzy your website is expected to be. In case you are expecting a lot of both read and write transactions for the flats or let's say country houses, you better keep them in a...
Forum: PHP Feb 15th, 2007
Replies: 13
Views: 3,833
Posted By Rhyan
Depends on what you want to do. RSS are good for blogs, news, forums where users get notified with rss, instead of e-mail, and so on.

If you want to make some sort of a on-line shop, or something...
Forum: PHP Feb 13th, 2007
Replies: 13
Views: 3,833
Posted By Rhyan
As I have told you earlier, all your code should be the same as it is for website 1(where the database is), however, on website 2 instead of localhost in your mysql_connect statement you should...
Forum: PHP Feb 13th, 2007
Replies: 3
Views: 1,511
Posted By Rhyan
Normally if you try to access the anypage.php via http, where the php engine is working on the server, the PHP code gets parsed and does not print in the html source. So if you're worried if it can...
Forum: PHP Feb 12th, 2007
Replies: 13
Views: 3,833
Posted By Rhyan
Well, it is not 1 but three questions :) .

Ok, now, I do not know how many and what opitons do you have on your control panel. But, if you are familiar with MySQL, you maybe will be able to do it...
Forum: PHP Feb 12th, 2007
Replies: 13
Views: 3,833
Posted By Rhyan
Are the 3 websites hosted on the same server?

If the 3 websites are not stored on the same server, then the server where the mysql database is should allow connections from the internet, not only...
Showing results 1 to 40 of 42

 


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

©2003 - 2009 DaniWeb® LLC