The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
mysql query help
i'm trying to execute a query for a hack,query as follows
alter table user add timespent int not null; when i run the query this is the error i get Error SQL-query: ALTER TABLE user ADD timespent int NOT NULL MySQL said: Documentation #1146 - Table 'satsfge_.user' doesn't exist in the instructions for the hack it says Run the following queries. You can do it via phpmyadmin, or at the "Execute SQL Query" section at the Admin Control Panel Remember to prefix the table if you need to. any help appreciated |
#2
|
|||
|
|||
You seem to be using a table prefix, add that in front of 'user'.
Edit i only beat ZT because i gave the short answer. |
#3
|
||||
|
||||
Change "user" to "{PREFIX}user", your table prefix is defined in includes/config.php
So if your prefix was 'vb3_', it would be: [sql]ALTER TABLE vb3_user ADD timespent int NOT NULL[/sql] Edit: Marco beat me too it >.< - Zero Tolerance |
#4
|
||||
|
||||
or, if you included global.php somewhere, use
[sql]$DB_site->query("ALTER TABLE " . TABLE_PREFIX . "user ADD timespent int NOT NULL");[/sql] |
#5
|
|||
|
|||
Quote:
|
#6
|
||||
|
||||
Quote:
|
#7
|
||||
|
||||
thankyou so much guys for your support,it worked a treat,and the best part is ive learned in the process,thankyou.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|