[PHP-DB] R: [PHP-DB] Javascript

2002-10-11 Thread Riccardi Moreno
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

[PHP-DB] R: PHP Question

2002-04-11 Thread Riccardi Moreno
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

[PHP-DB] R: [PHP-DB] Delete problem

2002-03-13 Thread Riccardi Moreno
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

[PHP-DB] Delete problem

2002-03-13 Thread Riccardi Moreno
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 ---

[PHP-DB] R: [PHP-DB] RE: I cant get the logic for this...

2002-02-18 Thread Riccardi Moreno
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);

[PHP-DB] R: [PHP-DB] I cant get the logic for this...

2002-02-18 Thread Riccardi Moreno
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

[PHP-DB] R: [PHP-DB] PHP/Mysql

2001-11-30 Thread Riccardi Moreno
-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

[PHP-DB] PHP/Mysql

2001-11-30 Thread Riccardi Moreno
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