- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 7
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Check out my blog about PHP, HTML and CSS: http://blog.pepa.info/
Re: 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. … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 |. … | |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
Re: 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 … | |
Re: Hi Anirban, please send a link to what you have already programmed and describe what issues you're having. | |
Re: 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] | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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: … | |
Re: 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. … | |
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 … | |
Re: 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 … |