~legolas/ubuntu/natty/php5/5.3.5

« back to all changes in this revision

Viewing changes to ext/mysqli/tests/019.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:
28
28
        if (!$stmt = mysqli_prepare($link, "INSERT INTO insert_read(col1,col10, col11, col6) VALUES (?,?,?,?)"))
29
29
                printf("[003] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
30
30
 
31
 
        mysqli_bind_param($stmt, "issd", $c1, $c2, $c3, $c4);
 
31
        mysqli_stmt_bind_param($stmt, "issd", $c1, $c2, $c3, $c4);
32
32
 
33
33
        $c1 = 1;
34
34
        $c2 = "foo";
35
35
        $c3 = "foobar";
36
36
        $c4 = 3.14;
37
37
 
38
 
        mysqli_execute($stmt);
 
38
        mysqli_stmt_execute($stmt);
39
39
        mysqli_stmt_close($stmt);
40
40
 
41
41
        if (!$stmt = mysqli_prepare($link, "SELECT col1, col2, col3, col4, col5, col6, col7, col8, col9, col10, col11 FROM insert_read"))
42
42
                printf("[004] [%d] %s\n", mysqli_errno($link), mysqli_error($link));
43
43
 
44
 
        mysqli_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8, $c9, $c10, $c11);
45
 
        mysqli_execute($stmt);
 
44
        mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8, $c9, $c10, $c11);
 
45
        mysqli_stmt_execute($stmt);
46
46
 
47
 
        mysqli_fetch($stmt);
 
47
        mysqli_stmt_fetch($stmt);
48
48
 
49
49
        $test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7,$c8,$c9,$c10,$c11);
50
50