dougan7657 2018-08-09 23:06
浏览 40

在第一个ajax请求实时搜索配置文件视图点击功能之后处理第二个ajax请求

Hello everyone thank you for looking at my problem:)) so i have a google drive link where you can download my project because last time i asked a question it was hard for people to help because they cant access my database. The reason being is that i am hosting it locally and dont have the means to do it any other way. In the zip file is a .csv that you can upload to your phpmyadmin. if you upload it to a database called "names" in a table called "contact_info" with the following column names:

"First", "Last", "Mail", "Phone", "State", "Specialty", "Src", and "Description"

it should all work.

I have a livesearch that works well, once you click on a tr element(contact info), it pops open a div that is supposed to contain contact info, a description, and a picture

Basically i am stuck on how to display information on the div "#profilediv" using an ajax call

i want the click function on the #resulttbl tr to perform an ajax call that will echo out all the all the data from the column clicked.

basically:

<?php
echo "<img src='.$row['Src']'>"

echo "<div> <p>.$row['First']."
echo ".$row['Last'].</p>"
echo "<p>.$row['Mail'].</p>"
echo "<p>.$row['Phone'].</p>"
echo "<p>.$row['State'].</p>"
echo "<p>.$row['Specialty'].</p></div>"

echo "<div>.$row['Description'].</div>"
?>

but specific to the the tr element clicked....im really stuck on this one and i am not even sure what a function like this is called or really any clue what to google.

sorry if i made this super convoluted. i am really, really new to php and i am trying to grasp how it works /.\

thank you again for the help!!!!:))

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 stm32开发clion时遇到的编译问题
    • ¥15 lna设计 源简并电感型共源放大器
    • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
    • ¥15 Vue3地图和异步函数使用
    • ¥15 C++ yoloV5改写遇到的问题
    • ¥20 win11修改中文用户名路径
    • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
    • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
    • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
    • ¥15 帮我写一个c++工程