dear all..i want my input form automatically make all character become big size..
and also without press a capslock button...i want all data which have been input into DB in capital format..what's code to make it?
...
Hi. I am working on a newsfeed like similar to facebook. Where I compare the time when something happened in my mysql table to the current time and output: something something happened x min ago.
First i connect to mysql with this code:
$conn = db_connect();
$newsfeed = $conn->query("select info, username, time from ...
Hey Guys,
I'm new to using SSL Certs and am having trouble getting help from the Service Provider I'm connecting to. I'm using PHP on the backend to handle the connection.
The setup is as follows:
User enters details into form, ajax sends the details back to Our server
Our server then connects using curl to 3rd party service sending ...
Hi
This is my function where i fetch my results from database
function Prof_Viewer($MemberId)
{
$query = $this->db->query("SELECT distinct(t1.dProfileId) as prof
FROM tbl_profile_viewer as t1
JOIN tbl_login as t2
WHERE t1.dProfileViwerId='$MemberId'");
if($query->num_rows > 0)
{
foreach($query->result() as $row)
...
Hi all, I am just trying to get the auto incremented value of a table that is currently the highest. I do not need to know what the next auto increment is, just the highest value of what is in the table right now. I am using the code below, but regardless of what the actual auto increment is, what table I last inserted into, what table...
I have a listing of items, that also contains an image thumbnail. Sometimes I need to change the thumbnail image, but keep the filename the same. Is there a way to force the browser to download the newly uploaded image, instead of grabbing one from the browser cache?
This is very pertinent when people update their avatars, which causes ...
I tried to use this function
$conn = db_connect();
while ($newsfeed = $conn->query("select info, username, time from newsfeed ORDER BY time DESC LIMIT 10"))
{
(...)
echo "<p>User $newsfeed_username just registerted ".$minutes." min ago </p><br>";
but it only shows the la...
Using Php I have wrote the drop down list box code.
for Edit employee details I have used the same code and I tried to set the value on list box but the value is not set. how to do this.
Employee Name: <select name=emp_name *$value='$name'*>
<option> -- EMPLOYEE NAME -- </option>
<?
while ($q->fetchInto($row)){
print "<op...
I'm using the mail function as follows:
mail($emailto, $subject, $body, $headers);
mail('[email protected]', $subject.' / '.$emailto, $body, $headers);
The first is intended for the enduser. The second copy is for me for record keeping purposes.
Soometimes the enduser specifies their email address, other times its blank.
When an ema...
HI
I got a doubt I have seen reading mysql data is slower in case of large tables...I have done lots of optimization but cant get through..
what I am thinking is will it give a better speed if I store data in a piece of file??
off course each data will be a separate file. so millions of data = millions of file. I agree it will consum...
How would i make an aol aim bot in php, that is able to send and receive message, with a autoresponder. I have already taken a look at the toc protocol but wanted to use oscar if possible.
...
for a hotel web site there are a featured for online advanced room booking using credit or debit card. but i am unable to write that specific code. please answered if possible.
...
I'm trying to populate a template with variables from a database. The data looks as follows:
id field content
1 title New Website
1 heading Welcome!
1 intro This is a new website I have made, feel free to have a look around
2 title About
2 heading Read all about it!
What I need to do with that data...
I have an array of the form array( 'paramName1'=>'param1', 'paramName2'=>'param2', ...) and want to turn it into a request string of the form paramName1=param1¶mName2=param2&...
It's easy enough to write a function to do this myself, but I was wondering if php already had a function to do this built in?
...
How could I remove the get query from the URI, so I can use this method:
$request->getRequestUri()
And get the URI without the GET query part?
I.e. this:
/module/controller/action/par/val?par2=aaa
I would get:
/module/controller/action/par/val
...
Is there a single PHP API to post to multiple sharing sites (Twitter, Reddit, Linkedin, YouTube etc), or do I have to use multiple APIs? Or is there an online service that will do this via, say, a REST interface?
...
I AM FAIRLY NEW TO USING PHP COMMANDS AND REGEX.
i have a html document retrieved through php commands , now i want to extract the data from html between two strings .
for example,
**<h4 class=3D"style1"> HIGH (blah)</h4>**
<h4><br>
<br></b>
<br>
</h4>
<TR>
<TD width=3D"513">
<B**>**textttttttttt**</**B><br><br><br><br><hr><t...
hii all..i have some code that make all string characters which have been input into DB change to capital size..this is my code:
function newinputdata($modelnm,$serialno)
$Model=mysql_real_escape_string($modelnm);
$Serial_number=mysql_real_escape_string($serialno);
$str=strtoupper($str)
echo $str;
$sql="INSERT INTO.........";
is tha...
The problem is I only know the names of the columns but do not know how many columns in total. There will be other columns.
...
mypermission are
$par['req_perms'] = "publish_stream,
offline_access,
user_status,
user_photos,
user_videos,
user_photo_video_tags,
read_stream,
user_likes,
user_events,
...