Your problem is this line:
$q = "SELECT 'professional','private', 'contact' FROM users WHERE 'sub_domain' = '$prac_dir';
you can not use quotes to define each field name. It needs to be this:...
Type: Posts; User: NXArmada; Keyword(s):
Your problem is this line:
$q = "SELECT 'professional','private', 'contact' FROM users WHERE 'sub_domain' = '$prac_dir';
you can not use quotes to define each field name. It needs to be this:...
Check this out from the MySQL site http://dev.mysql.com/doc/refman/5.1/en/alter-table.html
Heres the solution REPLACE(`sales`,",","") . Turns out the Commas in the number where causing the problem so I used REPLACE to remove the comma then SUM the un-comma number...
Dang have not been here in a year and the MySQL section is dead. Not one new post lets change that today.
Okay I am trying to get a sum of numbers in one column but instead I am getting this.
...
http://www.php-mysql-tutorial.com/
Check this website out: http://www.php-mysql-tutorial.com/
This will assume your using or going to be using PHP+MySQL.
Quick search on google: http://httpd.apache.org/docs/2.0/howto/htaccess.html
check out Textpattern U can use raw PHP with it and all through the admin interface.
I run 3 sites with Textpattern. One is a Blog, Another is an Ecommerce site, and the last one is a newspaper...
Your not telling it to do anything.
Look here on how to email with PHP http://us.php.net/mail
what is
$pfile mapping too??
i had a sim problem and this worked for me:
fopen($myFile, 'a+r+w+x+')
can you give us a link to the page where you have ur code so we can see it.
try this:
ALTER TABLE `product_table` ADD `status` ENUM( 'Y', 'N' ) AFTER `warranty`;
Is the file chmod writeable 777
Here is a simple script you can use. Provided for learning purposes. Place each <a> links on there own lines in the text file. I am sure there's better ways of doing.
<?php
$adfile =...
Adobe Fireworks
http://www.haskell.org/
try this
<?php
echo "<tr>";
$qry="select * from special_offers order by offer_id";
$result = mysql_query($qry);
if(mysql_num_rows($result)>0)
{
can you post your php code?
First I suggest you check out the PHP website http://www.php.net
second look here: http://www.onlamp.com/pub/a/php/2001/07/26/encrypt.html
Okay i got my last question answered my self. so here is what my final code looks like. Provided for learning purpose.
<?php
$int_y_pos = 3600;
$int_y_step_small = 100;
$str_value =...
Okay Daniel the code you provided:
$str = explode('|',$str);
for ($i=0;$i<count($str);$i++) {
echo $str[$i]."\n";
}
if i do .= i get this
Warning: implode() [function.implode]: Bad arguments.
yeah that what i did when you first suggest += and the error is still the same
Fatal error: Unsupported operand types
Daniel I did what you suggested and no change.