Originally posted by brand
View Post
turn reg link on and off wapdesire v_2 script
Collapse
X
-
Originally posted by atef View Posttry to remove the dot at $main.Code:$results = mysql_query("select registration FROM settings"); $registration = mysql_fetch_array($results); if($registration["reg"]==0){ $main.="> <a href=\"./register.php\">Register Free</a><br/>"; } else { $main.="reg turned off please try later"; }
Comment
-
Originally posted by arnage View PostLike this.
PHP Code:$results = mysql_fetch_array(mysql_query("SELECT * FROM settings"));
PHP Code:if($results["reg"]==0){
Comment
-
You trying to get reg info ? or stop flood ?Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
Visit: WapMasterz Coming Back Soon!
_______
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______
Info & Tips
php.net
w3schools.com
Comment
-
Originally posted by brand View Postthanks for helping arnage i have tryed what you have said bit still not working
Code:INSERT INTO `settings` VALUES(6, 'registration', '1');
And there is nothing not to work, this way we select array from settings using mysql_fetch_array() to read and use the data:
PHP Code:$results = mysql_fetch_array(mysql_query("SELECT * FROM `settings`"));
PHP Code:if ($results['registration'] == 0) {//... closed
PHP Code:$results = mysql_result(mysql_query("SELECT `registration` FROM `settings`"), 0);
PHP Code:if ($results == 0) {//... closed
<!DOCTYPE html PUBLIC "-//WAPFORUM.RS
Comment
-
Originally posted by arnage View PostBut its was just an example, change vaule of $results["reg"] to $results["registration"], thats the table name. I checked now because i don't use those scripts so didn't know.
Code:INSERT INTO `settings` VALUES(6, 'registration', '1');
And there is nothing not to work, this way we select array from settings using mysql_fetch_array() to read and use the data:
PHP Code:$results = mysql_fetch_array(mysql_query("SELECT * FROM `settings`"));
PHP Code:if ($results['registration'] == 0) {//... closed
PHP Code:$results = mysql_result(mysql_query("SELECT `registration` FROM `settings`"), 0);
PHP Code:if ($results == 0) {//... closed
thanks for ya help but i got it now thanks very much
Comment
-
Guest
Comment