User Profile

Collapse

Profile Sidebar

Collapse
Snaked
Snaked
Last Activity: Nov 18 '08, 09:24 PM
Joined: Mar 16 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Snaked
    replied to PHP and mysql: Login query??
    in PHP
    I realize what went wrong now... I FORGOT TO CONNECT TO THE DATABASE. Thanks for your help.
    See more | Go to post

    Leave a comment:


  • Snaked
    started a topic PHP and mysql: Login query??
    in PHP

    PHP and mysql: Login query??

    Code:
    function log_in($uname,$pword){
    		if (mysql_num_rows(mysql_query("SELECT `iduser`, `cardno` FROM `user` WHERE `uname` = 'Steffan_James' AND `pword` = 'collingwoodcard'"))){
    		$res = mysql_query("SELECT * FROM `user` WHERE `uname` = 'Steffan_James' AND `pword` = 'collingwoodcard' LIMIT 1");
    		$row = mysql_fetch_array($res);
    		setcookie('id',$row["iduser"],2592000 + time(),'/');
    		setcookie('cno',$row["cardno"],2592000
    ...
    See more | Go to post

  • Snaked
    started a topic String conversion

    String conversion

    My flash file gets 2 vars from a php file, but, when they appear in the Dynamic Textboxes, they show with the quotes around them. And, how would I convert a real value to a string? Thanks for your help!
    See more | Go to post

  • Snaked
    replied to use a variable in a function?
    in PHP
    EDIT: Never mind, i fixed it myself. Whoops
    See more | Go to post
    Last edited by Snaked; Apr 2 '08, 02:52 PM. Reason: FIX

    Leave a comment:


  • Snaked
    replied to use a variable in a function?
    in PHP
    $sname=$_GET["name"];
    if that is what you mean, yes.
    See more | Go to post

    Leave a comment:


  • Snaked
    started a topic use a variable in a function?
    in PHP

    use a variable in a function?

    [PHP]function flash_search()
    {
    $query="SELECT score FROM hi WHERE name='$sname'";
    $scre=mysql_que ry($query);
    $res=mysql_fetc h_array($scre,M YSQL_ASSOC);
    echo $sname;
    echo $res["score"];
    }[/PHP]
    This, by some crazy therory, should display the name and score of one person in my database.

    This is where $sname="Test" (an existing user)
    the...
    See more | Go to post

  • Snaked
    replied to Adding to an existing value. (integer)
    in PHP
    Oh, and by the way, the php action for modify_table is sent silently by an exe made by me
    See more | Go to post

    Leave a comment:


  • Snaked
    replied to Adding to an existing value. (integer)
    in PHP
    Thank you roverdonk! This question is solved.
    See more | Go to post

    Leave a comment:


  • Snaked
    replied to Adding to an existing value. (integer)
    in PHP
    i would be talking to roverdonk thank you... i tried using it directly, but it didn't work
    See more | Go to post

    Leave a comment:


  • Snaked
    replied to Adding to an existing value. (integer)
    in PHP
    Thank you for the answer, my code has many encryptions elsewhere, that was just a snippet. edit- is this a direct code? can i copy/paste? or do i need to adapt it? i don't mind either way...
    See more | Go to post

    Leave a comment:


  • Snaked
    started a topic Adding to an existing value. (integer)
    in PHP

    Adding to an existing value. (integer)

    [PHP]<?php

    //this function is the responsible of modifying the player in the table
    function modify_table()
    {
    //first the query try to get a row where the name of the player is = to the name in the url
    $query = "SELECT name FROM hi WHERE name='".$_GET["name"]."'";
    $res = mysql_query($qu ery) or die("Couldn't execute $query: ".mysql_error() );

    ...
    See more | Go to post
No activity results to display
Show More
Working...