Skip to main content
0 votes
1 answer
114 views

I am writing a script, that updates the database of my application to the next version. As part of the latest version updgrade, i added a regex function as a CLR User Defined Function out of an ...
MaxH's user avatar
  • 91
0 votes
1 answer
76 views

I have a validation loop in a class in an outdated but functional plugin that I need to keep (for now). It uses create_function twice. if( is_array($s) ) { $c = count($s); ...
Katherine's user avatar
  • 157
0 votes
1 answer
1k views

Could someone please help me check the syntax in the following code and why this is giving an error? I've tried updating one of my Wordpress files to use the new syntax for function: { $if = ...
Marléze Scheepers's user avatar
0 votes
0 answers
206 views

UPDATED I've written the following function and it is created successfully. But when I go to call it, an error pops up. I'm just learning how to use functions in Postgres, and I am confused here. ...
Wryiker's user avatar
-1 votes
1 answer
89 views

I have taken over the 'admin' of a Wordpress website without the benefit of any documentation and it is falling over when creating invoices with this error. Whilst I can do somethings to get it going, ...
wimorrison's user avatar
4 votes
2 answers
2k views

In Postgres 14 a new kind of syntax was added to CREATE FUNCTION where the body of the function can be specified directly in SQL rather than being contained in a string. The string bodies of functions ...
nyctef's user avatar
  • 580
-7 votes
2 answers
99 views

First Attempt - CREATE FUNCTION rental_quarter (rental_date TIMESTAMP) RETURNS VARCHAR(7) BEGIN IF MONTH(rental_date) BETWEEN 1 AND 3 THEN RETURN YEAR(rental_date)+ ”Q1”; ELSE IF MONTH(rental_date) ...
KB_Wonderland's user avatar
0 votes
1 answer
28 views

The form has recently stopped sending. Deprecated: Function create_function() is deprecated in /home/customer/www/franktribute.com/public_html/RequestForm/testform4_files/formoid1/handler.php on line ...
Steve's user avatar
  • 1
1 vote
2 answers
433 views

I'm having trouble rewriting this line of code that contains create_function() in preparation for updating to PHP 8+. The line of code to replace is: add_action('widgets_init', create_function('', '...
jeffimperial's user avatar
1 vote
3 answers
294 views

I am trying to write a function for a random number in a range decided by the user. I call srand() in int main() with the function RandomNumber defined above. I know if do the randomnumber equation in ...
ajsmith5150's user avatar
-1 votes
3 answers
1k views

I'm trying to create a functional for the average of a list that accepts three parameters: a mandatory list of numbers, an optional minimum value which defaults to zero, and an an optional maximum ...
tatertot007's user avatar
0 votes
1 answer
2k views

I am creating an rpc function to get the number of likes for each post for a user, so I have created a function that takes userId as an argument, which is the uuid of the user that is in the session. ...
Richi's user avatar
  • 582
0 votes
1 answer
111 views

I Have defined this mongoose schema in node `const bookingSchema = new mongoose.Schema({ tour: [ { type: mongoose.Schema.ObjectId, ref: 'Tour', required: [true, 'Booking must ...
Alex Karamanis's user avatar
1 vote
1 answer
361 views

I have 'create_function() in my PHP code: function encode_code_in_comment( $source ) { $encoded = preg_replace_callback( '/\[(php|html|javascript|css|nginx|apache|terminal)\](.*?)\[\/\1\]/ims', ...
Roee Yossef's user avatar
7 votes
1 answer
19k views

So I have a plugin that was working fine previously, but for a few days now it is throwing me an error as: PHP Fatal error: Uncaught Error: Call to undefined function create_function() After a bit ...
Alapan Das's user avatar
  • 18.4k

15 30 50 per page
1
2 3 4 5
8