Well Ill give you a simpler function that does the exact same thing.
PHP Code:
function editHack($id,$data) {
# Moves a set of rows to a new table in the database for reason of keeping things
# orgranized in the process of editing
$query = mysql_query("SELECT * FROM hacknmod_pictures WHERE pictureHID = '$id'");
while (false !== ($row = mysql_fetch_assoc($query))) {
@mysql_query("INSERT INTO hacknmod_temp_pictures SET temp_pictureUSER = '".$_SESSION['id']."', temp_pictureNAME = '".$row['pictureNAME']."', temp_pictureURL = '".$row['pictureURL']."'");
}
echo "<textarea></textarea>";
}
Basicly it doesnt matter what I put in that function, if I send a html textarea tags to the browser its as if the function executes twice.
Quote:
|
Why does you regexp pattern match and empty set of square brackets?
|
Because thats what Im looking for. I look through the code to find a set of square brackets. When I do I take whats inside of it and process that though my script to insert information in place of it.
Quote:
I am using a system that will insert variables into a html template. Thats for the most part what this code does. It takes the html template searches it for a specific pattern, and then inserts information where the pattern matches.
So my problem isn't so much the functioning of this script. It works fine for the most part. My problem comes when I have a specific set of code in my html template. If I have textarea tags ANYWHERE in the html template I encounter an "error" of sorts.
|