Forum: PHP 21 Days Ago |
| Replies: 7 Views: 472 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 |
Forum: PHP Jul 23rd, 2009 |
| Replies: 9 Views: 316 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 Something like that?
$query="Select * from table where field=`searchkey`"; |
Forum: PHP Jul 21st, 2009 |
| Replies: 6 Views: 285 No problem bro, mark this thread as solved now. Don't forget the rep! ;) |
Forum: PHP Jul 21st, 2009 |
| Replies: 6 Views: 361 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 How about the tables or the fields?Are they correct?The code seems fine. |
Forum: PHP Jul 21st, 2009 |
| Replies: 6 Views: 361 kindly look at rename() function in PHP. |
Forum: PHP Jul 21st, 2009 |
| Replies: 3 Views: 262 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 is the code working already with the original query? |
Forum: PHP Jul 13th, 2009 |
| Replies: 1 Views: 256 yes , you are correct.try to echo out your variables and you'll see :) |
Forum: PHP Sep 16th, 2008 |
| Replies: 3 Views: 857 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 yeah,just what darkagn has said,change the data type of your db field. |
Forum: PHP Sep 3rd, 2008 |
| Replies: 4 Views: 818 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 Maybe this could help you:
http://www.leigeber.com/2008/04/custom-javascript-dialog-boxes/ |
Forum: PHP Aug 14th, 2008 |
| Replies: 9 Views: 793 Nice of you Evancool! +1 reputation to you! |
Forum: PHP Aug 14th, 2008 |
| Replies: 2 Views: 1,445 |
Forum: PHP Aug 14th, 2008 |
| Replies: 15 Views: 1,039 Welcome!Kindly mark this thread solved;) |
Forum: PHP Aug 14th, 2008 |
| Replies: 15 Views: 1,039 put all your php files in the htdocs then try again. |
Forum: PHP Aug 7th, 2008 |
| Replies: 9 Views: 767 something like:
echo '<script type="text/javascript">
alert("hello");
</script>';
but this is not recommended.. |
Forum: PHP Aug 7th, 2008 |
| Replies: 9 Views: 767 I think that's not possible,Use javascript instead for popup boxes |
Forum: PHP Aug 7th, 2008 |
| Replies: 9 Views: 767 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 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 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 No whitespaces and echo statements also. |
Forum: PHP Aug 5th, 2008 |
| Replies: 1 Views: 347 you can post it at code snippets section so it can be used for later use. |
Forum: PHP Aug 4th, 2008 |
| Replies: 5 Views: 545 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 |
Forum: PHP Jul 30th, 2008 |
| Replies: 2 Views: 496 just echo the body tag:
<?php
echo "<body onload='init()'>";
?> |
Forum: PHP Jul 29th, 2008 |
| Replies: 7 Views: 2,187 And I also want you to meet by best friend, Google! ;) |
Forum: PHP Jul 29th, 2008 |
| Replies: 4 Views: 343 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 Use post method so variables will not be seen in the address. |
Forum: PHP Jul 29th, 2008 |
| Replies: 2 Views: 584 |
Forum: PHP Jul 23rd, 2008 |
| Replies: 4 Views: 1,081 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 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 |
Forum: PHP Jul 3rd, 2008 |
| Replies: 5 Views: 504 tizag works best!
http://www.tizag.com/phpT/ |
Forum: PHP Jun 29th, 2008 |
| Replies: 10 Views: 2,385 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... |