Skip to main content
removed pset8 tag, added pset7 tag
Source Link
ChrisG
  • 7.4k
  • 2
  • 17
  • 26

myMy problem is that whatever symbol i I write in sell_form.phpsell_form.php even if it doesn't exist in portfolio table., the query returnretursn true.here's Here's the query in sell.phpsell.php enter image description here

and that's sell_form.php

 <form action = "sell.php" method = "post" >

 <input class="form-control" type = "text" name = "symbol"/>

 <input class="btn btn-default" type = "submit" placeholder = "sell"/>
 </form>

 <form action = "sell.php" method = "post" >
     <input class="form-control" type = "text" name = "symbol"/>
     <input class="btn btn-default" type = "submit" placeholder = "sell"/>
 </form>

my problem is that whatever symbol i write in sell_form.php even if it doesn't exist in portfolio table. the query return true.here's the query in sell.php enter image description here

and that's sell_form.php

 <form action = "sell.php" method = "post" >

 <input class="form-control" type = "text" name = "symbol"/>

 <input class="btn btn-default" type = "submit" placeholder = "sell"/>
 </form>

My problem is that whatever symbol I write in sell_form.php even if it doesn't exist in portfolio table, the query retursn true. Here's the query in sell.php enter image description here

and that's sell_form.php

 <form action = "sell.php" method = "post" >
     <input class="form-control" type = "text" name = "symbol"/>
     <input class="btn btn-default" type = "submit" placeholder = "sell"/>
 </form>
Source Link
kawegan
  • 76
  • 1
  • 1
  • 10

a problem with queries in sell.php

my problem is that whatever symbol i write in sell_form.php even if it doesn't exist in portfolio table. the query return true.here's the query in sell.php enter image description here

and that's sell_form.php

 <form action = "sell.php" method = "post" >

 <input class="form-control" type = "text" name = "symbol"/>

 <input class="btn btn-default" type = "submit" placeholder = "sell"/>
 </form>