Jump to content

ehsanshekari

Members
  • Posts

    9
  • Joined

  • Last visited

ehsanshekari's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. thanks. there was a lot of good practical examples in http://www.dynamicdrive.com/I used 2 of them and they work well.(not limit for sub menus.)
  2. Hi.I want to create a multi level horizontal menu for categories in a supermarket from an unordered list.I serach the web i found lots of example. I tried some of them and none of them worked. I need a little javascript. I need an example that works.does anybody know where I can find a functional example(sth that really works)?
  3. now it works i had written the page a long time age. i had not saved the page it self in utf8.
  4. Helloi want to make a database and insert data to tables in my own language (Farsi or persian). I try the code below for creating database and my table. mysql_query("CREATE DATABASE homework",$con)mysql_select_db("homework", $con);mysql_query("SET CHARACTER SET 'utf8'",$con);$sql = "CREATE TABLE customer ( customer_name char(30) not null , customer_street char(30) not null, customer_city char(30) not null, primary key(customer_name) )CHARACTER SET utf8 COLLATE utf8_general_ci"; and the code below for inserting mysql_select_db("homework", $con);mysql_query("SET CHARACTER SET 'utf8'",$con);$sql="insert into Customer values('$_POST[customer_name]','$_POST[customer_street]','$_POST[customer_city]')";mysql_query($sql,$con)) what's wrong with it? it insert ? character instead of the characters I type. it only shows on character right!
  5. hi.i have some problems with embedding multimedia in my web page. i have windows media player 11 as my default player.I also have jetAudio,winamp,realplayer and quicktime.the line below works well in internet explorer 6 but when i try it in firefox 1.5,Opera 9 and netscape 8 the browser prompts that a plugin is needed to play the file.why they can't use windows media player to play the file.Can i fix the problem or i have to download the plugin? <embed src="Multimedia/sth.avi" type="video/x-msvideo" width="200" height="150"> ---------------------------------------------------------------------------------------------------------------------------------------------------the line below doesn't show anything in firefox 1.5, Opera 9 and netscape 8 and when i try it in IE it opens the windows media player instead of showing the file in the browser. <object data="Multimedia/sth.avi" type="video/x-msvideo"></object> --------------------------------------------------------------------------------------------------------------------------------------------------- <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"><param name="FileName" value="sth.avi" /></object> works well in IE but it has no effect on firefox 1.5, Opera 9 and netscape 8.i tried other file extensions but they have the same problem as well.do i have to download the plugins for each browser or there is another way to make the things all right?what do i need to play flv files in the browser?Can i embedd them using the code i have written above or they need some code like flash or real?thanks.
  6. when i add the doctype to my html page xhtml1 transitional i can't create a table with 100% height. i know that in this dtd table tag doesn't have height attribute.how can i create a table with 100% height in this dtd? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" dir="rtl"><head><title>Test</title></head><body><table align="center" height="100%" width="100%" border="2"><tr><td><br /></td></body></html>
  7. in SQL Server 2005 we can write:foreign key (col_name) references (table_name) on delete cascade on update cascadewhen I try this in MYSql it doesn't create the table.does MYSQL have something similar to it or not?
×
×
  • Create New...