Hello, my mysqli_fetch_array(mysqi_query($db, $query)) doesn't appear to be getting the correct information from the database, and therefore, the PHP application is not working as it should.
Here are the queries,
<?php
if($_GET){
$current = mysqli_fetch_array(mysqli_query($db, "SELECT * from `tbl_user` WHERE `userid` = '".$_GET['useri...
I'm always using an output variable in PHP where I gather all the content before I echo it. Then I read somewhere (I don't remember where, though) that you get best performance if you split the output variable into packets and then echo each packet instead of the whole output variable.
How is it really?
...
I have a tcsh script that generates a text file. One of the lines in the text file is:
bla bla bla 'foo foo foo "bar bar bar"': etc etc;
Note the nested ' and " and also the : and ; that must be there.
The : and ; require the whole string to be surrounded by quotation marks. However, if I do that, I have trouble escaping the quotat...
Hello,
My problem is the folowing:
The string I give back with the ajaxcall and subsequently let it fadein
is not fading in completely.
The inner span tag with class="message" get's dropped at once. and the first is doing what it is supposed to.
I need the inner spantag to ajust the position next to the image
so for clarity:
The st...
I have two variables declared as follows:
export portNumber=8888^M
export loginIP_BASE=10.1.172.2^M
I'm trying to print them both on a single line seperated by a colon ':' with the following script. It should look like "10.1.172.2:8888"
echo -n 'Login IP:'
echo -n $loginIP_BASE
echo -n ':'
echo $portNumber
but it it prints out the ...
Hello,
my question is how I can echo this the right way
because the variable in the onclick function gives out a undefined error
$openchat="<a href='javascript:void(0)' onClick='return chatWith(" . $livenaam .")'>" . $livenaam . "</a><br>";
echo $openchat;
I want to use it in a loop to get a list off users online for the chat
Thank...
How do I run this command with subprocess?
I tried:
proc = subprocess.Popen(
'''ECHO bosco|"C:\Program Files\GNU\GnuPG\gpg.exe" --batch --passphrase-fd 0 --output "c:\docume~1\usi\locals~1\temp\tmptlbxka.txt" --decrypt "test.txt.gpg"''',
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
stdout_va...
I'm currently in the middle of working on a CMS system that builds the website straight from information saved in a MySQL database.
Here's the problem I'm having:
Inside the CMS the user enters coding for a template
the frontend of the site (frontend.php) calls the variable where the layout is stored ($template_header)
The frontend a...
I want to know how to capitalize in PHP
...
In php, is there any way to clear/remove all previously echoed or printed items?
For example:
<?php
echo 'a';
print 'b';
// some statement that removes all printed/echoed items
echo 'c';
// the final output should be equal to 'c', not 'abc'
?>
My script uses the include function. The included files are not supposed to echo anyth...
I am trying to suppress the local echo of a password in a telnet session by sending 0xFF 0xFD 0x2D (IAC DO SUPPRESS_LOCAL_ECHO). This works fine.
My trouble is enabling the local echo after the password. I am sending 0xFF 0xFE 0x2D (IAC DONT SUPPRESS_LOCAL_ECHO). But I don't see any of my commands that I type afterwards.
I am usin...
I want to conditionally output HTML to generate a page, so what's the easiest way to echo multiline snippets of HTML in PHP 4+? Would I need to use a template framework like SmartyPants?
echo '<html>' + '\n'; // I'm sure there's a better way!
echo '<head>' + '\n';
echo '</head>' + '\n';
echo '<body>' + '\n';
echo '...
I have the following For loop in a batch file:
for /R c:\test\src %%i IN (*.*) DO (
MOVE %%i C:\test\destination
ECHO %%i
exit
)
The result of the ECHO outputs the entire file path Ex: C:\Foldername\Filename
I need to ECHO out only the Filename.Is there a specific command which would give me the filename ?
Thanks !
...
I'm curious why this won't echo the HTML; I've perused the other questions in SO having to do with echo and print.
It must be the PHP while loop in the string, but I've escaped the double quotes. There is something more complex happening, namely the error "Object of class WP-Query could not be converted to string."
Am I being too simpl...
I have a simple if-else statement--if true, I'd like it to echo this content:
<div id="login">
<h2>Login</h2>
<div class="box">
<form method="POST" action="index.php/login">
Username/Email:<br />
<input type="text" name="username" value="<?php echo set_value("username"); ?>" size="50" class="form" />
<?php echo...
How to grab the string that a function echoes to a variable?
I've go a function similar to this:
function echoer() {
echo 'foo';
}
I cannot change it's source. What I would like to do is to store 'foo' in a variable instead of letting it go to the standard output. How is it done in PHP?
...
hi All
this is probably so simple but still i can't get it to work
i'm using this statement:
echo "$num1"."+"."$num2"."=".$num1+$num2."<BR>";
i was expecting something like
3+3=6
but instead i get just 6
any ideas why?
...
Hello everyone,
I'm running into a bit of an issue when I try to return a link to pull up a thickbox on my page from a simple php echo. Basically what I have is:
A page with a few include statements like:
<?php
include ("display_header.php");
?>
Each one of the include statements just points to a php file that pulls a short qu...
When i use SSI directive is there any way to escape variable with HTML entities?
<META HTTP-EQUIV="Refresh" CONTENT="10; URL="/index.shtml?r=<!--#echo var="HTTP_REFERER" -->">
Thx in advice!
...
So I have a script that I debug with a bunch of echo statements. This is run every 3 minutes on my server by cron, and I sometimes leave the echo statements in there. They're not going to a browser, they're just going... anywhere?
This is a vague question I guess, but what happens when there's no end-user or output for an echo statement...