Jump to content
php.lv forumi

Lūgums pēc palīdzības


Kurmus

Recommended Posts

Sveiciens pašiem labākajiem!

Vai kāds nevarētu lūdzu paskaidrot iesācējam, kā izlabot šo kļūdu:

 

The query you are trying to run is invalid

Mysql Error Output: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SQL Query: SELECT * FROM probid_users WHERE user_id=

 

Zemāk daļa no sql faila.

Iepriekš jau izsaku milzīgu paldies

 

 

CREATE TABLE IF NOT EXISTS `probid_users` (

`user_id` int(11) NOT NULL auto_increment,

`name` varchar(100) NOT NULL default '',

`email` varchar(255) NOT NULL default '',

`birthdate` date NOT NULL default '0000-00-00',

`address` varchar(100) NOT NULL default '',

`city` varchar(50) NOT NULL default '',

`state` varchar(100) NOT NULL default '',

`country` varchar(100) NOT NULL default '',

`zip_code` varchar(30) NOT NULL default '',

`phone` varchar(30) NOT NULL default '',

`username` varchar(255) NOT NULL default '',

`password` varchar(32) NOT NULL default '',

`active` tinyint(4) NOT NULL default '0',

 

 

Link to comment
Share on other sites

  • Replies 32
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Tas ir šo vai es jaucu:

 

--

-- Tabulas struktūra tabulai `probid_users`

--

 

CREATE TABLE IF NOT EXISTS `probid_users` (

`user_id` int(11) NOT NULL auto_increment,

`name` varchar(100) NOT NULL default '',

`email` varchar(255) NOT NULL default '',

`birthdate` date NOT NULL default '0000-00-00',

`address` varchar(100) NOT NULL default '',

`city` varchar(50) NOT NULL default '',

 

 

Link to comment
Share on other sites

Ticu, ka lapa ir uz PHP. Darot kādu darbību, piemēram pērkot preci, izpildās skripts, kurš saucās, piemēram, foo.php. Tātad Jānīts pērk preci un izpildās skripts foo.php. Pašā foo.php, ja to atver ar failu editor'u, piemēram, Notepad++, atverās kods. Atrodi tur, visticamāk, funkciju mysql_query()! Iekš funkcijas, t.i., starp iekavām būs SQL kods, kurš veic darbību ar datubāzi. Ta kā SQL kods nav kaut kā pareizs, tiek parādīts error's. Nu Es vismaz tā domāju... =)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...