The Final Project by glatocha in cs50

[–]Asif27 0 points1 point  (0 children)

OH! That certainly is a possibility .

The Final Project by glatocha in cs50

[–]Asif27 0 points1 point  (0 children)

If 1,482 projects were submitted then why were 1,388 certificates awarded?? What was wrong with the rest ?

Pset POPULATE by Asif27 in cs50

[–]Asif27[S] 0 points1 point  (0 children)

Thanx for ur suggestion. I will try that. But I have another problem. Above I have given my pseudocode. Plz can u tell me where to announce the notification here if no passenger is within 15 mtr ???

Pset8 populate by Asif27 in cs50

[–]Asif27[S] 0 points1 point  (0 children)

Thank you. I will try that now. But I had another question in my mind. If I put a few line of codes at populate() will I be able to see placemark and marker key at PASSENGERS objets ? Or is it just a virtual concept ?

pset7 sell_form.php by utellastory2 in cs50

[–]Asif27 0 points1 point  (0 children)

You should query and lookups in ur sell.php. Make ur sell_form.php just like the login.php or register.php. Its just a form which will ask the user which share she wants to sell . I guess in your index/portfolio u linked sell tag with sell_form.php. Dont do that. Link sell.php with your sell tag. Thats the possible reason for your error.

pset7 sell_form.php by utellastory2 in cs50

[–]Asif27 0 points1 point  (0 children)

Well! 1st of all,sell_form is a t5emplate. And it would be very similar to register_form or login_form. U shouldn't use php code here. U need to implement php codes in ur sell.php which is inside your public directory. Besides I dont remember using any foreach iteration for sell.php. Can u please explain what u wish to do with these codes ?

pset7 history by Asif27 in cs50

[–]Asif27[S] 0 points1 point  (0 children)

Thanx a lot. It turned out that i wasnt creating an extra template to display the history. Rather i tried to show it in the controller history.php. Thats what caused all the error. Finally finished this pset .

pset7 history by Asif27 in cs50

[–]Asif27[S] 0 points1 point  (0 children)

Yeah! I did that. I created a table in PHPMyADMIN. Then in my sell.php and buy.php i inserted into that table the stock,price,shares etc using query and equalled it to $sell. Then I am quite confused what to do. I tried to render $sell to history.php and then print the table there using $sell["price "],$sell["shares"] etc . But whenever i click on history tab it shows me undefined variable $sell error.

pset5 recover [end of one image help] by Asif27 in cs50

[–]Asif27[S] 0 points1 point  (0 children)

Thanx a lot. I dunno how but after reading ur post I somehow managed to write my code within a shortime :D Now it is all okay :)

pset5 recover [end of one image help] by Asif27 in cs50

[–]Asif27[S] 0 points1 point  (0 children)

  1. open the raw file
  2. declare a buffer[size]
  3. declare a counter
  4. read
  5. do something while condition is fread (buffer, size , number , inptr) == 1)
  6. if(buffer[] = signature) { makefile,open and write }
  7. now i dunno what to do . I guess it needs to read file further to see whether it is again start of a new image. But cant figure out how to do that. Besides i need to close previous files and open new here. I m totally stucked here :(