Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
87% Quality Score
Upvotes Received
7
Posts with Upvotes
7
Upvoting Members
7
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
4 Commented Posts
4 Endorsements
Ranked #397
Ranked #779
~18.6K People Reached
About Me

Check out my blog about PHP, HTML and CSS: http://blog.pepa.info/

Favorite Forums
Favorite Tags
Member Avatar for jeconje

It depends on how you want to process the information after it has been stored. If you plan to use complex queries like "students who like (music AND (sports OR adventure))" then the only viable solution is 1:n - having a db table of relationships between students and their interests. …

Member Avatar for jeconje
0
251
Member Avatar for soapyillusion

I haven't been working with cake shell script for a while but in my last project (CakePHP 1.2.5) I had to cd into the app directory first. Then the script placed the files where they belonged. So make sure you're in your "app" directory before executing cake.bat. I just noticed …

Member Avatar for petr.pavel
0
88
Member Avatar for zack_falcon

Hi Zack, the bug will probably lie in a piece of code that you haven't pasted. It appears that the first piece of code you pasted isn't related to the second in any way. It doesn't show how values end up in $_SESSION['nameItem'] or $_SESSION['quanItem']. Please attach a complete source …

Member Avatar for zack_falcon
0
94
Member Avatar for xxreenaxx1

Hi xxreenaxx1, first off: a code that isn't indented properly is hard to read. Please help us help you, and write code as [CODE] if (...) { ... ... } [/CODE] and not [CODE] if (...) { ... .... } [/CODE] Anyway, this is how you insert values into a …

Member Avatar for petr.pavel
0
3K
Member Avatar for jacob21

Hi Jacob, the easiest way would be to use some mailing library like XPertMailer [url]http://www.xpertmailer.com/[/url]. It would take care of all the boring stuff related to sending attachments or html e-mails or validating e-mail addresses, or even protecting yourself from e-mail injection attack. If you however, insist on implementing it …

Member Avatar for makman99
0
121
Member Avatar for andrewliu

Hi andrewliu, you will have to set a limit one way or another: a) either you say "show max $x rows per column b) or split the output into $y columns I guess you prefer (a). There's no (widely supported) HTML tag for columns so either you will have to …

Member Avatar for petr.pavel
0
206
Member Avatar for AntiQuark

Hi AntiQuark, the first array item will always contain the whole captured area so for getting the individual parts, you need to start with key 1. In your case I would try simplifying the regexp by making it more universal. Let's say it's a sequence of key=value separated with |. …

Member Avatar for petr.pavel
0
108
Member Avatar for lit108

Hi lit108, your code doesn't show where you get the XML string. Are you calling addFeeds() with $urls from the first snippet? If you don't modify or create the XML then the XML stored in the database must already be bad. It's probably not that 'more than 2 urls' trigger …

Member Avatar for petr.pavel
0
94
Member Avatar for vijiglad

Hi vijiglad, you can't directly copy from a server to a server without the file going through your server (not with PHP). The solution is to split the procedure into two steps: 1] download to a temporary location on your server 2] upload to the target server and then delete …

Member Avatar for petr.pavel
0
79
Member Avatar for xxreenaxx1

Please don't create multiple threads with the same question. Here's your answer: [url]http://www.daniweb.com/web-development/php/threads/352655[/url]

Member Avatar for petr.pavel
0
141
Member Avatar for jacob.irwin

Hi Jacob, the query for creating the database would be create table login `name` varchar(255), `user` varchar(255), `pass` varchar(255), `birthday` date; Please consider encrypting the password using MySQL function PASSWORD(). If your site gets hacked you won't compromise your users passwords. (It will be enough that the hacker gets their …

Member Avatar for petr.pavel
-2
158
Member Avatar for anirban1087

Hi Anirban, please send a link to what you have already programmed and describe what issues you're having.

Member Avatar for petr.pavel
0
81
Member Avatar for mexabet

Hi Mexabet, unless you want to create the thumbnail yourself (e.g. [url]http://www.zubrag.com/scripts/website-thumbnail-generator.php[/url]) you could use some of these: [url]http://thumbnails.iwebtool.com/[/url] [url]http://www.splitbrain.org/blog/2007-08/23-free_website_thumbnail_services[/url] I don't want to sound rude but... did you use Google before asking (query: website thumbnail)? As for PageRank, try looking into source code of these Firefox extensions: [url]https://addons.mozilla.org/cs/firefox/search?q=pagerank[/url]

Member Avatar for sarajohnmich
0
143
Member Avatar for ryy705

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 [code=php] imagettfbbox($font_size, 0, 'c:/windows/fonts/monofont.ttf', $code) [/code] or use environment variable to set the path for all calls. [code=php] putenv('gdfontpath=c:/windows/fonts/'); [/code] I'm not …

Member Avatar for mcscreech
0
1K
Member Avatar for maydhyam

Hi maydhyam, if you use a professional hosting (someone has set up the server for you) you don't have to worry about anything. Just use mail(). If you're running your own server (e.g. development server) then you need to check php.ini section [mail function]. For Linux you have to verify …

Member Avatar for jprahst32
0
149
Member Avatar for Punkis448

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 utf8_your_language_code). Then you need to make sure that you select a character set both when importing into and when reading from the …

Member Avatar for Punkis448
0
2K
Member Avatar for bear24

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. There is a few other things that I would like to draw your attention to: * I guess you wanted to use …

Member Avatar for bear24
0
128
Member Avatar for namratashukla

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 (then google for "sql tutorial" or "sql reference") or if you didn't provide …

Member Avatar for nikesh.yadav
0
108
Member Avatar for welbyobeng

Hi Welbzobeng, have a look at the query. After SELECT and before FROM it lists what attributes it will fetch for you. [icode]files.*[/icode] means "all attributes from table files so your artist should be covered. You didn't say what attributes your db table "files" has so I can only assume …

Member Avatar for petr.pavel
0
130
Member Avatar for Venom Rush

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.

Member Avatar for Venom Rush
0
141
Member Avatar for asyieen

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. And you say you want to display "these two elements". Word "element" is usually used for referencing …

Member Avatar for petr.pavel
0
103
Member Avatar for lukus89

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, right? If my guesses are right then: You cannot have two TITLE tags in …

Member Avatar for langsor
0
139
Member Avatar for pabz_sarquilla

Hi there, in HTML apply this [code=html] style="mso-number-format:'\@';" [/code] to cells with your . values or define a CSS class with this style and apply the class.

Member Avatar for pabz_sarquilla
0
2K
Member Avatar for god_1896

Hi there, you're using function [icode]getParam()[/icode] that isn't PHP built-in function. So I guess you forgot to include a file that defines it.

Member Avatar for petr.pavel
0
115
Member Avatar for sureshrajagopal

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 forums on this server.

Member Avatar for petr.pavel
0
40
Member Avatar for god_1896

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.

Member Avatar for petr.pavel
0
90
Member Avatar for khanbaba

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 [code=php] $resource = mysql_connect(...); $resource->prepare(...); [/code] You have probably confused it with mysqli() set of functions: [code=php] $mysqli = new mysqli(...); $stmt = $mysqli->prepare(...); [/code] btw: …

Member Avatar for petr.pavel
0
114
Member Avatar for kwesiaryee

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 technical difficulties, single and isolated problems. People who need to know something ask questions here. …

Member Avatar for petr.pavel
0
101
Member Avatar for 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 post detail with the following url: [url]http://myblog.com/2008/06/29/this-is-title[/url] I want the comments listing …

0
51
Member Avatar for helraizer

Hi there, the bug is in this if statement. Try using parentheses to make your intentions more clear: [code=php] if ( (!isset($filter)) && ($page == 1) ) [/code] Frankly I would just write this instead of the whole if/else if bunch: [code=php] if ($page == 1) imagegif($image, "user/" . $user …

Member Avatar for helraizer
0
95