Webhosting in Pakistan
Results 1 to 6 of 6

Thread: PHP and MySQLi Class 2

  1. #1
    ali_num13 is offline Senior Member+
    Last Online
    9th August 2016 @ 06:28 PM
    Join Date
    29 Dec 2012
    Gender
    Male
    Posts
    199
    Threads
    102
    Credits
    1,008
    Thanked
    8

    Lightbulb PHP and MySQLi Class 2

    Webhosting in Pakistan
    Assalam o aliekum dosto. ye PHP ka dusra lecture hy or umeed hy ap sab ko pasand aye ga. Start hamesha basics say kia jata hy to sb say pehly ye dekhty hain k hum agar user ki screen per kuch output karwana chahty hain to wo kesay kia jaa sakta hy..
    es k lye hum PHP ki echo k name say statement ko istemal karty hain. echo ki statement ksi bhi text to user ki statement k browser may show karwati hy.
    <?php
    echo "This is some text.";
    ?>

    es trah likhny say ye double quotes k ander likha hua text user kis screen per show ho jye ga. es video may dekhein k kesay..


    echo use karty huye hum agar kuch bhi output yani k user ki screen per show karwana chah rahy hain to double quotes lgaty hain. bilkul jis trah html may opening/closing tags hoty hain usi trah ksi text ko show karwany k lye hi humy PHP ko ye btana parta hy k text kahn say start or end ho rha hy to pehli double quote starting hy or dusri quote ending. ye wo boundry hy jisay PHP ki echo ki statement user ki screen per show karwa de ge.
    Semicolon( ; ): semi colon bht c programming languages may use hota hy. har programming language may ksi code ki ek line end karny ya line k end hony ki humy kuch na kuch indication deni parti hy. to php may semi colon k zarye hum php ko ye btaty hain k yahn pe ek line end ho rahi hy. pehly es say pehly wala code process karay wo pehli line hy phr next chalay.

    Ab hum variables per atay hain
    Variables: ksi bhi information ko store karny k lye containers hoty hain. hum beshak ksi bhi cheese ko, jesay wo koi number ho 1 2 ya 3 usay kahin bhi use kar sakty hain mgar variables humy bht c sahoolyat dete hain. Hum sb say pehly equal ka sign use kar k ksi variable may koi value store karwa dete hain phr agay usay use kar lete hain.
    har programming language may variables bnany ka tariqa apna different hy, PHP may hum ek doller sign lgaty hain phr space diye bghair variable ka name likh dete hain
    $name;
    yahn pe variable ka name hy "name".. ab yahn variable ban geya hy mgar es may koi value nahi to esay value dene k lye hum equal ka sign lgaty hain phr usky bad value likh dete hain
    $name = "Arslan";
    to yahn name k variable ko "Arslan" value assign kardi gae hy. phr semi colon say line end kardi gae hy.
    ab agr hum name waly variable may mojood value ko dekhna chahty hain to hum echo use kar len gay.
    echo $name;
    es say humaris creen per Arslan likha ajye ga. ab hum jahn chahein esay use karein jitni bar karein koi masla nahi
    variables ksi bhi programming language ka bht important part hain. enka sb say bara faida ye hota hy k hum value ek jagah asign karty hain or jahn jahn esay use kia jaa rha hy wahn per ye show ho jye ga.
    meri video ko zaroor dekhen us may step by step explain kiya geya hy k yahn yaqeenan logon say ziada parha nahi jye ga

  2. #2
    Umarkhan147's Avatar
    Umarkhan147 is offline Advance Member
    Last Online
    8th July 2018 @ 03:03 PM
    Join Date
    22 Dec 2015
    Location
    Faisalabad
    Age
    23
    Gender
    Male
    Posts
    4,873
    Threads
    240
    Credits
    32,971
    Thanked
    301

    Default

    Nice Sharing

  3. #3
    syedmazhar is offline Senior Member+
    Last Online
    5th October 2017 @ 10:32 AM
    Join Date
    22 Oct 2009
    Posts
    52
    Threads
    4
    Credits
    776
    Thanked: 1

    Default

    Very easy to understand.

  4. #4
    hussain king is offline Senior Member+
    Last Online
    29th May 2018 @ 12:54 PM
    Join Date
    14 Feb 2018
    Gender
    Male
    Posts
    97
    Threads
    39
    Credits
    -1,158
    Thanked
    2

    Default

    nice sharing

  5. #5
    Join Date
    27 Feb 2018
    Age
    28
    Gender
    Male
    Posts
    11
    Threads
    0
    Credits
    92
    Thanked
    0

    Default

    Good job..
    ali

  6. #6
    isbkhurram is offline Senior Member+
    Last Online
    22nd May 2018 @ 01:05 PM
    Join Date
    21 Apr 2018
    Age
    36
    Gender
    Male
    Posts
    54
    Threads
    3
    Credits
    313
    Thanked
    0

    Default

    Webhosting in Pakistan
    اچھی پوسٹ ہے

Similar Threads

  1. PHP and MySQLi Class 1
    By ali_num13 in forum PHP MySQL
    Replies: 10
    Last Post: 15th March 2018, 06:20 PM
  2. Replies: 51
    Last Post: 30th October 2016, 09:22 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
  •