You know that mysql_ is deprecated for long, right ? "Warning This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include: mysqli_query() PDO::query() " Source http://php.net/manual/en/function.mysql-query.php[^]
mrjay42
Posts
-
PHP & MySQL -
Starting Web ApplicationWell, if you already know VB.NET Then you can use it for your web development. Of course, this implies that you have access to Windows Server that is able to run IIS. Using VB.NET + ASP.NET to create a website, is I think the shortest way for you to have a working website :) Otherwise, as you said that you are learning PHP...maybe you could use this language to build your website. The interest, is that finding inexpensive hosting opportunities running PHP is easier than for IIS/.NET.
-
Invalid argument supplied for foreach()Check the content of
$result->data
by using
var_dump($result->data);
You will see the content of your object. However if it is a big object it can be messy You can also use this piece of code given in the comment section of the Traversable interface: http://php.net/manual/en/class.traversable.php#99195[^]