PHP编码问题 [英] PHP coding Question

查看:49
本文介绍了PHP编码问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述






我确定PHP天才会知道这个。


我需要在页面上创建3个链接的下拉菜单。来自Mysql / PHP脚本的数据是来自



我在Javascript中看到很多这样的例子,但是我得到了

来自我的PHP脚本的数据通过MySQL。


有没有办法用PHP创建3个链接的下拉菜单???


谢谢。


John

解决方案

5月7日下午12:55,a ... @ unsu.com" < ame ... @ iwc.netwrote:





我肯定PHP天才会知道这个。


我需要在页面上创建3个链接的下拉菜单。来自Mysql / PHP脚本的数据是来自



我在Javascript中看到很多这样的例子,但是我得到了

来自我的PHP脚本的数据通过MySQL。


有没有办法用PHP创建3个链接的下拉菜单???


谢谢。


John



编号导航栏等下拉菜单必须完成

在客户端。传统上这是CSS(我喜欢这种方式)或JavaScript。 PHP将用于从MySQL中提取数据

并将其格式化为菜单。做谷歌搜索CSS

下拉或JavaScript下拉。


问候,


Steve


5月7日中午12点,ELINTPimp< smsi ... @ gmail.comwrote:


5月7日下午12:55,a ... @ unsu.com < ame ... @ iwc.netwrote:




I 我确信PHP天才会知道这个。


我需要在页面上创建3个链接的下拉菜单。来自Mysql / PHP脚本的数据是来自


我在Javascript中看到了很多这样的例子,但是我通过My​​SQL从PHP脚本中获取了

数据。


有没有办法用PHP创建3个链接的下拉菜单???


谢谢。


John



No.下拉菜单,对于像导航栏这样的东西,有要完成

在客户端。传统上这是CSS(我喜欢这种方式)或JavaScript。 PHP将用于从MySQL中提取数据

并将其格式化为菜单。做谷歌搜索CSS

下拉或JavaScript下拉。


问候,


Steve



好​​吧,我对这个信息有2个问题:


首先,我可以使用我的PHP脚本来获取数据吗?那么回声

一切,包括javascript?我认为这样可行。

其次,关于CSS,我不确定这是怎么回事,因为

数据来自数据库.... 。


感谢您的快速回复。


John


5月7日,下午1点04分,a ... @ unsu.com < ame ... @ iwc.netwrote:


5月7日中午12点,ELINTPimp< smsi ... @ gmail.comwrote:


5月7日下午12:55,a ... @ unsu.com < ame ... @ iwc.netwrote:




我确定PHP天才会知道这个。


我需要在页面上创建3个链接的下拉菜单。来自Mysql / PHP脚本的数据是来自


我在Javascript中看到很多这样的示例,但我得到的是

来自我的PHP脚本的数据通过MySQL。


有没有办法用PHP创建3个链接的下拉菜单???


谢谢。


John


编号下拉菜单,对于像导航栏这样的东西,必须在客户端完成

。传统上这是CSS(我喜欢这种方式)或JavaScript。 PHP将用于从MySQL中提取数据

并将其格式化为菜单。谷歌搜索CSS

下拉或JavaScript下拉。


问候,


Steve


好​​吧,我对这些信息有2个问题:


首先,我可以使用我的PHP脚本来获取数据,然后回显

一切,包括javascript?我认为这样可行。

其次,关于CSS,我不确定这是怎么回事,因为

数据来自数据库.... 。


感谢您的快速回复。


John



嗨约翰,


是的,这正是你用PHP做的事情(从db收集,

比''echo'')。


就CSS菜单而言,你可以进行谷歌搜索以获得更多信息/

教程...这里有几个:
http://sperling.com/examples/menuh/
http://www.cssplay.co.uk/menus/final_drop.html


问候,


史蒂夫



Hi,

I''m sure a PHP genius will know this one.

I need to create 3 linked drop down menus on the page. The data is
coming from Mysql / PHP script.

I see lots of examples with this in Javascript, but I am getting the
data from my PHP script via MySQL.

Is there a way to create 3 linked drop down menus using PHP???

Thank you.

John

解决方案

On May 7, 12:55 pm, "a...@unsu.com" <ame...@iwc.netwrote:

Hi,

I''m sure a PHP genius will know this one.

I need to create 3 linked drop down menus on the page. The data is
coming from Mysql / PHP script.

I see lots of examples with this in Javascript, but I am getting the
data from my PHP script via MySQL.

Is there a way to create 3 linked drop down menus using PHP???

Thank you.

John

No. Drop down menus, for things like navigation bars, have to be done
on the client side. Traditionally this is down with either CSS (I
prefer this way) or JavaScript. PHP will serve to extract the data
from MySQL and format it for the menus. Do a google search for CSS
drop down or JavaScript drop down.

Regards,

Steve


On May 7, 12:00 pm, ELINTPimp <smsi...@gmail.comwrote:

On May 7, 12:55 pm, "a...@unsu.com" <ame...@iwc.netwrote:

Hi,

I''m sure a PHP genius will know this one.

I need to create 3 linked drop down menus on the page. The data is
coming from Mysql / PHP script.

I see lots of examples with this in Javascript, but I am getting the
data from my PHP script via MySQL.

Is there a way to create 3 linked drop down menus using PHP???

Thank you.

John


No. Drop down menus, for things like navigation bars, have to be done
on the client side. Traditionally this is down with either CSS (I
prefer this way) or JavaScript. PHP will serve to extract the data
from MySQL and format it for the menus. Do a google search for CSS
drop down or JavaScript drop down.

Regards,

Steve

Well, I have 2 question with that information:

First, can I use my PHP script to get the data, and then echo
everything, including the javascript? I think that would work.
Second, regarding CSS, I''m not sure how that would work, since the
data is coming from the database.....

Thanks for your quick reply.

John


On May 7, 1:04 pm, "a...@unsu.com" <ame...@iwc.netwrote:

On May 7, 12:00 pm, ELINTPimp <smsi...@gmail.comwrote:

On May 7, 12:55 pm, "a...@unsu.com" <ame...@iwc.netwrote:

Hi,

I''m sure a PHP genius will know this one.

I need to create 3 linked drop down menus on the page. The data is
coming from Mysql / PHP script.

I see lots of examples with this in Javascript, but I am getting the
data from my PHP script via MySQL.

Is there a way to create 3 linked drop down menus using PHP???

Thank you.

John

No. Drop down menus, for things like navigation bars, have to be done
on the client side. Traditionally this is down with either CSS (I
prefer this way) or JavaScript. PHP will serve to extract the data
from MySQL and format it for the menus. Do a google search for CSS
drop down or JavaScript drop down.

Regards,

Steve


Well, I have 2 question with that information:

First, can I use my PHP script to get the data, and then echo
everything, including the javascript? I think that would work.
Second, regarding CSS, I''m not sure how that would work, since the
data is coming from the database.....

Thanks for your quick reply.

John

Hi John,

Yes, that is exactly what you would do with the PHP (gather from db,
than ''echo'').

As far as a CSS menu, you can do a google search to get more info/
tutorials...here is a few:
http://sperling.com/examples/menuh/
http://www.cssplay.co.uk/menus/final_drop.html

Regards,

Steve


这篇关于PHP编码问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆