12 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Nathaniel10

I want to increase my knowledge of PHP by learning about classes. I wrote the following very simple test program. It works. But I would like to know improve it. I plan on writing more complex test programs and that won't be the time to iron out smaller issues. Thanks …

Member Avatar for diafol
0
441
Member Avatar for kentuckyjoe

I'm trying to iterate through the controls on a form and set the tabIndex to 0 for all labels. I copped the following code from google but it doesn't work for me and I'm pretty certain it's because all of my controls are on a panel and not on the …

Member Avatar for kentuckyjoe
0
261
Member Avatar for CoilFyzx

Good day folks. Problem: My program needs to import data from a database and display them in a table then manipulate and display the data in various ways. That bit is solved the next part is where I need help. The program then needs to save locally... 1. the newly …

Member Avatar for CoilFyzx
0
399
Member Avatar for CoilFyzx

Hello good day. I have a quick question is anyone able to assist me in saving a password file. I encrypted my password and so I want to save the salt and the encrypted password(which are byte arrays). I tried using a properties file, but I soon found out that …

Member Avatar for CoilFyzx
0
246
Member Avatar for LastMitch

Hi, I'm learning OOP and I'm having issue echoing an `attribute` function. This is my example: <?php class sandwich { function sandwich($hero) { echo "I like to eat $hero sandwich.<br>"; } } $a = new sandwich("roast beef"); $b = new sandwich("pastrami"); $c = new sandwich("turkey"); ?> When I echo it …

Member Avatar for LastMitch
0
142
Member Avatar for simplypixie

Rather than write a huge list of properties used by a class I want to know if I can dynamically generate them when needed. I have looked and __set and __get but I am not sure how (or if) I use them with what I am trying to do. The …

Member Avatar for simplypixie
0
5K
Member Avatar for galhajaj

Hello :) about the get set shortcut - [CODE]public int MyVar { get; set; }[/CODE] for example how it different from just: [CODE]public int MyVar; [/CODE]??? i heard that in the shortcut it add private myVar... huh?? if i can't see it how can i use it? when i use …

Member Avatar for ddanbe
0
209
Member Avatar for diafol

Hi all, been dipping my toe into OOP and am getting on OK, but I'm hitting a bit of a wall with a current project. classes: db (a PDO extended class) User Timetable The db is just a few shorthand ways of running PDO The User is just for handling …

Member Avatar for diafol
0
210
Member Avatar for cutebaboi

its been 6 days passed since i started making this assignment of mine it is to show how objectdatasource is used, until now, i still cannot getaway with this error, [B][U]The data source for GridView with id 'GridView1' did not have any properties or attributes from which to generate columns. …

Member Avatar for cutebaboi
0
1K
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
158
Member Avatar for Kiseki

hi guys, just wondering is it possible to set all the textbox align to center within a form using just only one line of code? Rather than using [CODE] 123TextBox.TextAlign = HorizontalAlignment.Center 456TextBox.TextAlign = HorizontalAlignment.Center [/CODE] for every Textbox. Thanks.

Member Avatar for Kiseki
0
820
Member Avatar for end3r

Hy, I have a .properties file with a key-value defined like this: [icode]my_property.value=text text text bla bla bla {0} qwerty {1}.[/icode] I need to know what class should I use if I want to read the value and insert parameters in {0} and {1}. In the past I used to …

Member Avatar for end3r
0
4K

The End.