[PHP-DB] Re: Hi,

2008-07-04 Thread Shawn McKenzie

John Jairo Vega Angulo wrote:

Hi,
  How are u doing these days?Yesterday I found a web of a large trading
company from china,which is an agent of all the well-known digital product
factories,and facing to both wholesalers,retailsalers,and personal customer
all over the world. They export all kinds of digital products and offer most
competitive and reasonable price and high quality goods for our clients,so i
think we you make a big profit if we do business with them.And they promise
they will provide the best after-sales-service.In my opinion we can make a
trial order to test that. Look forward to your early reply!
 The Web address:http://www.mwhdy.com/


Hi John Jairo Vega Angulo,

I'm doing well.  Wow!  That's truly awesome!  I'm all about promises, 
let's do a trial order!


Happy Independence Day!
-Shawn

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Re: Hi I am new

2004-04-24 Thread Jimmy Brock
Since you didn't mention what database you are using I'm assuming MySQL.
Here's a good place to start:

http://dev.mysql.com/tech-resources/articles/ddws/

"Water_foul" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am new to databases and php and I was wondering if any one would point
me
> to a good guide
> anything would help :)
> thanks in advance,
> water_foul

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Re: Hi I am new to PHP

2004-04-15 Thread David Robley
[EMAIL PROTECTED] (Andy Amol) wrote in
news:[EMAIL PROTECTED]: 

> 
> I have posted my problem at No: 33892 of this mailing list. I have
> received 1 reply. No: 33897 
> 
> My exact problem with second file is as follows:
> 
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL
> result resource on line 15 
> 
> 
> Can you help me to solve problem, any help would be appreciated.
> 
> Thanks.

Your sql syntax is probably wrong. Somewhere before line 15 you are 
presumably using mysql_query to submit your query. Try adding to that line

or exit( 'Error: ' .mysql_error() );

which will halt your script and return a useful error string from mysql if 
there is an error.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Re: Hi I am new to PHP

2004-04-15 Thread Shaun
It means there is a problem with your query,

if you send the query back to the group someone may be able to help.


"Andy Amol" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I have posted my problem at No: 33892 of this mailing list. I have
received 1 reply. No: 33897
>
> My exact problem with second file is as follows:
>
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource on line 15
>
>
> Can you help me to solve problem, any help would be appreciated.
>
> Thanks.
>
>
>
> -
> Do you Yahoo!?
> Yahoo! Tax Center - File online by April 15th

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Re: Hi, simple question

2003-07-01 Thread Shivanischal A
Hi,

or u can just try "select last_insert_id() from test" - thats what i do.
however even mentioning the table-name doesn't seem to be necessary; i just
do it for readability.

-shiva

"Patrik Fomin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> im adding a post to the database, is there any way to retrive back the ID
> for the post that i just created?
>
> the id is auto_increment and primary key.
>
> like
> $sql = "insert into test (namn, www) values('test', 'test.com')";
> mysql_query($sql);
>
> $row = mysql_get_post("id");
> ?
>
> the only way i could think of was to create a tempfield in the database
and
> each time you post you give the temp field a unique value, like:
>
> $sql = "insert into test (namn, www, unique) values('test',
> 'test.com','25323324')";
> mysql_query($sql);
>
> $sql = "select id from test where unique = '25323324'";
> $res = mysql_query($sql);
>
>
> regards
> patrick
>
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php