Microsoft
Software
Hardware
Network
Question : PHP MYSQL insert multiple records
I have 5 text fields called genre[] and I am trying to fill them all in and have them all enter into a table. (5 rows) I have tried the below but it give me the error: PHP Warning: mysql_query(): 1 is not a valid MySQL-Link resource
<?php
$dbc = mysql_connect('localhost',
'root', 'root')
or die ('Cannot connect');
mysql_select_db("video", $dbc);
if (isset($_POST['Submit'])) {
foreach ($_POST['genre'] as $genre_insert) {
$query = "INSERT INTO genre(Genre) VALUES('$genre_insert')";
$result = mysql_query($query, $dbc);
mysql_close($dbc);
}
}
?>
Answer : PHP MYSQL insert multiple records
Here is a link to the only one I know of. Works well. Simply download, install and select your brushes folder...
http://abrviewer.sourcefor
ge.net
Good luck!
Posted via EE Mobile
Random Solutions
Can't access Exchange 2003 OWA from Internet
Dynamic Color
What is the best navigation software for a Macbook Pro and an iPhone?
What is the process for getting the proper dll to use with 'example' code? system.web.extensions.dll dll question
Somebody is sending emials form my hotmail account
Windows Update site fails to load
drivers for my WD Passport Essential SE USB drive for SBS 2008
Backup Exec 2010 running missed backup to tape job ?
VPN disconnects over 2 way satellite
Script for Excel Data