Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
2
0 Endorsements
Ranked #3K
~3K People Reached
Favorite Tags
Member Avatar for foxwizzy

so i have 2 lists i need to compare $list = array("Apple", "Orange", "Lemon", "Candy"); and $db = $r_bio['other']; $db2 = explode(":", $db); i want to compare the two and if i find the same i want to echo a checked checkbox if not an unchecked checkbox if($db2 == $list) …

Member Avatar for foxwizzy
0
113
Member Avatar for foxwizzy

<?php require_once("./Connections/root.php"); mysql_select_db($database_root, $root); include 'p_settings.php'; session_start(); $user = $_SESSION['MM_Username']; $q = mysql_query("SELECT id FROM performer WHERE username='$user' LIMIT 1") or die("Error : " . mysql_error()); $r = mysql_fetch_assoc($q); $id = $r['id']; ?> You can set three countries as banned." <br> Please choose from the following countries: <?php $query = …

Member Avatar for broj1
0
168
Member Avatar for foxwizzy

So i got a color selector from http://www.eyecon.ro/colorpicker/ How do i save the selected color code in a php var so i can insert it in a MySQL db ?

Member Avatar for pritaeas
0
73
Member Avatar for foxwizzy

<?php require_once('Connections/site.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; …

Member Avatar for foxwizzy
0
190
Member Avatar for foxwizzy

This is "part" of my code Imports System Imports System.IO Imports System.Text Public Class Form2 Public fo1 As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim path As String = Directory.GetCurrentDirectory() & "\test.txt" If File.Exists(path) Then My.Computer.FileSystem.WriteAllText(path, fo1, True) Else Dim fs As FileStream …

Member Avatar for foxwizzy
0
154
Member Avatar for dhruv_arora

Hey, I started learning PHP programming. I wrote this script to update a user's password from the mySQL database, but it's isn't doing so The script is :- [CODE]<?php include("header.html"); include("nav.html"); include("sidebars.html"); ?> <div id="content"> <?php $errors=array(); if(empty($_POST['uname'])) { $errors[]="You forgot to enter your username"; } else { $uname=$_POST['uname']; } …

Member Avatar for dhruv_arora
0
135
Member Avatar for foxwizzy

I want to update my users last log in in the database : [CODE]<input name="login" type="submit" id="login" onclick="<?php mysql_select_db($database_web, $web) or die("Error : " . mysql_error()); mysql_query("UPDATE users SET timp='NOW()' WHERE username='$user'")or die("Error : " . mysql_error());?>" value="LogIn" />[/CODE] this is my code but it doesent update the table :| …

Member Avatar for cereal
0
287
Member Avatar for foxwizzy

[CODE]<?php require_once('Connections/TSFH.php'); ?> <?php // *** Validate request to login to this site. if (!isset($_SESSION)) { session_start(); } $loginFormAction = $_SERVER['PHP_SELF']; if (isset($_GET['accesscheck'])) { $_SESSION['PrevUrl'] = $_GET['accesscheck']; } if (isset($_POST['username'])) { $loginUsername=$_POST['username']; $password=$_POST['password']; $MM_fldUserAuthorization = "aclevel"; $MM_redirectLoginSuccess = "/users/" . $loginUsername . "index.php"; $MM_redirectLoginFailed = "/login.php"; $MM_redirecttoReferrer = false; mysql_select_db($database_TSFH, …

Member Avatar for codewall
0
149
Member Avatar for alaa_steel

[CODE=php] if(mysql_query("update book set hometel='".$edit_hometel.",worktel='".$edit_worktel."', fax1='".$edit_fax1."',fax2='".$edit_fax2."',pobox='".$edit_pobox."',email='".$edit_email."' where name=".$row['name']." and hometel=".$row['hometel'])){ echo "<font face='arial narrow' size='3' color='#ffffff'>The Record has updated succesfully.</font><br>"; echo "<a href='index.php'><img src='images/buttons/continue_butt.gif' border='0'></a>"; }else{ echo "<font face='arial narrow' size='3' color='#ffffff'>An error has occured. Updating record failed.</font>"; } [/CODE] All Variables' names are right but it dosn't update the …

Member Avatar for zimah
0
192
Member Avatar for foxwizzy

is it posible to increase a mysql table default value to increase by a number based on another number E.X. i have a default value set to 10 how do i increase it by 1 every 3 minult also if i add a new number "3"(in a box or text …

Member Avatar for diafol
0
92
Member Avatar for AirGear

i'm a newbie in php, and i know this question maybe silly :( i tried to create a php file that will redirect to yahoo.com. i have searched in google, and i found that the code should be [CODE] <?php header('Location:http://www.yahoo.com ?> [/CODE] but i found that it didn't work. …

Member Avatar for AirGear
0
363
Member Avatar for SuntechWebsites

Heres the skinny: I have created a site with user login that directs the user to a page that only shows thier information pulled from the database. What I want to do now is create an admin side that allows the site owner to be able to use 1 login …

Member Avatar for foxwizzy
0
147
Member Avatar for foxwizzy

hello all i am new to this forum and need some help whit php. I am trying to create a script that shows the number of users online. [CODE]<?php $host = "xx.xxx.xxx.xx"; $user = "xxxx"; $pass = "xxxx"; $db = "users" $conn = mysql_connect("$host", "$user", "$pass") or die ("Unable to …

Member Avatar for diafol
0
217
Member Avatar for foxwizzy

Name : Sebastian Nick : FoxWizzy Age : 21 Ocupation : Nothing Location : Romania

0
26
Member Avatar for muralibobby2015

hello.... i want to do the validations in registration form. but my validation is when the user enters the value in textbox that value automatically cheks that value is already in database or not. for example..........username textbox is there..now i am entering value first three letter "kal" then comes beside …

Member Avatar for jomanlk
0
215