0

1.First Page :

<a href="EditBoq.php?id=<?php echo  $_REQUEST['numb'];  ?>&type=<?php echo $_REQUEST['wtype']; ?>"

transfer 2 variable in anchor tag.

2.Second Page :

$sql="select * from basicboq where  boqno = '".$_REQUEST['id']."' and SideType= '".$_REQUEST['type']."' ";
$req = mysql_query($sql)or die('error'.mysql_error());

when I print this boqno It's display error : array to string conversion.

JimHawkins
  • 4,843
  • 8
  • 35
  • 55
Ankit
  • 1
  • 1
    when you are clicking on link what url comes in browser? can you paste that here? it seems like url in browser contain array – Alive to die - Anant Jan 04 '17 at 05:52
  • Please just give full description of your question and in query your argument is wrong while you are passing different arguments – Ashish Patel Jan 04 '17 at 05:55
  • 1
    Please stop using deprecated `mysql_` functions and also protect yourself from SQL injections, read here: http://stackoverflow.com/questions/60174/how-can-i-prevent-sql-injection-in-php – Markus AO Jan 04 '17 at 06:23

0 Answers0