Jump to content

API Feature


hostforweb

Recommended Posts

You can try to resolve this with a custom API.

 

/includes/api/getproductname.php

<?php
$result = mysql_query("SELECT name FROM tblproducts WHERE id='".$_POST['pid']."' LIMIT 1");
$value	= mysql_fetch_array($result);

if(mysql_num_rows($result) == 0)
echo "result=error;message=Invalid product ID";
else
echo "result=success;name=".$value['name'];

echo $return;
?>

 

The action-name is getproductname. Just give in the product ID as pid and it returns the name.

Link to comment
Share on other sites

Hello,

 

I am seeing an error like this:

 

[Fri Mar 12 16:15:22 2010] [error] System: Connection reset by peer (errno: 104)

[Fri Mar 12 16:15:55 2010] [error] mod_ssl: SSL handshake failed (BILLING_URL:443, client aaa.bbb.ccc.ddd) (OpenSSL library error follows)

[Fri Mar 12 16:15:55 2010] [error] OpenSSL: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca

[Fri Mar 12 16:16:52 2010] [error] mod_ssl: SSL handshake interrupted by system [Hint: Stop button pressed in browser?!] (System error follows)

[Fri Mar 12 16:16:52 2010] [error] System: Connection reset by peer (errno: 104)

Link to comment
Share on other sites

a quick update

 

where BILLING_URL is https://BILLING_URL i get that error:

 

[Fri Mar 12 16:16:52 2010] [error] mod_ssl: SSL handshake interrupted by system [Hint: Stop button pressed in browser?!] (System error follows)

[Fri Mar 12 16:16:52 2010] [error] System: Connection reset by peer (errno: 104)

 

but if i do just http://BILLING_URL API works fine.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated