Display MySQL data in PHP webpage

已完成 已发布的 Sep 23, 2015 货到付款
已完成 货到付款

I have a MySQL database that will contain questions for a quiz. It's columns are

Date

Question Number

Question

Answer

I need to have some code written that will pull the 10 questions on a date and display them on a webpage.

So far I have this

===

<h2>Today's questions <span class = "light">(1 point each)</span></h2>

<div class = "questions">

<?php

// SELECT RECORDS WHERE DATE MATCHES THE CURRENT DATE

$result = mysql_query("SELECT * FROM dailyqanda WHERE date=CURRENT_DATE()");

$num=mysql_num_rows($result);

// PRINT THE RESULT

$row = mysql_fetch_assoc($result);

echo "<p><strong>"; echo $row['question-num'];echo ".</strong>&nbsp;";

echo $row['questions'];echo "</p>";

?>

</div><!-- END QUESTIONS -->

===

Urgent job, need completed within 30 minutes

HTML MySQL PHP

项目ID: #8541834

关于项目

9个方案 远程项目 活跃的Sep 23, 2015

授予:

Civris

I have created a similar script before so have the experience needed, I can have this done very quickly.

$25 AUD 在1天内
(4条评论)
2.3

有9名威客正在参与此工作的竞标,均价$25/小时

verya

Good day! I could certainly give you a hand right away, but will require access to your server and DB. Come chat with me so we can discuss this project - I'm ready to start right away :) I've lowered my bid :)

$23AUD 在1天里
(40条评论)
4.8
rinabuoy13

Hey There, I can do this for you for 1 day. I can ensure the quality for you. Looking forward to hearing from you soon. Regards

$25AUD 在1天里
(15条评论)
4.6
kienngd

Dear sir, please contact me. We will discuss about your requirements. When I understand your requirements I'll do it for you. In your code I see it get all question of the day and show the first question_num and questi 更多

$30AUD 在1天里
(21条评论)
4.6
webNeat

Hello, I am software engineer. I like solving complex problems and building awesome applications. Let's do this right now

$20AUD 在1天里
(8条评论)
3.8
futurezsolutions

I understood your needs and I can ready to work with you. Thanking You Regards Bhaskar Dhara for FuturezSolutions

$15AUD 在1天里
(0条评论)
0.0
WebDeveloper91

Aucune proposition n'a encore été fournie.

$30AUD 在1天里
(0条评论)
0.0