Search Results

Showing results 1 to 40 of 292
Search took 0.02 seconds.
Search: Posts Made By: ryan_vietnow ; Forum: PHP and child forums
Forum: PHP 21 Days Ago
Replies: 7
Views: 472
Posted By ryan_vietnow
replace your single quotes with double quotes, and your double quotes inside the string with single quotes.PHP interpret variables inside a string with double-quotes on them.

Example:
...
Forum: PHP Jul 30th, 2009
Replies: 4
Views: 210
Posted By ryan_vietnow
what's the error?
Forum: PHP Jul 23rd, 2009
Replies: 9
Views: 316
Posted By ryan_vietnow
continue to practice what you are learning right now then after you are familiar with it try to study different opensource softwares and CMS like wordpress,joomla,etc. They will make your application...
Forum: PHP Jul 22nd, 2009
Replies: 4
Views: 410
Posted By ryan_vietnow
Something like that?


$query="Select * from table where field=`searchkey`";
Forum: PHP Jul 21st, 2009
Replies: 6
Views: 285
Posted By ryan_vietnow
No problem bro, mark this thread as solved now. Don't forget the rep! ;)
Forum: PHP Jul 21st, 2009
Replies: 6
Views: 361
Posted By ryan_vietnow
include the path from where the file is coming from and the path from where it will reside and renamed.
Forum: PHP Jul 21st, 2009
Replies: 6
Views: 285
Posted By ryan_vietnow
How about the tables or the fields?Are they correct?The code seems fine.
Forum: PHP Jul 21st, 2009
Replies: 6
Views: 361
Posted By ryan_vietnow
kindly look at rename() function in PHP.
Forum: PHP Jul 21st, 2009
Replies: 3
Views: 262
Posted By ryan_vietnow
First,you must buy a web domain and hosting for you to transfer it with PHP,Apache and MySQL.But free domain hosting will do as long as they support them(Free hosting sites are slow so get a paid...
Forum: PHP Jul 21st, 2009
Replies: 6
Views: 285
Posted By ryan_vietnow
is the code working already with the original query?
Forum: PHP Jul 13th, 2009
Replies: 1
Views: 256
Posted By ryan_vietnow
yes , you are correct.try to echo out your variables and you'll see :)
Forum: PHP Sep 16th, 2008
Replies: 3
Views: 857
Posted By ryan_vietnow
what exactly do you mean?If you want the site to be "dyanmic"(e.g. transaction based,user generated content) you must use php or asp etc. to do this kind of work.
Forum: PHP Sep 4th, 2008
Replies: 3
Views: 380
Posted By ryan_vietnow
yeah,just what darkagn has said,change the data type of your db field.
Forum: PHP Sep 4th, 2008
Replies: 4
Views: 818
Posted By ryan_vietnow
Forum: PHP Sep 3rd, 2008
Replies: 4
Views: 818
Posted By ryan_vietnow
Replace the $result in this one:


to $sql because your $sql variable is what holds your query.
$result holds the mysql_num_rows value.
Forum: PHP Aug 14th, 2008
Replies: 2
Views: 832
Posted By ryan_vietnow
Maybe this could help you:

http://www.leigeber.com/2008/04/custom-javascript-dialog-boxes/
Forum: PHP Aug 14th, 2008
Replies: 9
Views: 793
Posted By ryan_vietnow
Nice of you Evancool! +1 reputation to you!
Forum: PHP Aug 14th, 2008
Replies: 2
Views: 1,445
Posted By ryan_vietnow
Forum: PHP Aug 14th, 2008
Replies: 15
Solved: I need help!!
Views: 1,039
Posted By ryan_vietnow
Welcome!Kindly mark this thread solved;)
Forum: PHP Aug 14th, 2008
Replies: 15
Solved: I need help!!
Views: 1,039
Posted By ryan_vietnow
put all your php files in the htdocs then try again.
Forum: PHP Aug 7th, 2008
Replies: 9
Views: 767
Posted By ryan_vietnow
something like:


echo '<script type="text/javascript">
alert("hello");
</script>';


but this is not recommended..
Forum: PHP Aug 7th, 2008
Replies: 9
Views: 767
Posted By ryan_vietnow
I think that's not possible,Use javascript instead for popup boxes
Forum: PHP Aug 7th, 2008
Replies: 9
Views: 767
Posted By ryan_vietnow
use file_exists function



$filename = '/path/to/foo.txt';

if (file_exists($filename)) {
echo "The file $filename exists";
} else {
echo "The file $filename does not exist";
Forum: PHP Aug 6th, 2008
Replies: 4
Views: 1,223
Posted By ryan_vietnow
much easier:


$query="SELECT SUM(points) AS `total` from members2";
$result=mysql_query($query);
$total=mysql_result($result,0,"total");
Forum: PHP Aug 6th, 2008
Replies: 4
Views: 1,223
Posted By ryan_vietnow
you can try something like this:

$query="Select points from members2";
$result=mysql_query($query);

$total=0;
while($row=mysql_fetch_array($result))
{
$total=$total + $row['points'];
}
Forum: PHP Aug 5th, 2008
Replies: 5
Views: 1,109
Posted By ryan_vietnow
Forum: PHP Aug 5th, 2008
Replies: 1
Views: 347
Posted By ryan_vietnow
you can post it at code snippets section so it can be used for later use.
Forum: PHP Aug 5th, 2008
Replies: 5
Views: 545
Posted By ryan_vietnow
Forum: PHP Aug 4th, 2008
Replies: 5
Views: 545
Posted By ryan_vietnow
Or if you want the two fields to be searched then go for AND:


$query = "SELECT * FROM runners WHERE first_name ='".$name."' AND last_name='".$lname."'";
Forum: PHP Jul 31st, 2008
Replies: 2
Views: 426
Posted By ryan_vietnow
Forum: PHP Jul 30th, 2008
Replies: 2
Views: 496
Posted By ryan_vietnow
just echo the body tag:
<?php
echo "<body onload='init()'>";
?>
Forum: PHP Jul 29th, 2008
Replies: 7
Views: 2,187
Posted By ryan_vietnow
And I also want you to meet by best friend, Google! ;)
Forum: PHP Jul 29th, 2008
Replies: 4
Views: 343
Posted By ryan_vietnow
as it says in the error(the last line)

"Table 'imedia_lyrics.config' doesn't exist"

it simply means the table does not exist.try creating the table and see how it goes.
Forum: PHP Jul 29th, 2008
Replies: 4
Views: 2,398
Posted By ryan_vietnow
Use post method so variables will not be seen in the address.
Forum: PHP Jul 29th, 2008
Replies: 2
Views: 584
Posted By ryan_vietnow
editpadlite will do.
Forum: PHP Jul 23rd, 2008
Replies: 4
Views: 1,081
Posted By ryan_vietnow
yeah,you can move that to the snippets page.It will be useful to many!
Forum: PHP Jul 8th, 2008
Replies: 10
Views: 2,332
Posted By ryan_vietnow
sure,you can,get the id of that you want to delete then perform the delete query in the same page.for example:
(this is your page,e.g. sample.php)

<?php
//db connections..

$result =...
Forum: PHP Jul 7th, 2008
Replies: 6
Views: 566
Posted By ryan_vietnow
search engine?:D
Forum: PHP Jul 3rd, 2008
Replies: 5
Solved: too risky!
Views: 504
Posted By ryan_vietnow
tizag works best!

http://www.tizag.com/phpT/
Forum: PHP Jun 29th, 2008
Replies: 10
Views: 2,385
Posted By ryan_vietnow
Try to store the ipaddress of the user and date into a new table then have a timeline for how many days/months etc. on how the id will be saved in that ipadd by subtracting current date from the...
Showing results 1 to 40 of 292

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC