I have this html form which will then it will call addstuds.php to execute the code for inserting records in mysql database.
<form name="formcheck" method="post" action="addstuds.php">
<td width="30" height="35"><font size="3">*I D Number:</td>
<td width="30"><input name="idnum" onkeypress="return isNumberKey(event)" type="text" ma...
I have the following table -
$sql = "CREATE TABLE received_queries
(
sender_screen_name varchar(50),
text varchar(150)
)";
I use the following SQL statement to store values in the table
$sql = "INSERT INTO received_queries VALUES ('$sender_screen_name', '$text')";
Now I am trying to store the following string as ...
Hi Every One,
I am developing an application on fireeagle, there i need to update the users exact location, with out asking any information from the user (i.e) lat, long e.t.c.,
If it is not possible using yahoo fireeagle, please let me know if there exists any other api's other than yahoo fireeagle. If they can get the exact location ...
When i use the code below, im getting this error:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
when returning the data, anyone can fix it? Thanks!
<?php
$mysql_server_name="localhost";
$mysql_username="";
$mysql_password="";
$mysql_database="";
$conn=mysql_connect($mysql_server_name, $mysql_...
I have a web site that runs on Windows and uses cp1252 (aka Win-1252) so it can display Spanish characters. The app generates some plots with JpGraph 2.3. These plots use the Tahoma Open Type font family to display text labels. Strings are provided in ANSI (i.e., cp1252) and font files support cp1252 (actually, the *.ttf files were copie...
I'm looking for a good solution to integrate a forum into a symfony application.
Something like phpBB would be excellent. I've seen phpBB plugins to integrate with symfony but that's not enough for my purposes, also, mapping database tables is a lame approach in my opinion.
If anybody knows a good working forum component for Symfony t...
Hello everyone,
I habe a Problem, I have to gzip a prototype Lib, but i totaly have no idea how to do this, where to start und how does it works :)
I find some tutorials but that wasn't helpfull...
So I have a folder with my JS Files
/compressed/js/
1.js
2.js
3.js
I caling this files for a test in this file
/compresses/index.php
<...
Ok so this is what I want to make:
red = booked
green = available
I have data in mysql in the format of:
property_id, booked_from, booked_until .
Before I start trying to create the correct loops etc to create and style the table, i thought i best ask if there are already good jquery plugins / php classes create this visual interfa...
I need to increment User's balance, so I do:
Doctrine_Query::create()->from('User')->update('balance', 'balance + 0.15')->execute();
And I got an error "Unknown component alias 0". I think its because of 0.15
So how can I update (using DQL) balance without additional SELECT queries to User's table to fetch his balance, calculate new b...
hi, simple question, my url is
www.site.com/page--3
I need the rewriterule to read "/page--3" as two different values.
I have this working:
RewriteRule ^/?([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)$ index.php?page=$1&subpage=$2
This gives me the values 'page' and '3' from www.site.com/page/3.
how do i get the rewriterule to read the '--' as ...
I just want to simplify what I am doing before, having multiple php files for all data to be listed.
Here is my html form:
<table border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D3D3D3">
<tr>
<form name="formcheck" method="post" action="list.php" onsubmit="return formCheck(this)...
Hello all!
I'm new here. I've got a question related to PHP, FTP and CURL.
I need to emulate PHP's stat() with CURL FTP. I already know that it may take more than one command to do it. Here's what I've got so far (PHP/STAT ... FTP/CURL):
dev
ino
mode ... LIST *
nlink
uid ... LIST *
gid ... LIST *
rdev
size ... SIZE (or better still, ...
We are working on a website which will provide the client access to a WSDL service via SOAP mechanism.
How do i implement a WSDL service in PHP ?
What is Apache Axis2 and Apache CXF ?
Does it suit my requirements ? Will it work on PHP or do i have to code it in Java ?
...
Simply put, if you try to read the value of a get variable, what happens if said variable had not be put into the URL. Example: you request the page test.php, in that file it tries to read the value of $_GET['message']. What happens in this case? dose the value just get returned as ''?
Dose this mean, that if I am always expecting a val...
Where is a hello world example that has all CRUD operations included?
...
I have this function:
if (is_dir($dir)) {
//are we able to open it?
if ($dh = opendir($dir)) {
//Let's cycle
while (($subdir = readdir($dh)) !== false) {
if ($subdir != "." && $subdir != "..") {
echo $subdir;
}
}
}
This returns:
dire...
I need to get list of functions with their contents (not only the function name) from php file. I tried to use regex but it has lots of limitations. it doesn't parse all types of functions. for example it fails if the function has if and for loop statements.
in details:
I have around 100 include files. each file has number of declared f...
Hello
34|http://v19.lscache8.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id,expire,ip,ipbits,itag,algorithm,burst,factor,oc:U0dWRlZUVF9FSkNNNl9OTlhF&fexp=902210&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1271696400&key=yt1&signature=583C4A85FA65B6B9782B8B4B5E1F1C08D9EADCA...
I'm working on a calendar app and need to get the timestamps for the beginning of each day/month etc:
whats the best method?
//get timestamps for start of (day, month, year)
$ts_now = time();
$ts_today =
$ts_this_month =
$ts_this_year =
...
I use this in my controller,
function phpcalview()
{
$year = $this->input->post('yearvv');
$year1 = $year+1;
//echo $year1;
$this->load->view('phpcal',$year1);
}
How to $year1 value to my view phpcal and get that value in the textbox yearvv
...