Results 1 to 9 of 9
Thread: SQL -
Hybrid View
-
26th November 2017 12:15 #1Product of Science
Join Date: Aug:2016
Location:
Posts: 294
SQL -
php - :
, : WHERE customer_id=$row1["customer_id"]Code:$result1 = $conn->query($sql1); if ($result1->num_rows > 0) { while ($row1 = mysqli_fetch_assoc($result1)) { echo $row1["email"]; echo "<br>"; echo $row1["first_name"]; echo "<br>"; $sql2 = "SELECT customer_id, welcome FROM customer_order_emails WHERE customer_id=$row1["customer_id"]; $result2 = $conn->query($sql2); /* ................ */ } }
-
26th November 2017 12:40 #2Registered User
Join Date: Dec:2003
Posts: 2,817
php .
Gigabyte DS3P, E4400@9x333, 2x2Gb Super T@1000Mhz, Gigabyte GTX460OC 768Mb
-
26th November 2017 13:03 #3Product of Science
Join Date: Aug:2016
Location:
Posts: 294
, :
Code:$sql2 = "SELECT customer_id, welcome FROM customer_order_emails WHERE customer_id=$row1["customer_id"];
- , ,Code:$sql2 = 'SELECT customer_id, welcome FROM customer_order_emails WHERE customer_id=$row1["customer_id"]';
??????Code:echo $row1["first_name"];
!
-
26th November 2017 13:42 #4Banned
Join Date: Aug:2008
Location:
Posts: 5,960
- , - UTF8.
PHP , .Code:$conn = new mysqli("IP", "", "", ""); $Error=""; $conn->set_charset("utf8"); if ($conn->connect_errno) { Error("DB erro " . $conn->connect_errno); }Last edited by moonclub; 26th November 2017 at 20:49.
-
26th November 2017 20:20 #5
"" / ( ) : "alabala {$var1['index']}";
- .
, moonclub, , , php , . Content-Type .
, / , UTF-8 .
-
26th November 2017 21:05 #6Product of Science
Join Date: Aug:2016
Location:
Posts: 294
@moonclub @tedych. .
, PHP mail() Function,
, - , - - , -.Code:bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )
, PHP 7.




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in