"PL" <pb****@yahoo.se> wrote in message news:<#l**************@tk2msftngp13.phx.gbl>...
PLEASE, ASP isn't so bad, isn't it ?
I love PHP :)
Ok, that should give you lots of answers in an ASP group.
If you don't like classic ASP you should start to use ASP.NET,
since you didn't say what you are using I will assume you are
in fact using classic ASP ?
What's wrong with creating a simple class ?? It's the exact thing
you are looking for, if you look at other languages such as Java
for example there are no structs there either.
If you use ASP.NET you can use C# which has structs in it.
By the way, PHP sucks, why create a method for every little stupid
thing you want to do when you can use good general programming
language and do it yourself ?
In PHP everything is cemented, lots of strange special methods
for every little thing, that IS stupid.
PL.
If I posted here, that's because I wanted I answer on ASP...
I resolve my little problems with arrays...
By the way, how many lines of do you need in ASp to do than :
$sql="SELECT id_Film FROM films WHERE nom = '".$_POST["nom"]."' AND
langue = '".$_POST["langue"]."' AND Type = '".$_POST["Type"]."'";
if (mysql_num_rows(mysql_query($sql)) < 1)
{
$sql="INSERT films set nom = '".$_POST["nom"]."', Type = '".$_POST
["Type"]."', langue = '".$_POST["langue"]."'";
$db->query($sql);
$new_id = mysql_insert_id();
$keys = array_keys($_POST["user"]);
for($i=0;$i<count($keys);$i++)
{
$sql = "INSERT user_film SET id_Film = '".$new_id."', id_User =
'".$keys[$i]."'";
$db->query($sql);
}
$sct .= "Le film ".$_POST["nom"]." a été sauvegarder dans la base de
donnée<BR>";
$_POST["nom"] = "";
}
Why I like PHP :
Simple, consistent syntax. Just as powerful as Perl minus the cryptic
syntax.
Robust array support saved me from hours of boring utility function
programming so many times that I am eternally grateful.
Excellent string manipulation functions.
Advanced Perl-compatible regular expression functions offer extra
power where standard regular expressions just don't cut. I especially
like preg_split.
Easy database access: MS SQL Server, MySQL, Oracle, PostgreSQL, etc.
Output control functions give you absolute power on the output
generated by your script.
Flexible dynamic image generation functions let you generate images
on-the-fly without which charts like this wouldn't have been possible.
Easy-to-use FTP functions without which this board's auto
install/upgrade functions can't possibly work.
Powerful command line interface (CLI) for shell scripting.
Excellent reference manual. Also, individual function references are
easily accessible by simply typing the function name after the php.net
URL (for example:
http://www.php.net/strpos).
(It's from me but I don't have the time and skill in english to write
something like that...
http://www.wowwebdesigns.com/wowbb/forum12/149.html)