Re: [PHP-DB] Placing a form on a page

2013-05-06 Thread Gu®u
Hi,
Check if you have created a class in which you have already mentioned the
font size. If that so look it and change it inside the class. Also, check
if you have created or mentioned the font size in CSS. I hope this will
help you.


On Mon, May 6, 2013 at 6:30 PM, Jim Giner wrote:

> Centering a form is a simple process - as you stated about your first
> example form.  So - obviously the problem is in all that other crap you
> presented to us, expecting us to do your debugging.  I still don't know
> what you want to do - perhaps you could have given us a para on what it is
> wrong.  Are you trying to center multiple forms, or just align multiple
> forms in some fashion?
>
> Once again - learn some new stuff and develop code that is easier to read
> and perhaps you'll find more of your own errors.  IE - read about
> "heredocs".  (That IS php!)
>
> (You might also want to read about security and protecting yourself from
> malicious input values.)
>
> Hope I didn't offend you again, but this post was just more of the same
> old "Ethan Phd" stuff.
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
*Best,
*
*Gu®u
CEO & Founder at,
www.myshopads.com
*


[PHP-DB] Excel to HTML table using PHP

2012-03-21 Thread Gu®u
Hi All,

I have searched all around the net and unable to find excel to html table
using php. What I want is, say I have an excel sheet and I want to export
the excel data to HTML table *without* *opening it*. Then I can use the
HTML table for later function. Please help me with this.

-- 
*Best,
*
*Gu®u*


Re: [PHP-DB] Re: confirm subscribe to php-db@lists.php.net

2012-03-17 Thread Gu®u
: from rcdn-core-3.cisco.com ([173.37.93.154])
>>   by rcdn-iport-7.cisco.com with ESMTP; 17 Mar 2012 08:26:10 +
>> Received: from rcdn-webmail-9.cisco.com 
>> (rcdn-webmail-9.cisco.com[173.37.180.115])
>>by rcdn-core-3.cisco.com (8.14.3/8.14.3) with ESMTP id
>> q2H8QA00014360
>>for>;
>> Sat, 17 Mar 2012 08:26:10 GMT
>> Received: from rcdn-webmail-9.cisco.com (localhost.localdomain
>> [127.0.0.1])
>>    by rcdn-webmail-9.cisco.com (8.13.8/8.13.8) with ESMTP id
>> q2H8QATx023331
>>for>;
>> Sat, 17 Mar 2012 08:26:10 GMT
>> Received: from my.linux (rcdn-webmail-9.cisco.com [173.37.180.115])
>> by rcdn-webmail-9.cisco.com (Scalix SMTP Relay 11.4.6.13676)
>> via ESMTP; Sat, 17 Mar 2012 08:26:09 + (UTC)
>> Date: Sat, 17 Mar 2012 16:25:11 +0800
>> From: nathhuan
>> To: php-db-subscr...@lists.php.net
>> Message-ID:<4F644A67.6080004@**cisco.com <4f644a67.6080...@cisco.com>>
>> Subject: subscribe
>> x-scalix-Hops: 1
>> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216
>> Thunderbird/10.0.1
>> MIME-Version: 1.0
>> Content-Type: text/plain;
>>charset="US-ASCII";
>>format="flowed"
>>
>>
>>
>>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
*Best,
*
*Gu®u*


Re: [PHP-DB] Help with If else if

2012-03-13 Thread Gu®u
I tried the below code too considering may be the localhost is really dumb
and we need to tell each and every condition. But still its not working  :(


$tweet = $search->plugin->ListViewValue();
 $fb = $search->facebook->ListViewValue();


 if($tweet=="" && $fb=="")
 {

echo "";

 }
 elseif($fb=="" && $tweet!="")
 {

 echo '';


 }

 elseif($tweet=="" && $fb!="")
 {


 echo '';

 }

 elseif($fb!="" && $tweet!="")
 {


echo ''.'';

 }



On Tue, Mar 13, 2012 at 9:44 PM, Matijn Woudt  wrote:

> On Tue, Mar 13, 2012 at 4:53 PM, Gu®u  wrote:
> > No Michael, your code is also not working. What you have understood is
> > correct. let me explain it to others too.
> >
> > If variable twitter and facebook are empty don't echo anything,
> >
> > if variable twitter has a value and facebook is empty echo out only
> twitter,
> >
> > if variable twitter has no value and facebook has a value echo out
> facebook
> > only,
> >
> > and finally if both has values echo out both.
> >
> > Basically I want to echo out only if there is some value in the database.
> > But in my case both the images are echoing out.
> >
>
> That's exactly what my code does too, except it's a bit simpler. If
> mine isn't working too, then your input is probably different, try a
> var_dump on the ListViewValue() items.
>
> - Matijn
>



-- 
*Best,
*
*Gu®u*


Re: [PHP-DB] Help with If else if

2012-03-13 Thread Gu®u
No Michael, your code is also not working. What you have understood is
correct. let me explain it to others too.

If variable twitter and facebook are empty don't echo anything,

if variable twitter has a value and facebook is empty echo out only twitter,

if variable twitter has no value and facebook has a value echo out facebook
only,

and finally if both has values echo out both.

Basically I want to echo out only if there is some value in the database.
But in my case both the images are echoing out.




On Tue, Mar 13, 2012 at 8:54 PM, Michael Stowe  wrote:

> From looking at your code, the issue is that your if statements are
> checking for the same criteria as your else statements, meaning that if the
> string is empty ("") the if statements will be triggered, and since the if
> statements are true, the elseif statement will not be.  Or if the string
> isn't empty, neither the if or the elseif statements will be triggered,
> causing the else statement to be activated.  Either way, the images would
> be printed out. *
> *
> *
> *
> *Did you mean to do this?*
>
>  if($search->plugin->ListViewValue() == "" &&
> $search->facebook->ListViewValue() == "") {
> // Neither one has a value
> } elseif ($search->plugin->ListViewValue() != "" &&
> $search->facebook->ListViewValue() != "") {
> // Both have a Value
> echo ' src="images/twitter.gif" width="22" height="23"/>' . ' href="' . $search->facebook->ListViewValue() . '"> src="images/facebook.gif" width="22" height="23"/>';
> } elseif ($search->plugin->ListViewValue() != "") {
> // Twitter has a value
> echo ' src="images/twitter.gif" width="22" height="23"/>';
> } else {
> // Facebook has a value (only possible option left)
> echo ' src="images/facebook.gif" width="22" height="23"/>';
> }
> ?>
>
>
>
> Hope that helps,
> Mike
>
>
>
> On Tue, Mar 13, 2012 at 9:44 AM, Matijn Woudt  wrote:
>
>> On Tue, Mar 13, 2012 at 3:06 PM, Gu®u  wrote:
>> > The issue is both the images are echoing and no if else statement is
>> > working.
>> >
>>
>> First of all, please bottom post on this (and probably any) mailing list.
>>
>> You should perhaps provide what the contents of
>> $search->plugin->ListViewValue()=="" and
>> $search->facebook->ListViewValue()=="" is.
>> Though, if I understood you correctly, it would be as simple as:
>> $facebookEnabled = $search->facebook->ListViewValue()!="";
>> $twitterEnabled = $search->plugin->ListViewValue()!="";
>> if($facebookEnabled)
>>  {
>>
>>  echo '> src="images/facebook.gif" width="22" height="23"/>';
>> }
>>  if($twitterEnabled)
>>  {
>>
>> echo '> src="images/twitter.gif" width="22" height="23"/>';
>> }
>>
>> - Matijn
>>
>> --
>> PHP Database Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
> --
> ---
>
> "My command is this: Love each other as I
> have loved you." John 15:12
>
> ---
>



-- 
*Best,
*
*Gu®u*


Re: [PHP-DB] Help with If else if

2012-03-13 Thread Gu®u
The issue is both the images are echoing and no if else statement is
working.

On Tue, Mar 13, 2012 at 7:22 PM, Matijn Woudt  wrote:

> On Tue, Mar 13, 2012 at 1:03 PM, Gu®u  wrote:
> > Hi,
> >
> > Please help me with this code. I have 2 different fields in mysql table.
> > What I want is if the field is empty don't show the image. Please look at
> > the code below.
>
> I have looked at it.
>
> Maybe you should tell what is wrong, what it outputs currently, and
> what it should output. Or perhaps, which errors you get if any?
>
> - Matijn
>



-- 
*Best,
*
*Gu®u*


[PHP-DB] Help with If else if

2012-03-13 Thread Gu®u
Hi,

Please help me with this code. I have 2 different fields in mysql table.
What I want is if the field is empty don't show the image. Please look at
the code below.


plugin->ListViewValue()=="")
  {

   echo '';
  }
  if($search->facebook->ListViewValue()=="")
  {

  echo '';
  }


  else if($search->plugin->ListViewValue()=="" &&
$search->facebook->ListViewValue()=="")
{

echo "";
}

else
  {

  echo ''.'';

  }


  ?>


-- 
*Best,
*
*Gu®u*