Search Results

Showing results 1 to 40 of 100
Search took 0.01 seconds.
Search: Posts Made By: petr.pavel
Forum: PHP Feb 16th, 2009
Replies: 8
Views: 831
Posted By petr.pavel
Hi there,
since you don't have a control over the server there's nothing you can do to in order to make the default mail() function work.

To be really really sure create a file with just one...
Forum: MySQL Sep 20th, 2008
Replies: 13
Views: 2,739
Posted By petr.pavel
You're being imprecise. What "mysql" displays it right? phpMyAdmin? or you're logged into MySQL using default command line client? If yes then what operating system you run the client on (Windows? Or...
Forum: MySQL Sep 20th, 2008
Replies: 13
Views: 2,739
Posted By petr.pavel
That's understandable, only one of them will work. Just a question: is the text really in Greek language? I don't know what your nationality is so I don't know if you're saying Greek meaning "some...
Forum: MySQL Sep 19th, 2008
Replies: 13
Views: 2,739
Posted By petr.pavel
Try saving it to .html, open it in Firefox/Explorer, select encoding the way stephen84s described and see if your source is all right.

Can you post here the script you use for importing? Maybe the...
Forum: MySQL Sep 19th, 2008
Replies: 13
Views: 2,739
Posted By petr.pavel
Hi Punkis, my original comment still applies. You should focus on setting charset during import and setting charset in your application for regular usage.
Forum: MySQL Sep 18th, 2008
Replies: 13
Views: 2,739
Posted By petr.pavel
Hi Punkis,
character encoding mismatch can be a nightmare.
The database, tables and attributes all have charset and collation. Make sure it's set to UTF8 and utf8_general_ci (or...
Forum: PHP Sep 18th, 2008
Replies: 1
Views: 454
Posted By petr.pavel
Hi Welbzobeng,
have a look at the query. After SELECT and before FROM it lists what attributes it will fetch for you. files.* means "all attributes from table files so your artist should be covered....
Forum: PHP Sep 18th, 2008
Replies: 3
Views: 816
Posted By petr.pavel
Hi Venom Rush,
please include a link to the project so that we don't have to search for it.
I would be surprised if they didn't have a usage example on their website.
Forum: PHP Sep 18th, 2008
Replies: 2
Views: 680
Posted By petr.pavel
Hi Namratashukla, I don't see a problem in updating a large number of records in database tables. You ask how - the answer is using UPDATE or INSERT statement.

I'm not sure if you're new to SQL...
Forum: PHP Sep 18th, 2008
Replies: 1
Views: 503
Posted By petr.pavel
Hi Asyieen,
I'm afraid the reason why nobody has answered so far is that it's not very clear what you actually want.

You posted a script that inserts records into projectcontact and user_upload....
Forum: PHP Sep 18th, 2008
Replies: 8
Views: 2,073
Posted By petr.pavel
Helo Bear,
I guess the immediate problem is that you reference $checkbox instead of $_POST['checkbox']. You use $_POST['delete'] so you probably work in an environment with register_globals off.
...
Forum: PHP Sep 4th, 2008
Replies: 4
Views: 3,547
Posted By petr.pavel
Uhm, I find it difficult to believe that a CSS style could add an apostrophe.
Can you give me an URL with the HTML table you're trying to import? Or can you attach it here?
Petr
Forum: PHP Sep 4th, 2008
Replies: 1
Views: 437
Posted By petr.pavel
Hi there,
you're using function getParam() that isn't PHP built-in function.
So I guess you forgot to include a file that defines it.
Forum: PHP Sep 4th, 2008
Replies: 2
Views: 562
Posted By petr.pavel
I'm afraid you're not giving the full story here.
Is this script is embedded in a HTML document that has the Home title?
And you need to include (using require()) a part of this HTML document,...
Forum: PHP Sep 4th, 2008
Replies: 1
Views: 601
Posted By petr.pavel
No. PHP runs on a server while you want to drag and drop on a client (your browser). You will have to use AJAX, flash or Java applets for this kind of magic.
For that I suggest asking in different...
Forum: PHP Sep 4th, 2008
Replies: 1
Views: 343
Posted By petr.pavel
Hi there,
you're treating $value as if it were an object while it is in fact a string "".
You cannot write $value->id unless you first assign an instance of an object to $value.
Forum: PHP Sep 4th, 2008
Replies: 1
Views: 1,068
Posted By petr.pavel
Hi Khanbaba,
the problem is not related to your stored procedure.
mysql_connect doesn't return an object but a resource pointer. Therefore you cannot use

$resource = mysql_connect(...);...
Forum: PHP Sep 4th, 2008
Replies: 1
Views: 565
Posted By petr.pavel
Hi Kwesiaryee,
I suggest you try a server like scriptlance.com or offer a bounty for this task. It's too much work to do for free.

My understanding is that people in this forum help with...
Forum: PHP Sep 4th, 2008
Replies: 4
Views: 3,547
Posted By petr.pavel
Hi there,
in HTML apply this

style="mso-number-format:'\@';"

to cells with your . values or define a CSS class with this style and apply the class.
Forum: PHP Jun 29th, 2008
Replies: 0
Views: 943
Posted By petr.pavel
Hi there,
I have read a few articles about WordPress plug-ins and themes but I can't figure out how to create a completely new page that uses theme.

Let's say that my blog is set up to display...
Forum: PHP Jun 10th, 2008
Replies: 5
Views: 2,647
Posted By petr.pavel
I'm sorry I assumed that you are running Windows on your development box and that would be why GD doesn't find the font in Windows font folder.

I'm quite sure that you don't have to configure GD...
Forum: PHP Jun 10th, 2008
Replies: 5
Views: 669
Posted By petr.pavel
Either you forgot to attach the source code or you got the tenses wrong. Please re-read your posts in a preview before posting. They contain a lot of typing errors that further confuse the matter.
...
Forum: PHP Jun 10th, 2008
Replies: 5
Views: 669
Posted By petr.pavel
Yes, that's because of the exit() statement. Just remove it and the script will continue.


Maybe you removed the md5() function completely, I don't know. Can you post the whole script as an...
Forum: PHP Jun 10th, 2008
Replies: 1
Views: 579
Posted By petr.pavel
Hi there,
I'm not sure I understand.

It sounds like you already have what you want. You said you want to display a file size in a browser after user selects the file to be uploaded. Why can't you...
Forum: PHP Jun 10th, 2008
Replies: 2
Views: 973
Posted By petr.pavel
Hi there,
the bug is in this if statement. Try using parentheses to make your intentions more clear:

if ( (!isset($filter)) && ($page == 1) )


Frankly I would just write this instead of the...
Forum: PHP Jun 10th, 2008
Replies: 1
Views: 541
Posted By petr.pavel
Good news, it works now :-)
Tested in MSIE and Firefox. I do see the banner - when I switch off my Adblock, of course ;-)

I think it was either Google problem or something with your connection....
Forum: PHP Jun 10th, 2008
Replies: 1
Views: 679
Posted By petr.pavel
Hi there,
sorry I can't help you but you won't solve this situation by having a discussion in a forum. What you really need is someone with CakePHP and ASP experience and you will have to pay...
Forum: PHP Jun 10th, 2008
Replies: 1
Views: 472
Posted By petr.pavel
Hi Tanha, why do you think that using classes and objects will help you achieve what you want?
It's just a different programming method as compared to linear, or spaghetti :-) code.
If you insist...
Forum: PHP Jun 10th, 2008
Replies: 5
Views: 2,647
Posted By petr.pavel
Hi there,
I suspect that it fails because it looks for the font in a wrong directory.
You can either specify the path in the call of imagettfbbox

imagettfbbox($font_size, 0,...
Forum: PHP Jun 10th, 2008
Replies: 5
Views: 669
Posted By petr.pavel
Hi there,
the main thing is that you start with applying md5() to the password so even when the password was empty you get something (this: d41d8cd98f00b204e9800998ecf8427e). The solution is to test...
Forum: PHP Apr 3rd, 2008
Replies: 3
Views: 1,021
Posted By petr.pavel
Hi I also used to set up my own configuration until I got fed up with it and switched to XAMPP. Give it a try:
http://www.apachefriends.org/en/xampp.html

However, if you can't or don't want to...
Forum: PHP Apr 3rd, 2008
Replies: 2
Views: 1,514
Posted By petr.pavel
Hi there, I have no experience with printing directly from PHP but here's what I found in PHP manual. I hope it helps.

$handle=printer_open("EPSON TM-T88III Receipt");
printer_set_option($handle,...
Forum: PHP Apr 3rd, 2008
Replies: 1
Ftp
Views: 470
Posted By petr.pavel
Hi Cente, I got a bit lost in your description but here're my five cents:

to redirect a browser to FTP use header("Location: ftp://example.com/directory/file"); . It's the same as with HTTP.
...
Forum: PHP Apr 3rd, 2008
Replies: 2
Views: 877
Posted By petr.pavel
I'm afraid it isn't possible. But if you tell us why would you ever want such a thing maybe someone will come up with a better solution.
Forum: PHP Apr 3rd, 2008
Replies: 1
Views: 1,720
Posted By petr.pavel
Hi Anish, I don't quite understand your description. What do you mean by "pass null values to integer"?

PHP NULL values won't be passed to MySQL as NULL you have to explicitly type NULL.
Example:...
Forum: PHP Apr 3rd, 2008
Replies: 1
Views: 507
Posted By petr.pavel
Hi Anitha,
I'm sorry but "0245875224485" isn't a unicode format for anything but "0245875224485".
"Anitha" in unicode would again be "Anitha". I guess that when you try to convert Unicode to some...
Forum: PHP Apr 3rd, 2008
Replies: 1
Views: 1,808
Posted By petr.pavel
Hi, please tell us what's wrong with the code, or what do you want from us.
Forum: PHP Apr 2nd, 2008
Replies: 1
Views: 831
Posted By petr.pavel
Hi there, I don't see that you'd be using $gametype or $gamesize. Could you please add some code that proves that they are empty indeed?

Also did you try displaying $_FILES['game']? Add...
Forum: PHP Apr 2nd, 2008
Replies: 2
Views: 1,262
Posted By petr.pavel
Hi there,
locate httpd.conf and change
Listen 80
to some other port number, for example
Listen 81

After starting up your Apache you'll be able to reach it via http://localhost:81
Forum: PHP Apr 2nd, 2008
Replies: 2
Views: 2,464
Posted By petr.pavel
Hi there, could you please let us know what isn't working? I.e. what is the behaviour you expect and what is it doing instead.

BTW: Are you sure you need all that JavaScript hassle with onClick on...
Showing results 1 to 40 of 100

 


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

©2003 - 2009 DaniWeb® LLC