dongzuo4666 2015-02-06 09:45
浏览 33

如何将会话数据存储到php文件

I have website which gives points when they click on name will be redirected to the linked webpage.These names are stored in my MySQL database. I have used following point system to give point (only 1 point)

<a href="" id="stack-overflow">www.stackoverflow.com</a>
Now in your js file:
$('#stack-overflow').on('click', function() {
count = 1 
  //send a ajax
$.ajax({
  url:'usersdb.php',
  type:'GET'
  dataType: 'json'
  data: {
   points: count,
      },
  success: function(resp){
  $('#stack-overflow').href='www.stackoverflow.com';
  //now triggered this link
  $('#stack-overflow').click();
  //or what ever msg you want to display
  });
  });




instead of www.stackoverflow.com i want to display name form mysql database and link it to url in the same column

I have 2 field in MySQL database 1) url 2) name i want to display randomly name and link it to url and display it on database only once and give one point.My signup information are kept in userdb.php. I want to store this point and display it again

</div>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 2024-五一综合模拟赛
    • ¥15 下图接收小电路,谁知道原理
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度
    • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
    • ¥15 ETLCloud 处理json多层级问题
    • ¥15 matlab中使用gurobi时报错
    • ¥15 这个主板怎么能扩出一两个sata口
    • ¥15 不是,这到底错哪儿了😭