project
Moderator: General Moderators
-
vijeshkrishna
- Forum Newbie
- Posts: 3
- Joined: Thu Sep 29, 2011 9:30 pm
project
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
Re: project
I've split this post into it's own project. Please don't try to hijack threads.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
vijeshkrishna
- Forum Newbie
- Posts: 3
- Joined: Thu Sep 29, 2011 9:30 pm
Re: project
i am developing a project using php and mysql.i need to store the return value in a variable after running the select statement.
i need to store the returned name value to a variable.please help me out .i am stuck.....
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);
i need to store the returned name value to a variable.please help me out .i am stuck.....
Re: project
If you have a new question, create a new topic. This will help you get help quicker as the title will be more relevant. It will also help future members when searching with a similar problem.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: project
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);
}
?>