What does adding the (int) do to this statement:
$poll_sum = (int)mysql_result($poll_result, 0, SUM);
I do not find anything about the SUM either.
Thanks
Dave
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
the lack of proper close html code will cause a no show in Netscape, but will show in
Ie
|table
|tr
|td width=\50\/td
|td width=\125\CO:td
|tda href=\$email\$co/a/td
|/tr
|
Help!
I have drawn a blank..
I want to get the content of a field in a table where I know the
databaseName,tableName and columnName and the rowNumber.
Like:
$answer = mysqlCommand(select ColumnName from tableName WHERE rowNumber =
$rowNumber,$db)
--
PHP Database Mailing List
you do not need a counter, just use a 2 column table
| Thats my code!
|
| What I want to be able to do is have it so instead of one column there are
| two columns of pictures:
|
|
| pic1 | pic2
| pic3 | pic4
|
| etc..
|
|
| How can I do this?
|
| Thanks in advance!
|
Can someone tell me why this works in PHP4.0.3pl1 on one server and not in PHP4.0.6 on
a different server?
I am using is_uploaded_file($userfile1)
LOAD DATA LOCAL INFILE '/var/tmp//phpAP3729' INTO TABLE spcdata FIELDS TERMINATED BY
',' OPTIONALLY ENCLOSED BY '\'
ESCAPED BY '\\'
SOLVED
Wrong varable!
Is that as bad as spelling errors?
Dave
| In article [EMAIL PROTECTED], [EMAIL PROTECTED]
| wrote:
|
| are INSERT INTO statements forbiden inside a function??
|
| Assuming that you're referring to a PHP function and not a function of the
| RDBMS, no it's not
are INSERT INTO statements forbiden inside a function??
Dave
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
What's wrong with this use of preg_match?
$search = TheName
$data = TheName,TheAddress,ThePhone
if (preg_match('/\b'.$search.'\b/i', $data))
{
echo Truebr;
}
else
{
echo Falsebr;
}
I am trying to see if the search name matches exactly a name in the $data.
Thanks
Dave
--
PHP Database Mailing
I am trying to find a str within a field using a select statement like
SELECT * FROM tablename WHERE fieldname has the string within it
Is there a way to do this?
Dave
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: