لمحترفي الويبPHP - معمو — الصفحة ١٥٢

الفصل الخامس 152 البرنامج النصي admin.php (تابع) 65. $sq12 $r["code"] = "select * from inventory where id='" ; 66. $result2 = $dbconn->query($sql2); 67. 68. errortrap ($result); $result2->fetchinto ($r2); 69. ?> 70. 71. 72. 73. 74. 75. </td> 76. </tr> <td> name: <?=$r2 ["name"]?> <br>code: <?=$r2 ["code"]?> <br>description: <?=$r2 ["description"]?> <br>price: <?=$r2{"price"]?> 乏 77. <? 78. } 79. ?> 80. </table> 81. <? 82. $sql = 83. 84. 85. 86. 87. 88. "select customer from orders where id= '$id'"; $result = $dbconn->query($sql); errortrap ($result); $result->fetchinto ($r); $cust= get_customer ($r["customer"]); display_customer ($cust); } //end display_order_details 89. 90. function update_order_status($id) { 91. global $dbconn; $sql = "select * from orders where id='$id'"; $result = $dbconn->query($sql); errortrap ($result); $result->fetchinto ($r); 92. 93. 94. 95. 96. ?> 97. 98. 99. <form action=admin.php method=post> <P>When changing status to "Shipped" you can include an optional tracking number that is sent to the customer by email. <table border=1 cellpadding=5 cellspacing=0>
ص١٥٢

نص مستخرج آليًا من الصورة، وقد يقع فيه خطأ.