Re: [PHP-DB] screen resolution!

2006-02-05 Thread PHP Superman
Or you can have a page which detects resolution by javascript and redirects
to another PHP page with the resolution data

On 2/4/06, Bastien Koert <[EMAIL PROTECTED]> wrote:
>
>
> As the other poster mentioned you need JS to detect the screen
> widththe
> usual approach is to use js to detect the screen res and the include the
> appropriate CSS file to match the screen res.
>
> Bastien
>
>
> >From: JeRRy <[EMAIL PROTECTED]>
> >To: php-db@lists.php.net
> >Subject: [PHP-DB] screen resolution!
> >Date: Sun, 5 Feb 2006 02:44:19 +1100 (EST)
> >
> >Hi,
> >
> >   I have written a website in PHP using MYSQL.  But I have come accross
> an
> >un-common problem.  Normally when I create a website it's done on a
> desktop
> >PC.  But this time for the first time I did it on laptop meaning the
> screen
> >resolution is different.
> >
> >   Is there any sort of script/code I can use to create another section
> of
> >my site in a desired screen resolution without me having to do it all
> >manually?
> >
> >   I know of many scripts online that I can DETERMINE visitors screen
> >resolutions and recommend the correct one but don't know one that will
> >adjust the website to suit that visitors screen resolution.  Am aware of
> >scripts that redirect to another web page but that requires you to write
> >the website again to cater for that.
> >
> >   Is there a quicker way/solution?
> >
> >   Thanks!
> >
> >   J
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!


Re: [PHP-DB] Getting PHP 5 w/mysqli to communicate with MySQL 5

2006-01-22 Thread PHP Superman
did you turn on display_errors and set error reporting to E_ALL in php.ini?
if not you should

On 1/20/06, Allen Schultz <[EMAIL PROTECTED]> wrote:
>
> Sorry, I was in a rush to work guys.
>
> All these were downloaded pre-compliled for Win32.
> Apache 2.0.55
> PHP 5.1.1 w/php_mysqli.dll (improved mysql)
> MySQL 5.0.18
>
> This script:
>
> 
>  $link = mysqli_connect('localhost','root','xx');
> if (mysqli_connect_errno()) {
> echo "error";
> exit();
> } else { echo "no error"; }
> ?>
> 
>
> turns into this:
>
> 
> no error
> 
>
> And this script:
>
> 
>  $link = mysqli_connect('localhost','root','xx');
> if (mysqli_connect_errno()) {
> echo "error";
> exit();
> }
> if (!mysqli_select_db($link,"pers")) {
> echo "pers not found"; }
> else {
> if ($result = mysqli_multi_query($link, "select helloworld();")) {
>$row = mysqli_fetch_array($result, MYSQLI_NUM);
>echo $row[0];
> } else { echo "problem :("; }
> }
> ?>
> 
>
> turns to this:
>
> 
> 
>
> In summary again, It seems to want to connect to the database, but
> doesnt see anything after connecting using mysqli functions. That
> helloworld() function in the database exists.
> I'm following this page for a tutorial to find out why I cant use the
> database:
>
> http://mysql.gilfster.com/page.php?parent_id=4&page_id=4.0.2
>
> On 1/19/06, Julien Bonastre <[EMAIL PROTECTED]> wrote:
> > If you only compiled php with the mysqli libraries then you need to use
> > them
> >
> > What exactly are you have troubles with? A code snippet or version
> > examples would be good. Also is your database mysql5 engine I take it?
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!


Re: [PHP-DB] Scrolling News

2005-12-22 Thread PHP Superman
Hi,
just to tell you scrolling text boxes are javascript, PHP is server side not
client side, PHP can only get the data from the table and javascript will
display it



On 12/22/05, Alex Major <[EMAIL PROTECTED]> wrote:
>
> Hi there.
> I'm trying to make a scrolling news box for my website. Basically I would
> like this news box to get information from a column in my database called
> 'news_title' and display it in a scrolling news box.
> The reason I'd like it to do this is because there is already a news page
> on
> my website, which stores 'news_date' ,  'news_poster' ,  'news_title' ,
> 'news_description' , 'news_content' in a table on my database. I'd just
> like
> to increase the functionality of this by having this news box on my front
> page, which scrolls the 'news_title'.
>
> Any suggestions for how to go about doing this? I'm still very new to php.
>
> Regards,
> Alex.
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!