I have lines of code that look like this:
while ($row2sx = mysql_fetch_arr ay($result2sx)) {
Now that's the way I've always learned to create an array from a mySQL
querey.
I just started trying the Zend Studio (and to be honest, except for the
debugger I'm seeing that it has less features than EditPlus.)
And the debugger calls all my WHERE() functions bugged because I'm
using one = instead of two as in ==.
a) Is there a better way of formatting a mysql_fetch_arr ay, or
b) Is there a way to tell Zend Studio that hey, that's a-ok code?
(I haven't been able to find an option to allow that.)
While on the subject, I'll have includes like this:
include_once("i ncludes/connect.php");
which will have in it lines that establish variables like:
$dbh=mysql_conn ect ("localhost" , "username", "password") or die ('I
cannot connect to the database because: ' . mysql_error());
but in the main page it will say $dbh in the line:
$result_home_fe ature = @mysql_query($s ql_home_feature , $dbh);
is an error because $dbh is being used before it's defined.
Yet, in the little Studio file list of included files it shows the
connect.php file that establishes what $dbh is.
Is there something that needs to be set that I can't find for it to
recognize its...set-ness?
Thanks for any help!
Liam
while ($row2sx = mysql_fetch_arr ay($result2sx)) {
Now that's the way I've always learned to create an array from a mySQL
querey.
I just started trying the Zend Studio (and to be honest, except for the
debugger I'm seeing that it has less features than EditPlus.)
And the debugger calls all my WHERE() functions bugged because I'm
using one = instead of two as in ==.
a) Is there a better way of formatting a mysql_fetch_arr ay, or
b) Is there a way to tell Zend Studio that hey, that's a-ok code?
(I haven't been able to find an option to allow that.)
While on the subject, I'll have includes like this:
include_once("i ncludes/connect.php");
which will have in it lines that establish variables like:
$dbh=mysql_conn ect ("localhost" , "username", "password") or die ('I
cannot connect to the database because: ' . mysql_error());
but in the main page it will say $dbh in the line:
$result_home_fe ature = @mysql_query($s ql_home_feature , $dbh);
is an error because $dbh is being used before it's defined.
Yet, in the little Studio file list of included files it shows the
connect.php file that establishes what $dbh is.
Is there something that needs to be set that I can't find for it to
recognize its...set-ness?
Thanks for any help!
Liam
Comment