Forum: PHP Jul 21st, 2009 |
| Replies: 6 Views: 284 No problem bro, mark this thread as solved now. Don't forget the rep! ;) |
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 6th, 2008 |
| Replies: 4 Views: 1,222 much easier:
$query="SELECT SUM(points) AS `total` from members2";
$result=mysql_query($query);
$total=mysql_result($result,0,"total"); |
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 3rd, 2008 |
| Replies: 5 Views: 504 tizag works best!
http://www.tizag.com/phpT/ |
Forum: PHP May 29th, 2008 |
| Replies: 5 Views: 4,187 just delete out the
"$row = mysql_fetch_array($result);"
and it would be fine. |
Forum: PHP May 15th, 2008 |
| Replies: 1 Views: 1,677 <?php
require_once('core/db.php');
require_once('core/secure.php');
$query = mysql_query("SELECT username FROM admin WHERE id = 1");
$result=mysql_query($query);... |
Forum: PHP Apr 11th, 2008 |
| Replies: 5 Views: 1,081 I think the class itself has the error.Try to check them more intensively to find out why it is not working. |
Forum: PHP Oct 30th, 2007 |
| Replies: 6 Views: 788 please replace this part of your code:
<?php
$category = "Posts";
# setup SQL statement
$SQL = " SELECT * FROM posts WHERE category = '$category' ";
# execute SQL... |