jeeppimp Posted February 20, 2008 Share Posted February 20, 2008 I'm running V2, I'm installing streets that require 100 steps per day. v2 doesn't have ( mysql.php ) what do I replace this with? thanks! **********EDIT********** It wouldn't be include "globals.php"; would it? <?php require "mysql.php"; global $c; mysql_query("update users set turns=100",$c) or die(mysql_error()); ?> Quote Link to comment Share on other sites More sharing options...
mdshare Posted February 20, 2008 Share Posted February 20, 2008 Re: need some help. mysql.php is config.php at v2 Quote Link to comment Share on other sites More sharing options...
jeeppimp Posted February 20, 2008 Author Share Posted February 20, 2008 Re: need some help. thanks man!! Quote Link to comment Share on other sites More sharing options...
jeeppimp Posted February 20, 2008 Author Share Posted February 20, 2008 Re: need some help. Question, what i wanted to do is have it setup where when you register U start off with 100 turns, I fkup and made 6 haha! when I update QSL using, ( update table 'users' add 'turns' int(11) not null default 100; ) I get an error that saids, "#1064 - 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 'table users add `shots` int(11) not null default 6' at line 1 " Is my Update wrong? Anyone!! thanks Quote Link to comment Share on other sites More sharing options...
jeeppimp Posted February 20, 2008 Author Share Posted February 20, 2008 Re: need some help. I always use the pencil icon next to a database row to change it, thanks LostOne Daaa! what the hell was I thinking of! hahaha! FIXED! thanks for the insight..... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.