Nao Consigo Acabar De Criar Meu Banco De Dados.
#1
Posted 14/04/2004, 19:06
So q tem um problema..ele pede pra fazer um table no banco de dados (axo q eh isso) com o seguinte:
#
# Table structure for table `blog`
#
CREATE TABLE blog (
id int(11) NOT NULL auto_increment,
title text NOT NULL,
content text NOT NULL,
date varchar(50) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM;
#
# Dumping sample data for table `blog`
#
INSERT INTO blog VALUES (1, 'Sample Blog Entry', '<p>This is just a sample entry. Simple HTML tags are supported in this field.</p>\r\n\r\n<p>Tags Supported:</p>\r\n\r\n<p><p></p> - Paragraph<br>\r\n<br> - Line Break<br>\r\n<hr> - Horizontal Line<br>\r\n<ul></ul> - Unordered List<br>\r\n<li></li> - List Item<br>\r\n<a href></a> - Hyperlink<br>\r\n<a name></a> - Named Anchor<br>\r\n<font></font> - Font<br>\r\n<h1></h1> through <h6></h6> - Heading Tags<br>\r\n<b></b> - Bold<br>\r\n<em></em> - Italic</p>\r\n\r\n', 'Thu 26th Jun, 2003 04:07 pm');
INSERT INTO blog VALUES (2, 'Sample Blog Entry II', '<p></p> - Paragraph\r\n<br> - Line Break\r\n<hr> - Horizontal Line\r\n<ul></ul> - Unordered List\r\n<li></li> - List Item\r\n<a href></a> - Hyperlink\r\n<a name></a> - Named Anchor\r\n<font></font> - Font\r\n<h1></h1> through <h6></h6> - Heading Tags\r\n<b></b> - Bold\r\n<em></em> - Italic', 'Thu 26th Jun, 2003 04:29 pm');
mas onde eu ponho isso?No editor do banco de dados do webscindiario nao te espaco pra tudo isso, q q eu faco?
#2
Posted 14/04/2004, 19:14
um exemplinho
<?
include("config.php");
$query = "CREATE TABLE teste";
mysql_query($query);
header("Location: paginadeconfirmacao.php");
?>
Edição feita por: AirFight, 14/04/2004, 19:16.
<?php
switch ($eu) {
case "Nick":
print "AirFight";
case "Nome":
print "Marcelo";
}
?>
#3
Posted 14/04/2004, 19:55
CREATE TABLE blog (
id int(11) NOT NULL auto_increment,
title text NOT NULL,
content text NOT NULL,
date varchar(50) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM;
INSERT INTO blog VALUES (1, 'Sample Blog Entry', '<p>This is just a sample entry. Simple HTML tags are supported in this field.</p>\r\n\r\n<p>Tags Supported:</p>\r\n\r\n<p><p></p> - Paragraph<br>\r\n<br> - Line Break<br>\r\n<hr> - Horizontal Line<br>\r\n<ul></ul> - Unordered List<br>\r\n<li></li> - List Item<br>\r\n<a href></a> - Hyperlink<br>\r\n<a name></a> - Named Anchor<br>\r\n<font></font> - Font<br>\r\n<h1></h1> through <h6></h6> - Heading Tags<br>\r\n<b></b> - Bold<br>\r\n<em></em> - Italic</p>\r\n\r\n', 'Thu 26th Jun, 2003 04:07 pm');
INSERT INTO blog VALUES (2, 'Sample Blog Entry II', '<p></p> - Paragraph\r\n<br> - Line Break\r\n<hr> - Horizontal Line\r\n<ul></ul> - Unordered List\r\n<li></li> - List Item\r\n<a href></a> - Hyperlink\r\n<a name></a> - Named Anchor\r\n<font></font> - Font\r\n<h1></h1> through <h6></h6> - Heading Tags\r\n<b></b> - Bold\r\n<em></em> - Italic', 'Thu 26th Jun, 2003 04:29 pm');
Tenta agora
#4
thalesalan
Posted 14/04/2004, 20:41
Joga no PhpmyadminPeguei um sistema de blog pra poder testar c o webscindiario ta funcionando..
So q tem um problema..ele pede pra fazer um table no banco de dados (axo q eh isso) com o seguinte:
#
# Table structure for table `blog`
#
CREATE TABLE blog (
id int(11) NOT NULL auto_increment,
title text NOT NULL,
content text NOT NULL,
date varchar(50) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM;
#
# Dumping sample data for table `blog`
#
INSERT INTO blog VALUES (1, 'Sample Blog Entry', '<p>This is just a sample entry. Simple HTML tags are supported in this field.</p>\r\n\r\n<p>Tags Supported:</p>\r\n\r\n<p><p></p> - Paragraph<br>\r\n<br> - Line Break<br>\r\n<hr> - Horizontal Line<br>\r\n<ul></ul> - Unordered List<br>\r\n<li></li> - List Item<br>\r\n<a href></a> - Hyperlink<br>\r\n<a name></a> - Named Anchor<br>\r\n<font></font> - Font<br>\r\n<h1></h1> through <h6></h6> - Heading Tags<br>\r\n<b></b> - Bold<br>\r\n<em></em> - Italic</p>\r\n\r\n', 'Thu 26th Jun, 2003 04:07 pm');
INSERT INTO blog VALUES (2, 'Sample Blog Entry II', '<p></p> - Paragraph\r\n<br> - Line Break\r\n<hr> - Horizontal Line\r\n<ul></ul> - Unordered List\r\n<li></li> - List Item\r\n<a href></a> - Hyperlink\r\n<a name></a> - Named Anchor\r\n<font></font> - Font\r\n<h1></h1> through <h6></h6> - Heading Tags\r\n<b></b> - Bold\r\n<em></em> - Italic', 'Thu 26th Jun, 2003 04:29 pm');
mas onde eu ponho isso?No editor do banco de dados do webscindiario nao te espaco pra tudo isso, q q eu faco?
#5
Posted 14/04/2004, 22:59
#6
Posted 15/04/2004, 09:52
Tutoriais, código colaborativo (pastebin), curso de PHP, artigos e etc.
#7
thalesalan
Posted 15/04/2004, 11:51
Podia ficar assim mesmo:
CREATE TABLE blog (
id int(11) NOT NULL auto_increment,
title text NOT NULL,
content text NOT NULL,
date varchar(50) NOT NULL default '',
PRIMARY KEY (id)
)
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)










