fix: #tableName# outside cfoutput — wrap in cfoutput

This commit is contained in:
2026-07-20 08:32:55 +04:00
parent d0fb4df1cb
commit fc13337bb8
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -68,7 +68,10 @@
<!--- value: текстовое поле для CRUD-значений --->
<cftry>
<cfquery>
CREATE TABLE IF NOT EXISTS #tableName# (
DROP TABLE IF EXISTS #tableName#
</cfquery>
<cfquery>
CREATE TABLE #tableName# (
id SERIAL PRIMARY KEY,
value TEXT NOT NULL DEFAULT ''
)
+2 -2
View File
@@ -84,7 +84,7 @@
<html lang="ru">
<head>
<meta charset="UTF-8" />
<title>CRUD — #tableName#</title>
<title>CRUD — <cfoutput>#tableName#</cfoutput></title>
<style>
body { font-family: sans-serif; max-width: 600px; margin: 40px auto; }
table { border-collapse: collapse; width: 100%; margin-bottom: 20px; }
@@ -97,7 +97,7 @@
</head>
<body>
<h1>#tableName#</h1>
<h1><cfoutput>#tableName#</cfoutput></h1>
<!--- Таблица записей --->
<table>