project
Posted: Fri Sep 30, 2011 5:44 am
i am doing a project where a user has to send and receive mails .i am new to php .can i do this using php and have my own domain name like gmail .or should i choose other language ? please help
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$q = "SELECT name FROM users WHERE u_no='$no'";
$r =@mysqli_query ($dbc ,$q);
$num = mysql_num_rows($r);
if ($num > 0)
{
$row=mysql_fetch_array($r);
Are you expecting only a single result? If so, I'd add LIMIT 1 to your query.vijeshkrishna wrote:i need to store the returned name value to a variable.please help me out .i am stuck.....
Code: Select all
<?php
$query = "SELECT name FROM users WHERE u_no = '$no' LIMIT 1";
$result = mysqli_query($query);
if ($result !== FALSE)
{
list($name) = mysqli_fetch_row($result);
}
?>