ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

  แสดงกระทู้
หน้า: 1 ... 30 31 [32]
621  พัฒนาเว็บไซต์ / Programming / Re: php กับภาษาแปลกๆ เมื่อ: 10 กุมภาพันธ์ 2010, 10:45:13
ลองทำเป็น utf ยังครับ  Tongue

ทำยังไงหรอครับ wanwan006

ใน phpmyadmin เปลี่ยน Collation ของฟิลด์นั้นเป็น utf8_general_ci

แล้วตอนเชื่อมต่อฐานข้อมูลให้คิวรี่เป็น utf-8 ด้วย

หน้าเว็บที่ทำ form ก็ตั้ง header เป็น utf-8 เช่นกัน

 wanwan023
622  อื่นๆ / ค้าๆขายๆ ( ห้ามใช้ Affiliate Link ) / Re: ThaizHost.com แยก server web/database เพื่อความเสถียรกว่าใคร ในราคาเท่าเดิม!!!! เมื่อ: 08 กุมภาพันธ์ 2010, 22:06:14
ขอ junior_plan ที่นึงครับ

รายละเอียดส่งไปทางอีเมล์แล้วนะครับ
623  พัฒนาเว็บไซต์ / Programming / Re: while กับการแสดงผลหลายรายการ ทำไงครับ เมื่อ: 08 กุมภาพันธ์ 2010, 20:43:14
เท่าที่ผมเข้าใจนะครับ m_id =145,250,335,509,xxx,
เมื่อดึงค่านั้นมาต้องทำการแยกมันก่อน โดยใช้คำสั่ง explode
แล้วค่อยใช้ loop foreach เพื่ออ่านค่าทีละตัวแปร

ลองดูตาม code ด้านล่างนะครับ

ปล. code ไม่ได้ทดสอบ ถ้าผิดพลาดก็ขออภัยด้วยครับ

อ้างถึง
$sqluser="select * from tbuser_auther where user_id='".$_GET["user_id"]."' ";
$queryuser=mysql_query($sqluser);
$rs_picsub=mysql_fetch_array($queryuser);

$mid_array = explode(',',$rs_picsub["m_id"],-1);
foreach($mid_array as $mid)
{
   $sql_head_product2= "select * from tbmain where m_id=".$mid."";
   $query_head_product2=mysql_query($sql_head_product2);
   $rs_head_product2=mysql_fetch_array($query_head_product2);
   echo $rs_head_product2["m_id"];
}

array explode  ( string $delimiter  , string $string  [, int $limit  ] )

 wanwan023
624  พัฒนาเว็บไซต์ / Programming / Re: เปรียบเทียบ <?php echo ?> เมื่อ: 08 กุมภาพันธ์ 2010, 18:05:58
สำหรับผม <?=...?> ใช้สำหรับเขียนทดสอบสคริปต์คร่าวๆ เพราะว่าสั้นและง่าย ให้ผลเช่นเดียวกับ <?php echo... ?>

หลังจากสคริปต์เรียบร้อยเต็มรูปแบบที่ต้องการ ค่อยกลับมาแก้ไขให้เป็น <?php echo... ?> เพราะได้มาตรฐานครับ

แต่ทางที่ดีควรฝึกเขียน <?php echo... ?> ให้ชินมือไปเลยดีกว่าครับ ^^
 wanwan023
625  พัฒนาเว็บไซต์ / Programming / Re: ความเร็วระหว่าง INNER JOIN และ SELECT ทีละตาราง เมื่อ: 08 กุมภาพันธ์ 2010, 18:01:48
ขอถาม...

แล้ว select 2 ตาราง ต่างกับ inner join มั๊ยครับ

SELECT * FROM tableone to,tabletwo tw WHERE to.uid=tw.uid AND ... OR ....

ไม่ทราบว่าวิธีนี้จะ ok มั๊ยนะครับ แต่ผมใช้อยู่ประจำ

 wanwan023
626  พัฒนาเว็บไซต์ / Programming / Re: ขอปรึกษาการใช้งาน .htaccess กับร้านค้าครับ เมื่อ: 08 กุมภาพันธ์ 2010, 17:57:15
ขอบคุณครับ
ว่าแต่ $ มันคืออะไรหลัง html
RewriteRule ^([_a-zA-Z0-9-]+)-([_a-zA-Z0-9-]+).html$ product.php?pid=$2 [L]




^    ใช้แทนรูปแบบที่ขึ้นต้นด้วยคำที่กำหนดในตำแหน่งเริ่มต้นของข้อความ เช่น "^the" จะตรงกับข้อความใดๆ ที่ขึ้นต้นด้วย the
$    ใช้แทนรูปแบบที่ลงท้ายด้วยคำที่กำหนด เช่น "on the table$" จะตรงกับข้อความใดๆ ที่ลงท้ายด้วย on the table
.    ใช้แทนตัวอักษรใดๆ 1 ตัวอักษร ยกเว้น newline (\\n) เช่น "com." จะ ตรงกับ com1 และ coms แต่จะไม่ตรงกับ telecom (เพราะไม่มีตัวอักษรใดต่อท้าย)

http://www.thaiseoboard.com/index.php/topic,3675.0.html
627  พัฒนาเว็บไซต์ / Programming / Re: ใครพอช่วยผมเขียน .htaccess ให้ผมได้มั่งครับ เมื่อ: 08 กุมภาพันธ์ 2010, 17:48:16
RewriteRule ^ภาษาไทย/(.*)\.html$  bb.php?cc=$2

ไปกำหนดที่ link ด้วยนะครับ

<a href="ภาษาไทย/xxxxxx">xxxxxxx</a>

 wanwan023
628  พัฒนาเว็บไซต์ / Programming / Re: fecth array แล้วโชว์รูปภาพลงมาเปนแถวต่อกัน ทำไงคะให้สามารถแบ่งคอลัมน์แต่ละแถวได้ เมื่อ: 08 กุมภาพันธ์ 2010, 17:28:46
ก็..

ที่มันเรียงแบบในรูป ก็เพราะว่าในลูป while ของคุณใส่ <tr> เข้าไปด้วยครับ

ถ้าอยากจะให้มันเรียงติดกันเลย ก็เอา tr ไปไว้นอกลูปครับ

(ตรง br นั่นผมดูผิดครับ ปล่อยไก่ไปซะแล้วเรา wanwan017 wanwan017)

แต่มันก็ยังเป็นพื้นฐาน html อยู่ดีครับ (ยังคงฟอร์มต่อไป)


สรุปเอา <tr> ในลูป while ออก คำนวน html ดีๆ
ส่วนถ้าจะให้มันเรียงแค่ 3 รูป
ก็สร้างตัวแปร $i เก็บเลขครับ แล้วก็ให้มัน $i++ ในลูปของ while
แล้วก็เช็คว่าครบ 3 รูปรึยัง ถ้าครบก็ให้เขียน <tr> เพิ่มไปด้วย แล้วก็รีเซ็ต $i ใหม่..

เพิ่มเติมครับ

ถ้าจะให้เรียงแค่ 3 รูป แทนที่จะเซ็ต $i ใหม่

ลองใช้ if($i%3==0) { echo "</tr><tr>"; } ดูครับ

เผื่อว่าจะเอาตัวแปร $i ไปใช้แสดงลำดับด้วย

 wanwan023
629  ความรู้ทั่วไป / Adsense / วันนี้มันยังไง ได้เยอะผิดหูผิดตา??? เมื่อ: 09 กุมภาพันธ์ 2009, 22:57:09
งง ครับ ได้ราคาต่อคลิ๊กเยอะกว่าทุกวัน ปกติได้ไม่ถึง 0.2

พอเข้าเวปไปดู ก็มีโฆษณาใหม่ๆมาเยอะ

ถ้าได้เยอะแบบนี้ต่อไป สิ้นเดือนนี้ได้ลั๊นลาล่ะคร๊าฟ  Cheesy

630  ความรู้ทั่วไป / โดนแบน & จดหมายจาก Google / Google AdSense Account Disabled เมื่อ: 04 สิงหาคม 2007, 12:33:59
Hello K...,

It has come to our attention that invalid clicks and/or impressions
have been generated on the Google ads on your site(s). We have
therefore disabled your Google AdSense account. Please understand that
this was a necessary step to protect the interests of AdWords
advertisers.

As you may know, a publisher's site may not have invalid clicks or
impressions on any ad(s), including but not limited to clicks and/or
impressions generated by:

- a publisher on his own web pages
- a publisher encouraging others to click on his ads
- automated clicking or surfing programs, or any other deceptive
software
- a publisher altering any portion of the ad code or changing the
layout, behavior, targeting, or delivery of ads for any reason

These or any other such activities that violate Google AdSense Terms
and Conditions and program polices may have led us to disable your
account. The Terms and Conditions and program polices can be viewed at:

https://www.google.com/adsense/localized-terms?hl=en_US
https://www.google.com/adsense/policies?hl=en_US

If you have any questions about invalid activity or the action taken on
your account, please do not reply to this email. You can find more
information by visiting
https://www.google.com/adsense...ort/bin/answer.py?answer=57153 .

Sincerely,

The Google AdSense Team
-------------------------------------------------------------------------------
This message was sent from a notification-only email address that does
not accept incoming email. Please do not reply to this message.



ตอบกลับ Google ว่ายังไงดีครับ ใครก็ได้ช่วยหน่อย อดได้เช็คเลยรอบนี้  Lips Sealed
หน้า: 1 ... 30 31 [32]