Forum: PHP Jul 21st, 2009 |
| Replies: 6 Views: 272 No problem bro, mark this thread as solved now. Don't forget the rep! ;) |
Forum: PHP Jul 21st, 2009 |
| Replies: 6 Views: 272 How about the tables or the fields?Are they correct?The code seems fine. |
Forum: PHP Jul 21st, 2009 |
| Replies: 6 Views: 348 kindly look at rename() function in PHP. |
Forum: PHP Jul 21st, 2009 |
| Replies: 3 Views: 254 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: 272 is the code working already with the original query? |
Forum: PHP Aug 14th, 2008 |
| Replies: 15 Views: 1,018 Welcome!Kindly mark this thread solved;) |
Forum: PHP Aug 14th, 2008 |
| Replies: 15 Views: 1,018 put all your php files in the htdocs then try again. |
Forum: PHP Aug 6th, 2008 |
| Replies: 4 Views: 1,167 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,167 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,062 No whitespaces and echo statements also. |
Forum: PHP Jul 29th, 2008 |
| Replies: 4 Views: 340 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,318 Use post method so variables will not be seen in the address. |
Forum: PHP Jul 23rd, 2008 |
| Replies: 4 Views: 1,024 yeah,you can move that to the snippets page.It will be useful to many! |
Forum: PHP Jul 8th, 2008 |
| Replies: 10 Views: 2,292 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: 495 tizag works best!
http://www.tizag.com/phpT/ |
Forum: PHP Jun 26th, 2008 |
| Replies: 10 Views: 2,321 Ahh! keith is faster than me;) :D |
Forum: PHP Jun 26th, 2008 |
| Replies: 10 Views: 2,321 you can change your query like this to validate a username with its password.
(let us say pword is your password table in db...)
replace this:
$result = mysql_query("SELECT * FROM logins... |
Forum: PHP May 29th, 2008 |
| Replies: 5 Views: 4,081 it is because that $row is supposed to be 0 in the opening of the while loop which will get row 0 or the first row in the result.If you set the $row into the mysql_fetch_array,the result will not be... |
Forum: PHP May 29th, 2008 |
| Replies: 5 Views: 4,081 the one that is under the query. |
Forum: PHP May 29th, 2008 |
| Replies: 5 Views: 4,081 just delete out the
"$row = mysql_fetch_array($result);"
and it would be fine. |
Forum: PHP May 26th, 2008 |
| Replies: 5 Views: 1,626 |
Forum: PHP May 23rd, 2008 |
| Replies: 16 Views: 1,548 put it in an if statement:
if ($variable21="")
{
//do nothing
}
else
{
echo "<p<b>Meetings:</b> $variable21</p>";
} |
Forum: PHP May 15th, 2008 |
| Replies: 1 Views: 1,602 <?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 22nd, 2008 |
| Replies: 4 Views: 700 Or maybe put the $_GET variable into a session and fetch it after page reloads. |
Forum: PHP Apr 18th, 2008 |
| Replies: 5 Views: 2,075 Connection problems?Server problems?Try to optimize your code to make it a little faster. |
Forum: PHP Apr 18th, 2008 |
| Replies: 5 Views: 2,075 I think that's not possible because the script is executed in the web server before it is viewed by the user.Why do you want to do this anyway? |
Forum: PHP Apr 11th, 2008 |
| Replies: 3 Views: 617 just escape the quotation marks you will need inside the first quotation mark:
$x="this \" is a quote";
echo $x; |
Forum: PHP Apr 11th, 2008 |
| Replies: 5 Views: 1,035 I think the class itself has the error.Try to check them more intensively to find out why it is not working. |
Forum: PHP Apr 11th, 2008 |
| Replies: 5 Views: 1,035 Please post the code for filename.php |
Forum: PHP Apr 10th, 2008 |
| Replies: 3 Views: 656 |
Forum: PHP Apr 4th, 2008 |
| Replies: 14 Views: 1,571 |
Forum: PHP Apr 4th, 2008 |
| Replies: 14 Views: 1,571 and also in here:
echo "<td>$row['email'];</td>";
I am referring to the ";" in the middle. |
Forum: PHP Apr 4th, 2008 |
| Replies: 14 Views: 1,571 you have mistakenly put ";" in this line:
echo "<td>$row['last_name'];</td>";
erase it and it will be fine. |
Forum: PHP Apr 3rd, 2008 |
| Replies: 14 Views: 1,571 just put the echo thing inside the table.
$query = "SELECT * FROM customers WHERE job_number='$jobnumber'";
$result = mysql_query($query);
echo "<table>";
while ($row =... |
Forum: PHP Apr 3rd, 2008 |
| Replies: 14 Views: 1,571 there's no problem in your code that will display the results alright.Do you mean that you want to display the results in a specific area of an HTML page? |
Forum: PHP Apr 3rd, 2008 |
| Replies: 14 Views: 1,571 Could you please explain more what you want to display? |
Forum: PHP Apr 2nd, 2008 |
| Replies: 7 Views: 660 then it simply means that $_SESSION['un'] is not existing.Where does this session comes from anyway? |
Forum: PHP Mar 30th, 2008 |
| Replies: 2 Views: 451 this is your error:
<? php
it must be:
<?php
ok? |
Forum: PHP Mar 27th, 2008 |
| Replies: 3 Views: 486 |
Forum: PHP Mar 27th, 2008 |
| Replies: 3 Views: 486 use tables or divs to properly arrange your data and insert your desired results on how you want them. |