// require('db.php');
mysql_connect("localhost", "root", "") or
die("Could not connect: " . mysql_error());
mysql_select_db("alphaindia");
//SELECT Id, Name FROM coursetype where isDeleted=0
$result = mysql_query("Call GetCourseTypes()");
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
printf("ID: %s Name: %s", $row["Id"], $row["Name"]);
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
// printf("ID: %s Name: %s", $row["Id"], $row["Name"]);
echo "<a href='UploadCourse/Step2.php?id=$row['Id']&name=$row['Name']'>$row['Id']</a> $row['Name']<br />";
}
I am getting a blank page when i try and run the above code.
Please help i am new to php
error.log
file – hsz Jan 31 '14 at 8:42mysqli
instead ofmysql
– user2936213 Jan 31 '14 at 8:52