[英]I'm having trouble receiving the registration information from the app in my php file to insert that information into the MSQL database
[英]How to insert information from database into my php/display on my website?
我所有的信息都將進入保存的數據庫中,但是當我使用唯一的電子郵件登錄時,我希望它能重新出現。 我在php中嘗試了很多不同的代碼。 這是我最近嘗試過的。
$result_habit = mysqli_query ($con, $query_habit);
if (mysqli_num_rows($result_habit) ==1) {
echo "found the row for ", $Email;
$row = mysqli_fetch_row($result_habit);
echo "$row[c1]"
我希望它顯示表“ habit”中的信息,並且每一行都標記為c1,c2,c3等。我還需要做其他事情來獲取保存的數據以顯示每個唯一的登錄電子郵件嗎? 謝謝
$result_habit = mysqli_query ($con, $query_habit);
if (mysqli_num_rows($result_habit) == 1) {
echo "found the row for ", $Email;
$row = mysqli_fetch_row($result_habit);
echo $row['c1'];
}
這應該是編寫代碼的正確方法。 您似乎所錯過的只是右括號,並正確地回顯了row變量。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.