Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~17.4K People Reached

55 Posted Topics

Member Avatar for gunnarflax

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 …

Member Avatar for odeskavita
1
547
Member Avatar for gunnarflax

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 …

Member Avatar for Zsolt
0
5K
Member Avatar for gunnarflax

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?

Member Avatar for vibhaJ
0
117
Member Avatar for gunnarflax

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 …

Member Avatar for gunnarflax
0
200
Member Avatar for gunnarflax

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 …

Member Avatar for debasisdas
0
123
Member Avatar for gazzy1

That depends on which SQL-database you are talking about because SQL is a language which is used by plenty of databases. Some of them are: MySQL, PostgreSQL, Firebird. But I believe you are talking about the MySQL database and yes, MySQL is extensively supported in PHP.

Member Avatar for debasisdas
0
76
Member Avatar for billmudry

I can't say I found a solution to your problem but I went through your code and saw some things you could try changing. First: only write [B]echo[/B] statements in lower case, now you write it "Echo" and "ECHO". Secondly: There are some standards you've missed which I've tried to …

Member Avatar for gunnarflax
0
185
Member Avatar for gunnarflax

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 …

0
80
Member Avatar for gunnarflax

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 …

0
164
Member Avatar for gunnarflax

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 …

Member Avatar for gunnarflax
0
433
Member Avatar for thijscream

I'm sorry but this isn't a PHP question, this should be moved to the correct forum :/

Member Avatar for gunnarflax
0
102
Member Avatar for gunnarflax

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 …

Member Avatar for gunnarflax
0
161
Member Avatar for gunnarflax

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 …

Member Avatar for gunnarflax
0
104
Member Avatar for gunnarflax

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 …

Member Avatar for gunnarflax
0
276
Member Avatar for gunnarflax

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 …

Member Avatar for gunnarflax
0
103
Member Avatar for gunnarflax

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] …

Member Avatar for gunnarflax
0
136
Member Avatar for gunnarflax

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 …

0
99
Member Avatar for gssmithers

I think you must describe your problem better since people seem to not being able to understand your problem :) atleast I can't.

Member Avatar for ko ko
0
94
Member Avatar for gunnarflax

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 …

Member Avatar for lambing
0
308
Member Avatar for jjemphoung

I think it is because you don't have a mailserver, only a webserver. If not WAMP includes a mailserver but I don't think it does :/

Member Avatar for sithembisophp
0
185
Member Avatar for Master Rattley

What you should do is use templates for Content Management Systems and not just from a program like DW. Try integrating a CMS like Joomla! or WordPress on your server and then download a template for that particular CMS. That is my advice :)

Member Avatar for Master Rattley
0
115
Member Avatar for LRNPHP

You have to do it with JavaScript. When the user clicks the button a new div should be added or made visible in the body of the document in a layer on top of everything else (higher z-index, meaning it must also have absolute position). The easiest way to do …

Member Avatar for LRNPHP
0
170
Member Avatar for levsha

From my experience is Wordpress the easiest one to grasp. Drupal has an enormous learning curve and will take quite a while to fully understand and I haven't tried Joomla! yet. My suggestion is that you first and foremost figure out what kind of site you will use it for: …

Member Avatar for levsha
0
98
Member Avatar for ekseks

you can't call two functions at the same time, but why would you want to? You can just have them execute one by one. The browser executes the functions fast enough anyway so you won't notice any difference :)

Member Avatar for ekseks
0
170
Member Avatar for scottyg13

If none of the following options are dependent of the choice of the former one then you don't need JavaScript, you can simply have several dropdownlists :) [CODE] <select name="make"> <option value="ford">Ford</option> <option value="volvo">Volvo</option> <option value="saab">Saab</option> </select> <select name="colour"> <option value="red">Red</option> <option value="green">Green</option> <option value="blue">Blue</option> </select> <select name="year"> <option value="1990">1990</option> …

Member Avatar for kar123
0
112
Member Avatar for sami.asanga

Or you just have a different site layout depending on if he's logged in or not, this is done by having a simple [B]if-statement[/B] on the [B]session variable[/B]. The way you describe it must the login procedure be done with [B]AJAX[/B] which often isn't needed.

Member Avatar for gunnarflax
0
117
Member Avatar for leemp5

You could display it via sessions instead of cookies which I find much more convenient. Or you could integrate the whole thing with AJAX if you know your way around JavaScript.

Member Avatar for gunnarflax
0
123
Member Avatar for bjeffries

You do that with JavaScript. What you do is retreiving the values from the both password fields and compare them to each other, if they do match you change the "not the same image" to the "the same image". The best way would probably be that the script is called …

Member Avatar for gunnarflax
0
245
Member Avatar for dflor

Doesn't it have something to do with that when you are using just php then you view an image in a browser? Meaning that you use it as a picture viewer just as you would if you were to right click (windows) on a picture on your desktop and choose …

Member Avatar for gunnarflax
0
147
Member Avatar for cortical

You could do it through a form which sends the information to a php-script which redirects the user to the donation site. The script could look something like this: [CODE] $desc = mysql_real_escape_string($_GET['desc']); $redirect = "http://donate.ifrc.org/?desc=".$redirect; header("location: $redirect"); [/CODE] Or you could retrieve the values by JavaScript but I guess …

Member Avatar for gunnarflax
0
190
Member Avatar for amarjit111

As I'm not that hardcore "normal" JavaScripter you will get my solution done with the jQuery library: [CODE] //When the user has clicked an option in the dropdownlist... $(".yesOrNo").focusOut(function(){ //if the submitted value is true if ($(this).val()) { //Then show the rest of the row var restOfRow = $(this).parent(); restOfRow.children().css("display", …

Member Avatar for gunnarflax
0
189
Member Avatar for priyam1309

I'm actually doing my own plugin for this kind of popups, based on user templates, if you want to you could be my beta tester :)

Member Avatar for gunnarflax
0
104
Member Avatar for gunnarflax

Hi! I've started learning writing javascript objects with literal notation... [CODE]something = { variable: "value", method: function(){ //code } }[/CODE] instead of the usual syntax... [CODE]function something(){ variable = "value"; function method(){ //code } }[/CODE] the problem is that it's hard for me to adapt procedures which I'm used to …

Member Avatar for gunnarflax
0
200
Member Avatar for deepucando
Member Avatar for Kligham

I would just have used the jQuery selector to select the radiobutton with the corresponding name :) but I'm a jQuery freak as well so don't listen to me x)

Member Avatar for Kligham
0
98
Member Avatar for george61
Member Avatar for gunnarflax
0
66
Member Avatar for DeadLikeMe

First you should always make sure that you prevent any possible SQL-injections: [CODE] mysql_real_escape_string($_GET['variable']) [/CODE] This will make sure no one is trying to get information from anything that they shouldn't if it's being used in a SQL-statement later on. If I've understood your problem correctly it is that you …

Member Avatar for DeadLikeMe
0
205
Member Avatar for Rajicet

Align on div is deprecated and should not be used. Instead use: style="float: ..." If you can't get it to show correctly after changing align then just use float:left on the left column and float:right on the right column. It can also be a problem with the width of the …

Member Avatar for Rajicet
0
104
Member Avatar for gunnarflax

Hi, I'm trying to create a javascript plugin but the problem is that the users of the plugin will most likely keep the plugin in another folder than me. So my options is to either let the user set in the plugin's directory in a variable into the javascript itself …

0
67
Member Avatar for gunnarflax

Hi! I'm trying to create my own little community for learning purposes and I'm having some trouble with getting the data I want from the table. I'm not that high on SQL but I know the basics but when you get into the more complex mysql-lines I get lost. The …

Member Avatar for Member #585571
0
3K
Member Avatar for gunnarflax

Hi! I have a JTable which I've put some cell padding on with setIntercellSpacing(), the problem is when I select the row the background gets blue except the area of the padding, it remains white. I just doesn't look good. What shall I do to fix it? Thanks in advance!

0
80
Member Avatar for gunnarflax

Hi! I'm a java rookie and I'm trying to learn how to read and write to xml documents. I have a xml-file called tasklist which lies directly in the src directory, at the same level as the executing program but I get the following error: java.io.FileNotFoundException: tasklist.xml (Det går inte …

Member Avatar for gunnarflax
0
223
Member Avatar for gunnarflax

Hi! I'm currently using Dreamweaver as my code editor for web development but I'm considering using open source applications instead. I've always supported open source development and let's face it, Adobe's programs costs a whole lot. So I read about using Eclipse for web development and did some searching and …

Member Avatar for gunnarflax
0
162
Member Avatar for gunnarflax

What is the best way to handle site navigation? When I first started learning web development I had html-files which I linked to. Later on I sent variables through the url and used a php-script with $_GET to load the appropriate content. Let's say that the url looked like this: …

Member Avatar for gunnarflax
0
148
Member Avatar for gunnarflax

I recently just stumbled across a forum where they were talking about [URL="http://winbinder.org/index.php"]WinBinder[/URL] which is a library letting developers easily create windows applications with php code. I had never even thought about using php as a not strictly web programming language. So then I kept reading about this and googling …

Member Avatar for jwenting
0
149
Member Avatar for gunnarflax

ok, here's the thing: If I were to create a fileserver website like Microsofts SkyDrive then how should I structure the database? There are incredibly little information about database structure on the internet (web security too) and I've searched a whole lot. Should I create a table for every user …

Member Avatar for gunnarflax
0
90
Member Avatar for gunnarflax

When I work with 8-bit images in Photoshop I never achieve to get smooth gradients when working with dark colors. I looks bad and it's a clear line between dark gray and black. My guess is that is because I work 8-bit files but is there any reason at all …

Member Avatar for gunnarflax
0
125
Member Avatar for gunnarflax

Hi! I'm trying to create a file browser - similar to windows explorer but for the web. I want to be able to move a file into a folder and for this I'm using the jQuery UI library. The code I have so far is this (I haven't made any …

0
69
Member Avatar for gunnarflax

I'm having really hard to really grasp everything about the this object in javascript. I've been trying with tutorials but I haven't found a really good one. I mean, if I have a function which executes some code and then in the end I return "this" what exactly do I …

Member Avatar for vsmash
0
353
Member Avatar for gunnarflax

I 'm trying to create my own Javascript library which I want to be able to access in the same way as you do with Jquery (by writing Jquery.something or $.something). But I can't figure out how that is done. The object Jquery must in someway be created and have …

Member Avatar for gunnarflax
0
174

The End.