~legolas/ubuntu/natty/php5/5.3.5

« back to all changes in this revision

Viewing changes to ext/mysqli/tests/024.phpt

  • Committer: Stas Verberkt
  • Date: 2011-02-01 09:27:15 UTC
  • Revision ID: legolas@legolasweb.nl-20110201092715-yq052iu2yl4i2eyg
Inserted PHP 5.3.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
                c7 smallint)");
26
26
 
27
27
        $stmt = mysqli_prepare($link, "INSERT INTO test_bind_fetch VALUES (?,?,?,?,?,?,?)");
28
 
        mysqli_bind_param($stmt, "iiiiiii", $c1,$c2,$c3,$c4,$c5,$c6,$c7);
 
28
        mysqli_stmt_bind_param($stmt, "iiiiiii", $c1,$c2,$c3,$c4,$c5,$c6,$c7);
29
29
 
30
30
        $c1 = -23;
31
31
        $c2 = 35999;
35
35
        $c6 = -0;
36
36
        $c7 = 0;
37
37
 
38
 
        mysqli_execute($stmt);
 
38
        mysqli_stmt_execute($stmt);
39
39
        mysqli_stmt_close($stmt);
40
40
 
41
41
        $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch");
42
 
        mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
43
 
        mysqli_execute($stmt);
44
 
        mysqli_fetch($stmt);
 
42
        mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7);
 
43
        mysqli_stmt_execute($stmt);
 
44
        mysqli_stmt_fetch($stmt);
45
45
 
46
46
        $test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7);
47
47