Try this:
The HTML codes should look like this:
function add() {
var total = 0;
var thisform = document.forms[0];
for (i=0;i<=thisform.elements["field[]"].length;i++) {
if (!isNaN(thisform.elements["field[]"].value) total +=
thisform.elements["field[]"].value;
}
thisform.total
When the user post a message, proccess the queries on temp page and then
redirect to a page where you display message to user. In this case if he
hits reload button, php don't repeat queries.
I thing it should work.
Bye Moreno
-Messaggio originale-
Da: Nick Stuart [mailto:[EMAIL PROTECTED
Yes i review manual many times without success
-Messaggio originale-
Da: Rick Emery [mailto:[EMAIL PROTECTED]]
Inviato: mercoledì 13 marzo 2002 16.52
A: 'Riccardi Moreno'; Php List; Mysql List
Oggetto: RE: [PHP-DB] Delete problem
MySQL does not currently support sub-sel
Hi all,
I'm trying to delete records with this query on php program:
delete from Bands where ID_ALBUM IN (select ID_ALBUM from Albums where
ID_GROUP = '$group')
I use it on MSSQL and work fine but on mysql don't work, there's some other
query that make the same result on mysql
Thank's all
---
try to change with this:
if(ISSET($category)){
$columns = 3;
$count = 0;
$viewsql = "select * from $tbn2 where catid = \"$category\" ";
$viewres = @mysql_query($viewsql, $con) or die ("Cant get details.
Please report this to the website administrator");
$num_rows = mysql_num_rows($viewres);
You could use this script:
$query_data[]";
}
else if ($count == $columns)
{
$count = 0;
echo "$query_data[]";
}
for ($i=$count;$i<=$columns;$i++){
echo " ";
}
echo "";
}
?>
I think it works.
Bye,
Moreno
-Messaggio originale-
Da: Dave Carrera [mailto:[EMAIL PROT
-Messaggio originale-
Da: Andrey Hristov [mailto:[EMAIL PROTECTED]]
Inviato: venerdì 30 novembre 2001 16.26
A: Riccardi Moreno
Cc: [EMAIL PROTECTED]
Oggetto: Re: [PHP-DB] PHP/Mysql
Fatal error: Call to undefined function: mysql_connect() means to things.
php is not built with integrated mysql su
Hello,
I've got cobalt raq4 with php(work) and mysql(work) but when I try to
connect via mysql_connect() this error happens:
Fatal error: Call to undefined function: mysql_connect()
This is my php.ini:
[MySQL]
mysql.allow_persistent = On ; allow or prevent persistent link
mysql.max_per