Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

function

1
vote
3 answers
30 views

Convert javascript (regex) function to php

When an key is pressed in an input I call this on its value .trim().replace(/ /g, '.').replace(/[^\w .-]/gi, '').toLowerCase(); what I want to do…
asked June 24, 2011 8:44 am CDT
Hailwood
1
vote
1 answer
27 views

Returning a value from a UDF. (MySQL)

Attempting to create the following function keeps giving me 'Not allowed to return a result set from a function' ... Google has shown me no love.…
asked June 23, 2011 9:56 am CDT
Matthew
0
votes
0 answers
41 views

Question about PHP function return

The following codeigniter function takes a (string) parameter and returns the (integer) ID of the row. It works fine if i pass string values, but if…
asked June 22, 2011 6:28 am CDT
Roman
1
vote
3 answers
31 views

Is there a PHP function to simulate how apache mod_rewrite works?

I'm pretty stuck in here, so what I need is a function or, an idea to create a function, to work pretty the same way as mod_rewrite of Apache. It is…
asked June 21, 2011 12:43 pm CDT
adrian7
1
vote
3 answers
36 views

Mysql_result not valid resourced

this is my code function code_exists($code){ $code = mysql_real_escape_string($code); $code_exists = mysql_query("SELECT COUNT('url_id') FROM…
asked June 21, 2011 1:53 am CDT
Cody
-1
votes
2 answers
29 views

How do I create a function to get value from database

I want to create a function to call a key and value on specific table. Basically my statement like this $query = 'SELECT SQL_CALC_FOUND_ROWS…
asked June 19, 2011 2:15 am CDT
nirmala
0
votes
1 answers
24 views

Search function with Greek characters in MySQL

I have a search function for old Greek words ( Wearch.nl ). The old greek words have mutch accents, ῦ is not the same as ὐ, but I want that if you…
asked June 18, 2011 1:20 pm CDT
Joeran
1
vote
1 answers
25 views

PHP Function returning mysql_fetch_assoc() results in index based array?

this is my first post here, in the past I found all my questions already solved. Not this time so please help me :-)! Why is $returned_assoc_arr…
asked June 18, 2011 2:25 am CDT
hNz
0
votes
2 answers
37 views

Undefined Index

I'm getting an undefined index error in this code: function get_userdata() { global $db; global $user; global $data, $value, $line; $id =…
asked June 16, 2011 10:34 am CDT
Shamil
0
votes
1 answer
43 views

MySQL stored function problem

I'm creating a stored function like this CREATE FUNCTION getVendorID(IN venname VARCHAR(255)) RETURNS INT BEGIN DECLARE a INT; SELECT vendorid FROM…
asked June 15, 2011 5:19 pm CDT
dzd
0
votes
1 answer
30 views

PHP PDO function, Looking for some suggestions.

I am by no means asking for anyone to re-write my code, but rather find places where I can improve it, or implement better practices. This is how…
asked June 14, 2011 10:48 am CDT
Headspin
0
votes
0 answers
34 views

Creating a MySql user function

How would I create the php function below using CREATE FUNCTION in Mysql ? function CalcSomaSelect( $codpergunta, $resposta ){ $faixas =…
asked June 13, 2011 6:07 pm CDT
Niloct
-1
votes
3 answers
38 views

How to make a search function? (Replace something with what people search for)

This is my current code: $result = mysql_query("SELECT * FROM characters WHERE namn = 'Jargon'"); while($row = mysql_fetch_array($result)) { echo…
asked June 3, 2011 1:50 pm CDT
Eric Machonahagen
0
votes
1 answer
30 views

Using a Model function in Controller

In my model named Profile_model I have this function which retrieves profile data for the logged in user. function profile_read() {…
asked June 2, 2011 12:52 pm CDT
CyberJunkie
0
votes
4 answers
29 views

Searching for names in a MySQL database that probably has typos

I'm currently writing a script tasked with going through tens of thousands of rows of account information and cleaning mistyped addresses, as well…
asked May 30, 2011 11:08 pm CDT
Codemonkey
0
votes
2 answers
38 views

RegEx - Matching Parameter Names of Functions

var str:String = "myFunction(strParam:String = \"myFunc()\", objParam:Object = {x:50, y:50}):void"; i would like to match the parameter names from…
asked May 29, 2011 3:09 pm CDT
TheDarkIn1978
0
votes
0 answers
34 views

JSP - function with a list parameter

Hello I have the following code: <c:forEach var="phone" items="${phones}"> Type: ${phone.type} </c:forEach> I want to create a function…
asked May 29, 2011 1:07 pm CDT
user748790
0
votes
1 answers
48 views

Doubt -mysqli+php function

hi i have this function insert () the function insert data in the table users and sent an email. I need to terminate a previous state before create…
asked May 22, 2011 5:22 pm CDT
Wire Creation
0
votes
2 answers
35 views

Using functions to simply CMS theming

I'm in the process of making my own CMS. I have some code that selects database rows to be echoed out on the page like so: $query =…
asked May 17, 2011 10:20 pm CDT
codedude
0
votes
2 answers
41 views

Preg Replace - E Modifier

$strpost_a = preg_replace("/\[CallName]([^]]+)\[\/CallName\]/e", getInfo('\\1',"fullname"), $strpost_a); I always get this in return: Parse error:…
asked May 16, 2011 8:45 pm CDT
JakeAero
Pages : 1 | 2 | 3 | 4 | 5 >
81

function

Tagged: function
Related Tags
mysql × 52
php × 49
regex × 12
postgresql × 11
sql × 7
database × 6
javascript × 4
replace × 3
variables × 3
parameters × 3
plpgsql × 3
create × 3
java × 2
c# × 2
onclick × 2
class × 2
return × 2
foreach × 2
wordpress × 2
sqlite × 2
c++ × 2
call × 2
email × 2
date × 2
insert × 2
sendmail × 2