Click here to Skip to main content
15,900,402 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Tab Control Pin
Ali Al Omairi(Abu AlHassan)17-May-16 6:17
professionalAli Al Omairi(Abu AlHassan)17-May-16 6:17 
GeneralRe: Tab Control Pin
Richard Deeming17-May-16 6:52
mveRichard Deeming17-May-16 6:52 
Questionfacebook sharing Pin
Priyanka Kolambe16-May-16 21:01
Priyanka Kolambe16-May-16 21:01 
Questionglassfish alternatedocroot error 404 Pin
V.12-May-16 23:28
professionalV.12-May-16 23:28 
QuestionHow To Get Markup Of Page Using Chrome DevTools Pin
MadDashCoder12-May-16 0:05
MadDashCoder12-May-16 0:05 
AnswerRe: How To Get Markup Of Page Using Chrome DevTools Pin
Ali Al Omairi(Abu AlHassan)16-May-16 21:56
professionalAli Al Omairi(Abu AlHassan)16-May-16 21:56 
QuestionBest method to automate website filling in Google Chrome Pin
srikrishnathanthri9-May-16 2:07
srikrishnathanthri9-May-16 2:07 
QuestionWhat / how are these people trying to hack my site? Pin
Wombaticus7-May-16 4:34
Wombaticus7-May-16 4:34 
AnswerRe: What / how are these people trying to hack my site? Pin
DaveAuld7-May-16 5:27
professionalDaveAuld7-May-16 5:27 
QuestionCan any one answer this question Pin
Member 125083947-May-16 0:16
Member 125083947-May-16 0:16 
AnswerRe: Can any one answer this question Pin
Richard MacCutchan7-May-16 2:49
mveRichard MacCutchan7-May-16 2:49 
QuestionCSS Pin
Member 125083947-May-16 0:16
Member 125083947-May-16 0:16 
QuestionActionLink for webgrid page navigation? Pin
#realJSOP3-May-16 5:00
professional#realJSOP3-May-16 5:00 
AnswerRe: ActionLink for webgrid page navigation? Pin
#realJSOP3-May-16 5:54
professional#realJSOP3-May-16 5:54 
QuestionHTML5 and CSS Forums Pin
Jassim Rahma1-May-16 20:37
Jassim Rahma1-May-16 20:37 
QuestionRe: HTML5 and CSS Forums Pin
Richard MacCutchan1-May-16 20:56
mveRichard MacCutchan1-May-16 20:56 
AnswerRe: HTML5 and CSS Forums Pin
Jassim Rahma2-May-16 1:42
Jassim Rahma2-May-16 1:42 
QuestionProblem Querying using PDO Pin
Jassim Rahma26-Apr-16 21:42
Jassim Rahma26-Apr-16 21:42 
Hi,

I am trying to use PDO like this simple code:
PHP
<?php
    $mysql_host = "(local)\JASSIM-RAHMA";
    $mysql_database = array("Database"=>"food");

<pre>
$mysql_connection = sqlsrv_connect($mysql_host, $mysql_database);

$sql_stmt = "SELECT * FROM  groups";

$mysql_query = sqlsrv_query($mysql_connection, $sql_stmt);

while($row = sqlsrv_fetch_array($mysql_query, SQLSRV_FETCH_ASSOC))
{
echo $row['group_id'] . ", " . $row['group_name'] . "
";
}
?>


but I am getting:

Warning: sqlsrv_query() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\food\temp.php on line 9

Warning: sqlsrv_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\food\temp.php on line 11


Kindly help..

Thanks,
Jassim

Technology News @ www.JassimRahma.com

AnswerRe: Problem Querying using PDO Pin
Richard MacCutchan26-Apr-16 21:50
mveRichard MacCutchan26-Apr-16 21:50 
Questionmenu and submenu show in sidebar after click on it and load its related pages Pin
Member 1180506324-Apr-16 22:44
Member 1180506324-Apr-16 22:44 
AnswerRe: menu and submenu show in sidebar after click on it and load its related pages Pin
ZurdoDev25-Apr-16 1:40
professionalZurdoDev25-Apr-16 1:40 
GeneralRe: menu and submenu show in sidebar after click on it and load its related pages Pin
Member 1180506325-Apr-16 3:39
Member 1180506325-Apr-16 3:39 
GeneralRe: menu and submenu show in sidebar after click on it and load its related pages Pin
ZurdoDev25-Apr-16 3:54
professionalZurdoDev25-Apr-16 3:54 
GeneralRe: menu and submenu show in sidebar after click on it and load its related pages Pin
Richard MacCutchan25-Apr-16 7:00
mveRichard MacCutchan25-Apr-16 7:00 
QuestionAdd second Master Pages Pin
Member 1180506324-Apr-16 22:04
Member 1180506324-Apr-16 22:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.