Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
assign
- Page 1
Dynamic Properties in PHP 8.2
Programming
Web Development
3 Weeks Ago
by Dani
… deprecated. What that means is, you can no longer just
assign
a new property to an object without explicitly declaring it…
Re: Dynamic Properties in PHP 8.2
Programming
Web Development
3 Weeks Ago
by Dani
Oh, and an important bit I forgot to mention: PHP's built-in stdClass has the `#[AllowDynamicProperties]` attribute already added. In fact, you can see in the [PHP docs](https://www.php.net/manual/en/class.stdclass.php) that the definition of the stdClass is "a generic empty class with dynamic properties." That means that you can always …
Re: Dynamic Properties in PHP 8.2
Programming
Web Development
3 Weeks Ago
by jkon
I can't get it , why anyone would want to `$user = new User(); $user->nickname = 'Dani';` if nickname is not a public property of User , or even worse `$user = new stdClass(); $user->nickname = 'Dani';` ? Why ?
Re: Dynamic Properties in PHP 8.2
Programming
Web Development
3 Weeks Ago
by Dani
The first I agree would not make much sense to do because one would presume that the User class has its own set of getters and setters for a reason, and just creating random properties on a whim defeats the purpose of organizing and structuring your code by having the class in the first place. Nevertheless, I ran into this exact issue while trying …
Re: Dynamic Properties in PHP 8.2
Programming
Web Development
3 Weeks Ago
by Dani
> This obviously does not make sense to do if you want to create or work with a User object or something of that sort. I realize that in my previous post I incorrectly gave the example of `$user = new stdClass(); $user->nickname = 'Dani';`. My intention was not to say that it was good coding practice to represent a user of the app with an …
Assign random values for Dictionary keys
Programming
Software Development
15 Years Ago
by chipbu
…for each dictionary key. Basically, I after I
assign
the random values, I wanna check that if…any previous ones then generate new random value and
assign
it to the key. Example: 1st random value… is 1
assign
it to A, if 2nd random value is… 1st one then generate a new value then
assign
it to B and so on. I just…
Assign Query Result to Variable
Programming
Software Development
14 Years Ago
by winky
… Perl and had a quick question. Is it possible to
assign
a SQL query result to a variable? The query will…); $sth->exectue(); #This is where I would like to
assign
the result to a variable[/CODE] I connect to the… it, and then execute. From this point, I want to
assign
what was returned to a variable. Thanks for all your…
assign the value to a hidden field
Programming
Web Development
16 Years Ago
by surekhavk
have a javascript in which i am trying to
assign
the value to a hidden field and getting the below msg 'document.Form1.H_ROWID' is null or not an object i am getting the value in the alert box but not able to
assign
it o teh control [code]alert("row " +M_ROWID) document.Form1.H_ROWID.value = M_ROWID[/code]
Assign check box values
Programming
Web Development
15 Years Ago
by Santho786
I like to known that how to
assign
the value for the check boxes.. Since one would check … assigned check value has differently.. Reply me how we could
assign
the value and name... If u notice that for Proceedings…
Assign a user to login to a client PC using php
Programming
Web Development
15 Years Ago
by suri mariabell
How can I
assign
a user can only login to a web application via a particular valid client PC? If I have 20 clients, I want to restrict the PC no.1 for a user A to login, PC no.2 for a user B login and they cannot login to other PC that they are not
assign
to. Another thing is, can I done this using php code?
Re: Assign a user to login to a client PC using php
Programming
Web Development
15 Years Ago
by vitana
[QUOTE=suri mariabell;1178771]How can I
assign
a user can only login to a web application via … they cannot login to other PC that they are not
assign
to. Another thing is, can I done this using php…
Assign struct values
Programming
Software Development
14 Years Ago
by Jamesbch
… time because I know there is an easy way to
assign
field values to a struct like this : [CODE]Struct mine…; is contained in a bigger struct. So I have to
assign
let's say a field named data but it seems…
Assign event to wx.MessageDialog
Programming
Software Development
14 Years Ago
by acrocephalus
….NO_DEFAULT | wx.ICON_QUESTION) dlg.ShowModal()[/CODE] I would like to
assign
an event to delete a mysql database user. How can…
Assign variable based on value
Programming
Web Development
14 Years Ago
by becraig
I need to
assign
a variable based on its value. ie: $variable = 'value' (if …[$i]=$file; $i++; } } //I want to make sure when I
assign
the value below it is not repeated from another //instance…
Re: Assign Query Result to Variable
Programming
Software Development
14 Years Ago
by d5e5
… query: $DBI::errstr\n"; my @record = $sth->fetchrow_array; #
Assign
result to array variable print "The result of query…
Re: Assign Query Result to Variable
Programming
Software Development
14 Years Ago
by d5e5
… to one scalar variable:[CODE]my @record = $sth->fetchrow_array; #
Assign
result to array variable my $result = $record[0]; print "…
Re: Assign Query Result to Variable
Programming
Software Development
14 Years Ago
by d5e5
… query: $DBI::errstr\n"; my ($nbr) = $sth->fetchrow_array; #
Assign
result to scalar variable (note parentheses) print "The number…
assign multiple vaules into variable
Programming
Web Development
14 Years Ago
by bangla
… table which has two columns: NAME, ADDRESS. i want to
assign
the both column names into variable. if i give one… want to retrive values of both column. how can i
assign
both column names to variable $yourfield ???? try1: $yourfield = "NAME…
Assign a Textbox Value from Javascript Function
Programming
Web Development
13 Years Ago
by mrjimoy_05
… clicked. And, what I want to do is how to
assign
the Textbox value on the modal-box from the javascript…;#dialog-form").dialog("open"); // ---> How to
assign
the 'id' value to the Textbox1 on the modalbox? } $(function…
Assign value to dynamic div
Programming
Web Development
12 Years Ago
by vipmo
… />" my question is as follows I want to
assign
values to name and age. How can that be done…;test" but got an error NULL POINTER how can
assign
value to div after page load?Any suggestions???
assign ajax return value to javascript array
Programming
Web Development
11 Years Ago
by Priti_P
Hello, Sorry,This may be a silly question : How to
assign
ajax return value to javascript array? for example what I … db skill 3","vv"] i want to
assign
this array to all_skills
assign value of hidden input to variable
Programming
Web Development
10 Years Ago
by dwlamb
…; name="id"> <--want to find and
assign
that value <a href="http://www.somewhere.com…;id"]').val(); } I want a way to find and
assign
to a variable the value of the hidden input field…
Re: Assign content to a function pointer
Programming
Software Development
21 Years Ago
by Dave Sinkula
[QUOTE=Richard Wong]Goal: I would like to
assign
the content of a known function to a function pointer … just this: [list] [*]Declare function pointer. [*]Point to the function (
assign
the pointer). [*]Run the function pointer. [/list]
Re: Assign with operator=?
Programming
Software Development
16 Years Ago
by u8sand
… want to know how to overload the = operator when you
assign
the string. I already have it overloaded, but it doesent… work when i try and
assign
it like so: [code] // works: String str; str = "Hello…
Re: assign ajax return value to javascript array
Programming
Web Development
11 Years Ago
by Priti_P
it is not about alerting the array, it is about how to
assign
the same array outside ajax call. when I write success:function(data){ all_skills=data; return data } and alert t, then it says me object object I just want an array outside :(
Re: assign value of hidden input to variable
Programming
Web Development
10 Years Ago
by JorgeM
… the Div. get the value from that hiddent element and
assign
it to the variable.
Re: Assign IP to 100 VMs using python
Programming
Software Development
10 Years Ago
by prasanna.k
Thanks for the response Gribouillis. I need to
assign
IPs to the systems (virtual Machines). from the server (ESX Host). I need to run the script from the server to
assign
IPs for the systems connected to the server.
Re: assign method to variable
Programming
9 Years Ago
by JamesCherrill
… on your question: You can't
assign
a method to an ordinary variable; you
assign
the result of calling that ethod. You…
Re: assign ajax return value to javascript array
Programming
Web Development
5 Years Ago
by Dani
Ah, Rough is correct! Just doing `all_skills=data` will just
assign
a JSON string to all_skills. If he wants it to actually be a native array, you have to use ParseJSON. I know this is a two year old threat, but better late than never, for others who may stumble upon this.
Assign content to a function pointer
Programming
Software Development
21 Years Ago
by Richard Wong
Goal: I would like to
assign
the content of a known function to a function pointer …
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC