- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I've read tutorial on tutorial and I try to work with Object Oriented PHP but the thing is that I find it rather complex. When I create a class I must include it in the current working document. It doesn't work as in Java when the compiler finds the script … |
|
Hi, I'm trying to read a cookie that I've set with php with javascript. The cookie is for storing the username when logging in to a site. If the cookie has been set I want the focus in the inline popup to target the password field so that the user … |
|
Hi everybody! I'm creating a minor feed reader and I wonder how I can best store information on which feeds have been read or not? I was thinking of storing an url to the feed, the post title and the time it was posted. Would this be sufficient? |
|
Hello everyone! Lately I've been working on my own custom CMS and development library for websites. I know that there are A LOT of CMS:es currently out there but the thing is that I've always wanted a simple CMS that doesn't need a lot of dirty tweaks to get it … |
|
I've done some research on JOINs and UNIONs but haven't achieved what I want to do since something I do must be terribly wrong. I have the following SQL-statement: [CODE] SELECT posts.*, channels.channel FROM posts INNER JOIN channels ON posts.channel_id = channels.id ORDER BY posts.created DESC [/CODE] What I want … |
|
Re:
I found out some years ago that some woods will actually fluoresce under UV light and that I can photograph that glow. In fact, I estimate over 10$ of the 3,000+ actual wood species samples I have glow under black light. I have worked on for some time the TAXA … |
|
I know that this has been discussed several times before and that "PDO (PHP Database Object) works with multiple databases", "PDO supports dynamically generated prepared statements" (meaning that it can bind parameters from an unknown amount of parameters, which MySQLi can do with a bit of trixing). But I've never … |
|
Since no one answered to my previous thread about a similar issue I rephrase the problem and try my luck again :) I have rather recently started working with prepared MySQLi-statements in php. From what I've learned is it supposed to be much more effective and secure so I've tried … |
|
Hi! I have a problem with binding parameters dynamically in my mysqli_stmt objects. As I don't know how many parameters which will be put into this function I must bind the parameters dynamically. Though I cannot understand what's wrong with this method: [CODE] public function execute($unprp_stmt, $data){ //Prepare the stmt … |
|
Re:
hey, i have the following webpage: [URL="http://www.thijscream.nl/wijnkado/mouserend.php?id=0&sid=0"]http://www.thijscream.nl/wijnkado/mouserend.php?id=0&sid=0[/URL] there everything if fine, the footer is on the bottom of the page. but now i have a page with some artikels on it and then it's still on the same place instead of lowering to the bottom(as shown on the link below) … |
|
Hi! I have a question regarding a problem I've faced dealing with object oriented PHP. I'm used to always return a value after a method has been executed and then use the returned value in other methods. But that's because I've always done that in procedural programming. So I wonder … |
|
Let's say that I want to retrieve rows from just one table and exclude rows with certain ID's. Hypothetical table: [CODE] +----+-------+------+ | id | value | type | +----+-------+------+ | 1 | foo | cool | +----+-------+------+ | 2 | bar | cool | +----+-------+------+ | 3 | lor … |
|
Hi! Is it possible to pass objects like you do in JavaScript in PHP: [CODE] function example($args){ ... } example({foo: 'bar', lorem: 'ipsum'}); [/CODE] Or something similar to this? So that you both get an "infinite" number of arguments and a chosen name for the variable ($args['foo']). I know you … |
|
If i assign a value to a variable like this in PHP: [CODE] $var1 = 123; [/CODE] and then assign another value to another variable like this: [CODE] $var2 = $var1; [/CODE] Are those two variables pointing to the same value in the memory (like in Java if I'm not … |
|
I'm trying to create an object derived from the MySQLi object to easier handle database connections for my application. The thing is that I do not know how I shall be able to initalize the connection and keep it contained in the object. Let me illustrate what I mean: [CODE] … |
|
Hello! I just want everyone to know that I'm a linux beginner and have just started learning beyond the very basics. The problem I'm having is that only one account can access the shared folders (and it's not root) and I've been searching the internet like crazy but still haven't … |
|
Re:
Hi, I added a scroll bar in div with a fixed height using css as follows: #container { width: 1000px; margin: 0px auto; } #content { background-position: 190px 0px; } .central-content { padding: 0 1px 15px 1px; min-height: 500px; max-height: 500px; overflow: auto; } It works ok, but the problem … |
|
If I would have a simple function like this: [CODE]jQuery.fn.example = function(){ this.remove(); }[/CODE] and call it with an empty selector: [CODE]$().example();[/CODE] What element would then [B]this[/B] be pointing to? Or is there a way to make a function able to be executed through both [B]$.example()[/B], without a selector, and … |
|
Re:
good day! i can't send an email in php. i have this code: <html> <body> <?php mail("jjemphoung@yahoo.com","Testing","Hello","From: [email]flatOne@yahoo.com[/email]"); ?> </body> </html> when i run this the output is Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use … |
|
Re:
Setting up a website, what would be the best program for a Template? the widest source of different Templates, i no that Dreamweaver has a few options... any others?? |
|
Re:
Hi Everyone. I'm busy with a advanced search function, what I want to do is when a client clicks on a tab/button it should open a windows where he can define his search even more. If anyone could point me in the right direction of what I can use or … |
|
Re:
I've never used any CMS as a developer. Now I think it's time for me to start getting familiar with them. There are three out there I laid my eye on - WordPress, Joomla!, Drupal. Which one should I begin with? Thank you! |
|
Re:
can someone show me how to call two functions at the same time... and is it possible calling them with the onShow command? thanks |
|
Re:
Hi I was wondering if someone could help me with a code for my website? Basically what I want to do is have a drop down list that is essentially a matrix in the sense that picking one option leads to another and eventually you can narrow down the results … |
|
Re:
Hi, I need to hide the login screen of my web site whenever a customer has logged in..It should be done with javascript right?? Any suggestions?? Can someone help me to do this?? Thanks....:) |
|
Re:
Hi guys, I have a page that echos fields from a database based on various text and combo box selections. I am trying to get it so that when the page is refreshed, the echoed vales are still displayed, even if the form fields are reset. Im under the impression … |
|
Re:
I have a Join page on my site(which also has a login form). Is it easy to write java-script to determining if they do not have matching passwords(re-type password for Join form) or a valid email without redirecting you from the page? That way if something is wrong it shows … |
|
Re:
For instance, the following script works fine without html <html><head></head><body><?php $im = imagecreatetruecolor(100, 100);// sets background to red $red = imagecolorallocate($im, 255, 0, 0); imagefill($im, 0, 0, $red); header('Content-type: image/png'); imagepng($im); imagedestroy($im); ?></html> How could we include a php gd library into html? |
|
Re:
Hi, I am trying to post a link to the following website on my blog: [url]http://donate.ifrc.org/[/url] the default option for cause you would like to donate to is: haiti. Id like to edit the url so that when someone clicks it the selected option should be Pakistan. Maybe something like: … |