Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

php string problem

Codes here !

Moderators: macek, egami, gesf

php string problem

Postby jagbir » Mon Jan 28, 2013 9:28 am

my php code is:

<?php
include "db.in.php";
$query="select * from studentinfo";
$result=mysql_query($query);

while($row=mysql_fetch_array($result))
{



echo("<tr><td>$row[0]</td><td>$row[1]</td><td>$row[2]</td><td>");
echo("<a href=\"edit_form.php?id=$row[0]\">edit</a></td></tr>");
}
?>


it gives an error
The requested URL /edit_form.php was not found on this server.
:(
jagbir
New php-forum User
New php-forum User
 
Posts: 1
Joined: Mon Jan 28, 2013 9:26 am

Re: php string problem

Postby php9 » Fri Feb 22, 2013 2:52 am

A 404 error means you have the wrong URL for your PHP script. The code itself likely has nothing to do with it. Check the path of your script.
php9
New php-forum User
New php-forum User
 
Posts: 13
Joined: Fri Feb 22, 2013 2:20 am


Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron