Bluepearl Design
Go Back   Bluepearl Design > Bluepearl Design > Need Help?

Some My sql Help

Ask us questions relavent to Web Design and Computers.
Also support for Bluepearl Design and webclans.net hosting.

    

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 03-16-2005, 12:52 AM   #1 (permalink)
 
Title: King Etch
Join Date: Mar 2005
Location: Barrington New Hampshire USA
Age: 25
Posts: 172
Rep Power: 4 Etch is on a distinguished road
Send a message via AIM to Etch Send a message via Yahoo to Etch
Some My sql Help

ok i can usually get this stuff to work right. but i need ot convert a Automoatic database installer to a Manual one ao i can add in teh table manualy. i have pasted the code below so if any one can help me convert this to manual. any help on this will be great.



PHP Code:
    // ######################### Run Queries #######################
    
if ($step == 'doqueries')
    {
        
$DB_site->query("CREATE TABLE " TABLE_PREFIX "award (
                awardid smallint(5) unsigned NOT NULL auto_increment,
                name varchar(50) NOT NULL default '',
                description varchar(250) NOT NULL default '',
                icon_url varchar(250) NOT NULL default '',
                PRIMARY KEY    (awardid)
            ) TYPE=MyISAM;
        "
);

        
$DB_site->query("CREATE TABLE " TABLE_PREFIX "useraward (
                userid int(10) NOT NULL auto_increment,
                PRIMARY KEY    (userid)
            ) TYPE=MyISAM;
        "
);

        
// FIX EMPTY USER AWARD TABLE
        
$users $DB_site->query("
            SELECT user.userid
            FROM " 
TABLE_PREFIX "user AS user
            LEFT JOIN " 
TABLE_PREFIX "useraward AS useraward USING(userid)
            WHERE useraward.userid IS NULL
        "
);

        
$userids = array();
        while (
$user $DB_site->fetch_array($users))
        {
            
$userids[] = $user['userid'];
        }

        if (!empty(
$userids))
        {
            
$DB_site->query("INSERT INTO " TABLE_PREFIX "useraward (userid) VALUES (" implode('),('$userids) . ")");
        }

        echo 
"<br />Queries Run!<br /><br />";

        echo 
"<a href=\"awards_install.php?step=dofileedits\"><b>Click here to continue to step 4 --&gt;</b></a><br /><br />\n";
    } 
Etch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-16-2005, 03:26 AM   #2 (permalink)
 
Fragalot's Avatar
 
Title: Ipood
Join Date: Nov 2004
Location: belgium west-flandres
Age: 19
Posts: 4,447
Images: 1
Rep Power: 9 Fragalot is on a distinguished road
Send a message via ICQ to Fragalot Send a message via MSN to Fragalot Send a message via Yahoo to Fragalot
Re: Some My sql Help

don't you have phpmyadmin on your site?
in there you can edit it all manually without a problem
(i had to do that for a while cuz i couldn't get peeps registered by the normal way)(some misterious bug...)
Fragalot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-17-2005, 12:38 AM   #3 (permalink)
 
Title: King Etch
Join Date: Mar 2005
Location: Barrington New Hampshire USA
Age: 25
Posts: 172
Rep Power: 4 Etch is on a distinguished road
Send a message via AIM to Etch Send a message via Yahoo to Etch
Re: Some My sql Help

i figured it out finally. i just deleted all teh BS that required that DB. buts its all cool now.
Etch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-17-2005, 12:42 AM   #4 (permalink)
 
Sean's Avatar
 
Title: Founder/Admin
Join Date: Jan 2004
Location: Sydney, Australia
Age: 28
Posts: 8,916
Images: 386
Blog Entries: 4
Rep Power: 10 Sean will become famous soon enough
Send a message via MSN to Sean Send a message via Skype™ to Sean
Re: Some My sql Help

Quote:
Originally Posted by Etch
i figured it out finally. i just deleted all teh BS that required that DB. buts its all cool now.
Bs that required that db? what is that, maybe i am slow cause its 1am lol
Sean is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-17-2005, 12:45 AM   #5 (permalink)
 
Title: King Etch
Join Date: Mar 2005
Location: Barrington New Hampshire USA
Age: 25
Posts: 172
Rep Power: 4 Etch is on a distinguished road
Send a message via AIM to Etch Send a message via Yahoo to Etch
Re: Some My sql Help

well it was a award hack on my site. and soem one deleted teh database. and whent htey did my site wenthay wire and didnt work. so i was gonna try to s=do a manual install of the databases. but i decided not to because it was to much of a pain in the rear. but i got it all figuerd out i just deleted all teh B-u-l-l S-h-i-t that required that database.




Also Griffin you got AIM?
Etch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-17-2005, 12:47 AM   #6 (permalink)
 
Sean's Avatar
 
Title: Founder/Admin
Join Date: Jan 2004
Location: Sydney, Australia
Age: 28
Posts: 8,916
Images: 386
Blog Entries: 4
Rep Power: 10 Sean will become famous soon enough
Send a message via MSN to Sean Send a message via Skype™ to Sean
Re: Some My sql Help

oh bs= bull sh-it , that is what was confusing me rofl. my bad.

I dont use AIM but my MSN is griffin@bluepearl-design.com
Sean is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-17-2005, 12:50 AM   #7 (permalink)
 
Title: King Etch
Join Date: Mar 2005
Location: Barrington New Hampshire USA
Age: 25
Posts: 172
Rep Power: 4 Etch is on a distinguished road
Send a message via AIM to Etch Send a message via Yahoo to Etch
Re: Some My sql Help

lol ill try to get MSN i dont have it right now but ill attemp to get it. and then ill IM you on it. lol
Etch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-17-2005, 01:39 AM   #8 (permalink)
 
Title: King Etch
Join Date: Mar 2005
Location: Barrington New Hampshire USA
Age: 25
Posts: 172
Rep Power: 4 Etch is on a distinguished road
Send a message via AIM to Etch Send a message via Yahoo to Etch
Re: Some My sql Help

ok i added you to my Buddie list my MSN is ryeaton@lyricaldivinity.com
Etch is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


  
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Bluepearl Templates

All times are GMT +11. The time now is 10:22 PM.

 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52