0
<title>plastic sarcastic</title>
<?php include "header.html"; ?>
hey whats up?<br><br>

<?php
$sql=mysql_query("SELECT * FROM bands);

while($rows=mysql_fetch_array($sql))
{
?>

<form action="band.php?band=<?php echo $rows[name]; ?>">
<input type="submit" value="<?php echo $rows[name]; ?>" style="background: black; color: 660099; font-size: 1.2em; border: 0px"></form>

<?php
}
?>

^^^That's my code. I was wondering why I get errors. It has nothing to do with me ending the php tag and then restarting it, im sure. The error seems to be on
<form action="band.php?band=<?php echo $rows[name]; ?>">

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by tie372
0

Sorry, didn't work.

EDIT- Fixed itself, i forgot the end " at the end of $sql.

Thanks anyways.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.