Hi,
I have a simple test snippet below.
When I run this in PHP 5.1.6 I get a Segmentation Fault error but when I run the exact same code in PHP 5.3.3 everything works fine. The error appears to happen on this line:
$obj = $soap->retrievePrice($arr);
If I do not want to upgrade the PHP...
Hi,
I was wondering if it is possible to call a script using a mysqli stored procedure similar to how you call a php script from a Linux command line like: php somescript.php
Something like:
CREATE PROCEDURE myproce
BEGIN
exec php somescript.php;
END
If not possible is there any other...
I recently updated our current FreeTDS to FreeTDS version 8.0 but existing PHP programs that is reading data from SQL Server 2000 database suddenly stopped working. The problem I found was in the SELECT statements for queries.
For example consider this SQL:
select
a.id as first_id,
b.id as...
Don't worry about it ingresman, with monologs the information does not always come across the way you intended.
Anyhow, I found out the problem. A simple one, it always is, you cannot use declare syntax in mysql triggers.
/M
Yes of course I tried, I would not be posting here if I did not.
The error msg I get is:
**********************
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@user integer;
declare @id integer;
at line 4...
Try to give your select colum a name
$query = "SELECT DISTINCT program.program_name as name FROM program INNER JOIN schedule ON program.id = schedule.pid ";
and then
while ($row = mysql_fetch_assoc($result));
{
echo $row['name'];
}
Hi
Is it possible to use a trigger on a table to update a different table using parameters?
TableA
user | id | data | duration
10 1 aaa 200
TableB
user | id | totDuration
10 1 null
What I am trying to do is to have a trigger on TableA when an UPDATE takes place to update...
I cannot be bothered trying to fix it. I just put a new table inside the <td> and that works fine. Do not need form tags for testing purpose and sample code for this post.
IE6 and greater (IE7), the center tag is irrelevant can be removed and still have the same outcome.
I have a table(s) which are dynamically build with data from a database. The second <tr> and the following <tr>'s will always consist of two <td>'s where the first <td> always going to be radio...
Hi
If I run this piece of code in Firefox it looks the way I want. How do I achieve the same result in Microsoft IE? I am referring to the width inside the <td> tags.
Thank you
<html>
<center>
<table border="1">
<tr><td colspan="2">test radio with some garbage text just for...
Hi
Sorry I missed another join
select x.id, x.cid, c.id
from Customer c
left outer join(
select id, con.contactID as cid
from Customer c
join Contact con on
con.custID=c.id
group by c.id, con.custID
)x on
x.id=c.id
Since my sub-select might return duplicates of the id column the x.id and...
Hi
Is there a trick when linking using a sub-select where the [id] is of type uniqueidentifier. I will demonstrate with a simple query. This query should simply link to itself but I get null values in the first column, what am I doing wrong.
select
x.id,
c.id
from Customer c
left outer...
Hi
Is it possible to have a sql that gets x amount of rows for each group by
For example:
Get the 3 latest prices that we charged customers for all items sold:
Customer Item Price
abc 123 5.00
abc 123 6.00
abc 123 7.00
cba 321 5.00
cba...
Hi
[field_name] is not numeric, it is a character field. This is the error message I get when using chr():
Warning: SQL error: [unixODBC][IBM][iSeries Access ODBC Driver][DB2 UDB]SQL0204 - CHR in *LIBL type *N not found.,
As far as I know we should have chr() function in our libary, or might...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.