Created
March 25, 2021 16:25
-
-
Save staycreativedesign/b16fff2c99bd4789392ab4e38ed4a05d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$result = mysql_query("SET @User_id = (SELECT user_id FROM caffeine_customers_shipping_addresses WHERE id = 4650);SELECT * FROM caffeine_customers_shipping_addresses WHERE user_id=@User_id"); | |
$rows = array(); | |
while ($r = mysql_fetch_array($result)) { | |
$rows[] = $r; | |
} | |
echo json_encode($rows); | |
<b>Warning</b>: mysql_fetch_array() expects parameter 1 to be resource, boolean given in <b>/Users/pdgcreative/Projects/blue-sky-bio/public_html/store/update-address.php</b> on line <b>40</b><br /> | |
[] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment