Webhosting in Pakistan
Page 1 of 2 12 LastLast
Results 1 to 12 of 13

Thread: Any body can teach me PHP and Sql

  1. #1
    shaw4000 is offline Senior Member+
    Last Online
    13th December 2017 @ 04:49 PM
    Join Date
    01 Jul 2008
    Posts
    126
    Threads
    15
    Credits
    0
    Thanked
    0

    Default Any body can teach me PHP and Sql

    Webhosting in Pakistan
    Hello every body any body can tell me how to learn PHP and sql

  2. #2
    sanishan is offline Senior Member+
    Last Online
    29th March 2018 @ 09:03 AM
    Join Date
    28 Dec 2007
    Age
    32
    Posts
    118
    Threads
    26
    Credits
    24
    Thanked
    4

    Default

    MAY HAZIR HON APP KI HELP KAY LYEH KASI HELP CHAHIYAH?

    pAHLAY TO APP YEH SAMJHAY KAY HAM KISI TAG KO USE KARTIAN HAIN TO USAY KASAY CLOSE KARTIAN HAIN JASAY

    Code:
    OPEN                                     CLOSE
    <?	                                  ?>
    <?php	                                ?>
    <%	                                 %>
    <script language="php">	</script>
    1. <? AND ?> YEH SHORT TAGE HAIN JO KAY. INHAIN KAM USE KIA JAY KUCH SERVER PER YEH TANG KARTI HAIN SHORT TAG SIRF IS WAQAT CHALTI HAIN JAB short_open_tag TAG on HON.

    2. <?PHP AND ?> MAY NAY APNI TAMAM SITE PER YEH TAG USE KARI HAIN KOI KAY TAMAM PHP SERVER ISAY SUPPORT KARTIA HIAN.

    VARIABLE

    3. VARIABLE DOLLER($) SIGN KAY SATH HOTI HAIN. VARIABLE case-sensitive HOTI HAIN. jasay $yourver. $YourVer Mukhtalif hay $yourver say.
    variable sirf letter yah underscore (_) say shuro hoti hain.

    4. PHP supports eight primitive types.

    boolean : sirf True or false ko parhta hay
    integer : Number ko jasay (-5, 0, 123, 555, ...)
    float : floating-point number or 'double' (0.9283838, 23.0, ...)
    string : "Hello World", 'PHP and MySQL, etc

    Two Compond type

    array
    object

    Two special Type:

    resource ( one example is the return value of mysql_connect() function)
    NULL


    In PHP an array can have numeric key, associative key or both. Aray ki value kuch bhi ho saktay hay. is ko banany kay leyh app ko array() use kana hot ahay jasay.
    PHP Code:
    <?php
    $numbers 
    = array(123456);
    $age = array("mom" => 45"pop" => 50"bro" => 25); 
    $mixed = array("hello" => "World"=> "It's two"

    echo 
    "numbers[4] = {$numbers[4]} <br>";
    echo 
    "My mom's age is {$age['mom']} <br>";
    echo 
    "mixed['hello'] = {$mixed['hello']} <br>";
    echo 
    "mixed[2] = {$mixed[2'}";
    ?>
    Print Out
    Code:
    numbers[4] = 5 
    My mom's age is 45 
    mixed['hello'] = World 
    mixed[2] = It's two

    Abb isay Samjh kay orr apni kuch tabdili kar kay yeh phir kuch nia code bana kay mujahay check karaoo or agla lesson lay lo
    ok allah hafiz
    آئی ٹی کی نئی انفارمیشن کے لئے
    https://www.youtube.com/channel/UCko...IpC9fl2qiz4PbA

  3. #3
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    33
    Gender
    Male
    Posts
    1,608
    Threads
    51
    Credits
    970
    Thanked
    9

    Default

    @SaniShah Sir, Cool zabardast...
    Kamal kar dia aap ny.
    Death is not the biggest Loss in life.
    The biggest loss is when relationships die among us when we are alive!!
    (Shakespeare)

  4. #4
    Join Date
    17 Aug 2007
    Location
    Charsadda, Pakistan
    Age
    33
    Gender
    Male
    Posts
    1,608
    Threads
    51
    Credits
    970
    Thanked
    9

    Default

    Sir can you tell how to connect to mysql?
    mysql_connect('host', 'user', 'pw');
    its not working for me

  5. #5
    sanishan is offline Senior Member+
    Last Online
    29th March 2018 @ 09:03 AM
    Join Date
    28 Dec 2007
    Age
    32
    Posts
    118
    Threads
    26
    Credits
    24
    Thanked
    4

    Default

    Asalam o alikum

    Kia App mujhay bata saktain hain kay app nay koi MYSQL Install kia hay or Proper COnfig bhi kia hay agar anhi to aik asan hal hay sub say pahlay app
    Yah App Koi Hosting Use kar rahay hoo ????

    Windows kyalyeh Server Download Karnaiy kay leyah
    XAmpp Server Download Karian
    Download Link

    http://nchc.dl.sourceforge.net/sourc...-installer.exe

    yah intahi Asani say Har Cheez ki Configuration kar data hay
    Agar app kay Internet ki speed achi hay jasay 256kb ya kum to yeh link check karian app ko download ka tarika Video ki surat may mill jay ga

    http://www.youtube.com/watch?v=NAbt2...eature=related


    is kay baat apnay htdocs kay folder main ain file banain database.php is may yeh code dailain

    aik cheez yaad rakhna kay $dbhost, $dbuser, $dbpass, orr $dbname ko yaad say apni zaroorat kay mutabi tabdil kar lina

    PHP Code:
    <?php
    $dbhost 
    'localhost';  //Mysql host name
    $dbuser 'root';        // mysql user name
    $dbpass 'password'/// mysql password

    $conn mysql_connect($dbhost$dbuser$dbpass) or die                      ('Error connecting to mysql');

    $dbname 'petstore';  //mysql password
    mysql_select_db($dbname);
    ?>
    agar phir bhi connect na ho to mujhay say poch laina may ata rahon ga... allah hafiz

  6. #6
    shariqanis's Avatar
    shariqanis is offline Junior Member
    Last Online
    4th March 2015 @ 06:26 PM
    Join Date
    15 Dec 2007
    Age
    58
    Posts
    14
    Threads
    6
    Credits
    0
    Thanked
    0

    Default Next lesson

    Quote sanishan said: View Post
    MAY HAZIR HON APP KI HELP KAY LYEH KASI HELP CHAHIYAH?

    pAHLAY TO APP YEH SAMJHAY KAY HAM KISI TAG KO USE KARTIAN HAIN TO USAY KASAY CLOSE KARTIAN HAIN JASAY

    Code:
    OPEN                                     CLOSE
    <?	                                  ?>
    <?php	                                ?>
    <%	                                 %>
    <script language="php">	</script>
    1. <? AND ?> YEH SHORT TAGE HAIN JO KAY. INHAIN KAM USE KIA JAY KUCH SERVER PER YEH TANG KARTI HAIN SHORT TAG SIRF IS WAQAT CHALTI HAIN JAB short_open_tag TAG on HON.

    2. <?PHP AND ?> MAY NAY APNI TAMAM SITE PER YEH TAG USE KARI HAIN KOI KAY TAMAM PHP SERVER ISAY SUPPORT KARTIA HIAN.

    VARIABLE

    3. VARIABLE DOLLER($) SIGN KAY SATH HOTI HAIN. VARIABLE case-sensitive HOTI HAIN. jasay $yourver. $YourVer Mukhtalif hay $yourver say.
    variable sirf letter yah underscore (_) say shuro hoti hain.

    4. PHP supports eight primitive types.

    boolean : sirf True or false ko parhta hay
    integer : Number ko jasay (-5, 0, 123, 555, ...)
    float : floating-point number or 'double' (0.9283838, 23.0, ...)
    string : "Hello World", 'PHP and MySQL, etc

    Two Compond type

    array
    object

    Two special Type:

    resource ( one example is the return value of mysql_connect() function)
    NULL


    In PHP an array can have numeric key, associative key or both. Aray ki value kuch bhi ho saktay hay. is ko banany kay leyh app ko array() use kana hot ahay jasay.
    PHP Code:
    <?php
    $numbers 
    = array(123456);
    $age = array("mom" => 45"pop" => 50"bro" => 25); 
    $mixed = array("hello" => "World"=> "It's two"

    echo 
    "numbers[4] = {$numbers[4]} <br>";
    echo 
    "My mom's age is {$age['mom']} <br>";
    echo 
    "mixed['hello'] = {$mixed['hello']} <br>";
    echo 
    "mixed[2] = {$mixed[2'}";
    ?>
    Print Out
    Code:
    numbers[4] = 5 
    My mom's age is 45 
    mixed['hello'] = World 
    mixed[2] = It's two

    Abb isay Samjh kay orr apni kuch tabdili kar kay yeh phir kuch nia code bana kay mujahay check karaoo or agla lesson lay lo
    ok allah hafiz



    Agla lesson bhi bata dain

  7. #7
    Join Date
    30 Jul 2008
    Age
    32
    Posts
    13
    Threads
    3
    Credits
    722
    Thanked
    0

    Default

    wwwooooowwoooo very class about php

  8. #8
    shariqanis's Avatar
    shariqanis is offline Junior Member
    Last Online
    4th March 2015 @ 06:26 PM
    Join Date
    15 Dec 2007
    Age
    58
    Posts
    14
    Threads
    6
    Credits
    0
    Thanked
    0

    Default Database

    Quote sanishan said: View Post
    Asalam o alikum

    Kia App mujhay bata saktain hain kay app nay koi MYSQL Install kia hay or Proper COnfig bhi kia hay agar anhi to aik asan hal hay sub say pahlay app
    Yah App Koi Hosting Use kar rahay hoo ????

    Windows kyalyeh Server Download Karnaiy kay leyah
    XAmpp Server Download Karian
    Download Link

    http://nchc.dl.sourceforge.net/sourc...-installer.exe

    yah intahi Asani say Har Cheez ki Configuration kar data hay
    Agar app kay Internet ki speed achi hay jasay 256kb ya kum to yeh link check karian app ko download ka tarika Video ki surat may mill jay ga

    http://www.youtube.com/watch?v=NAbt2...eature=related


    is kay baat apnay htdocs kay folder main ain file banain database.php is may yeh code dailain

    aik cheez yaad rakhna kay $dbhost, $dbuser, $dbpass, orr $dbname ko yaad say apni zaroorat kay mutabi tabdil kar lina

    PHP Code:
    <?php
    $dbhost 
    'localhost';  //Mysql host name
    $dbuser 'root';        // mysql user name
    $dbpass 'password'/// mysql password

    $conn mysql_connect($dbhost$dbuser$dbpass) or die                      ('Error connecting to mysql');

    $dbname 'petstore';  //mysql password
    mysql_select_db($dbname);
    ?>
    agar phir bhi connect na ho to mujhay say poch laina may ata rahon ga... allah hafiz





    Mera masla zara tafseel say hay,
    May ney ek web site design ki hay may chahta hoon k us may apnaey tamam client ka personal data bhi load kar doon wo may ne ms excel may banaya hay aab mujhay myspql ka sahara kis tarha laina ho ga ya phir aap he koi advice karain k aab kia aur kaisay load karoon aur jab bhi mera client apn id aur password input karay to us ki file samnay aee


    shukria

  9. #9
    naqshbandios_limra's Avatar
    naqshbandios_limra is offline Advance Member
    Last Online
    29th June 2018 @ 10:51 PM
    Join Date
    28 Aug 2008
    Age
    34
    Gender
    Male
    Posts
    4,267
    Threads
    499
    Credits
    844
    Thanked
    626

    Default

    Good work Sani brother
    keep it up
    Khanqah Daruslam

  10. #10
    sahil_n14 is offline Member
    Last Online
    18th November 2013 @ 04:40 PM
    Join Date
    12 Aug 2008
    Location
    RIYADH
    Age
    31
    Posts
    405
    Threads
    55
    Thanked
    19

    Default

    sanishan bro i want ur help plzz contact my id
    sahil_romantic143***********

  11. #11
    ITKING's Avatar
    ITKING is offline Senior Member+
    Last Online
    27th January 2012 @ 09:10 PM
    Join Date
    12 Sep 2006
    Location
    Riyadh, KSA
    Posts
    3,564
    Threads
    94
    Credits
    734
    Thanked
    142

    Default

    Kaho to Laut jate hain ......

  12. #12
    janankaka is offline Junior Member
    Last Online
    10th June 2009 @ 02:35 PM
    Join Date
    20 Dec 2008
    Age
    39
    Posts
    6
    Threads
    1
    Credits
    0
    Thanked
    0

    Default

    Webhosting in Pakistan
    thankyou so muh for sharing

Page 1 of 2 12 LastLast

Similar Threads

  1. Teach 3D Max
    By engrkaram in forum Ask an Expert
    Replies: 4
    Last Post: 8th April 2014, 08:34 PM
  2. can anyone teach me
    By saad_4rmpk in forum Ask an Expert
    Replies: 3
    Last Post: 27th July 2009, 09:24 PM
  3. plz teach
    By jaboo in forum Ask an Expert
    Replies: 1
    Last Post: 28th June 2007, 10:19 AM
  4. please teach me
    By qszrud in forum Ask an Expert
    Replies: 3
    Last Post: 2nd December 2006, 02:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •