• The Facebook Platform

Results 1 to 1 of 1
  1. #1
    Join Date
    Jan 2016
    Posts
    33
    Points
    84.00
    Rep Power
    35

    youtube PHP and MySQLi Class 2

    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 ;)







 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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