Hello
I need help.
I'm querying a database then printing the results in a table. I want the result to be
in a table with 2 columns per row.
something like that
---- --
-- row 1
10x but i am new to php and i do not know how to dump all of the results
into an array can you help me with this one please?
- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "phpu" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent:
inal Message -
From: "Michael A Smith" <[EMAIL PROTECTED]>
To: "phpu" <[EMAIL PROTECTED]>
Sent: Tuesday, July 08, 2003 1:43 AM
Subject: Re: [PHP] Table trouble
> fetchinto?
> On Mon, 2003-07-07 at 14:42, phpu wrote:
> > 10x but i am new to php and i
I have a table like this:
- product_id-mark_name-category_name -
-1- aaa
-
Hash: SHA1
Le Mercredi 9 Juillet 2003 15:13, phpu a écrit :
> I have a table like this:
> ..
> $sql = "SELECT * FROM products, category WHERE
> category.name_category=products.name_category and
> category_id=".$_GET['category_id'] ;
>
> When i choose t
ry_id=".$_GET['category_id']."
GROUP BY products.mark_name";
---Original Message---
From: phpu
Date: Wednesday, July 09, 2003 09:51:08 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re:
I have this script to login to site:
..
if ($_POST['email'] == "" || $_POST['password'] == "")
{
print 'Email or password cannot be blank !Back';
exit;
}
include ("connect_mysql.php");
$crpass=md5($_POST['password']);
$sql = "SELECT * FROM users W
Hello
I'm making an online game in php and mysql. Can someone tell me how can I add records
to database every 60 minutes (even when i'm not online)
I have this code and I wanna display only 10 records on page. For the rest of them I
wanna use a "next" link(or a previous link).
Please tell me hoe can I do that.
$sql = "SELECT * FROM categorie" ;
$rezultat = mysql_query($sql);
$num_rows = mysql_num_rows($rezultat);
while ($row=mysql_fetch_
I've tried but i don't know how to put it in my script. And also i don't know how to
display it in page. Here is my script and I hope you could help me with this one.
thanks
$sql = "SELECT * FROM categorie" ;
$rezultat = mysql_query($sql);
$num_rows = mysql_num_rows($rezultat);
while ($row=my
Hello,
I wanna create an online game in php and mysql and I have a problem. I have this
database with this fields; id and number_attacks. And every 10 minutes number_attack
to be increased by 1. How can i do that?
Thanks
Hello,
I'm new in php and i've got allready a problem.
I wanna divide 2 numbers and the result to be an integer separated by comma. For
example:
$number1=1000;
$number2=17;
$result=$number1 / $number2;
In this case the result is 588235.29411764
And I wanna the result to be like this 588,23
yes but if the result is a number like this 34056983 i wanna display this number like
this 34,056,983
Please help me with this one
- Original Message -
From: Nathan Taylor
To: phpu
Sent: Wednesday, September 10, 2003 2:49 AM
Subject: Re: [PHP] divide
Check out
Sorry
I've got it.
Thanks a lot
- Original Message -
From: Nathan Taylor
To: phpu
Sent: Wednesday, September 10, 2003 2:59 AM
Subject: Re: [PHP] divide
Check out number_format() like I said.
- Original Message -
From: phpu
To: Nathan Taylor
I have a little problem whit this script
...
$sql="INSERT INTO tranzactii (name, email) values
('".$_POST['name']."','".$_POST['email']."')";
$result=mysql_query($sql);
$id_transaction=mysql_insert_id();
for ($i=0; $i < count($_SESSION['id_product']); $i++)
{
if ($_SESSION['nr']
Hi,
I have been trying to do this for weeks but i just cant figure this out. I have
categories that have subcategories and i want to insert them into database. My table
looks like this: cat_id, parent_id and cat_name.
Let's say i wanna insert a subcategory that is associated with its parent cat
Hi,
I have this code that search an specify word in the database. This search is working.
The only problem that I have is that I wanna show only 7 rows per page. When I wanna
jump to the next page with results it shows all records in the database(7 rows per
page).
How can i do to show only the r
Sorry but i'm new to php and i don't know how to do that. Can you help me, please?
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 22, 2003 1:00 AM
Subject: Re: [PHP] search result
whwen you jump to the next page, make sure there's
I have tried but didn't work. I think i'm going crazy. I don't know how to
do it...
$rows_per_page = 7;
$sql = "SELECT * FROM products";
$rezultat = mysql_query($sql);
$total_records = mysql_num_rows($rezultat);
$pages = ceil($total_records / $rows_per_page);
mysql_free_result($rezultat);
mysql_
Finally I got it.
Thanks a lot
- Original Message -
From: "phpu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 22, 2003 1:36 AM
Subject: Re: [PHP] search result
> I have tried but didn't work. I think i'm going crazy. I don&
Hi
I have this form:
Picture
';
}
?>
All i wanna do is to modify picture only if the modify_picture checkbox is checked.
How can i do that?
thanks
It's working..
Thanks a lot
- Original Message -
From: "Jason Sheets" <[EMAIL PROTECTED]>
To: "phpu" <[EMAIL PROTECTED]>
Sent: Sunday, September 28, 2003 6:55 PM
Subject: Re: [PHP] checked / unchecked
> With a conditional, note that if you have mo
Hi,
I have a file, test.txt. The containig of this file is:
line 1
line 2
line 3
--
and so on
I want to create a script that will read each line of the file and insert it to
database.
I am new to php and maybe you could help me
Thanks
Hi,
I have a site where people meet and talk. I want to be able to send instant messages
to those who are online, but i do not know how to do it.
I need java? Can i do it in php?
Please give me a link or something to grab
Thanks
Hi,
I have a table with 2 fields: id_from and id_to.
I want to interogate the database and to display the results if the id_to is equal to
some current id OR id_from id_from is equla to saame current id.
I use this but doesn't work
$sql = "SELECT id_from, id_to FROM ids WHERE id_from ='$current
Hi,
I wanna create an instant private messenger for users who are online on my site.
Foe example: I have a list with online users. I select the user which i wanna send an
message. A popup window will apear, i write the message and click send. To that user
it will appear a popup window with my mes
If i have an array
$array = array(1, 2, 3, 4, 5, 6, 7)
How can i display the array element sepparated by (;) like this
$display = 1;2;3;4;5;6;7
Thanks
If i have an array
$array = array(1, 2, 3, 4, 5, 6, 7)
How can i display the array element sepparated by (;) like this
$display = 1;2;3;4;5;6;7
Thanks
For the last 2 days i haven't received emails. What's going on with this mailing list?
Hi,
I wanna create an instant private messenger. This kind of IM i have seen on dating
sites.
I've googled for such IM but i found nothing.
Can someone please help me with this?
Thank you
Howdy
Is there a time convertor written in php?
I mean to convert a specific hour/date in all world countries.
Hi there
I have a site driven by a database and I need a search engine...when someone enter a
word the script to search the entire database for that word and return the results.
Could someone give me the link to that kind of tutorial?
Please email me asap
Hi,
i have a script that searches a database after a specific word.
this function check the entered word
function valid_word($word) {
if(ereg("^[a-zA-Z0-9_]{3,15}$", $word)) {
return true;
} else {
return false;
}
}
If i search for a word is ok but when i searches for a phra
Hi,
i have a script that searches a database after a specific word.
this function check the entered word
function valid_word($word) {
if(ereg("^[a-zA-Z0-9_]{3,15}$", $word)) {
return true;
} else {
return false;
}
}
If i search for a word is ok but when i searches for a phra
where in the ereg("^[a-zA-Z0-9_]{3,15}$", $cuvant) i should place \s+ ?
- Original Message -
From: "Matt Matijevich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, April 22, 2004 3:34 AM
Subject: Re: [PHP] Problems with patterns
> you need to account fi
I have vBulletin installed on my site. A few hours ago a friend sent me a link to
securityfocus.com.
There, it is said that if i have vBulletin installed i could be vulnerable.
Here the script shown on the site
[form action="http://[victim]/register.php?do=register"; method="post"
style="d
Hi,
I've downloaded the GD library. Can someone tell me how do i install it on a windows
system?
I found in internet a few articles but i don't quite understand.
Thanks
Hi,
Where can i get the gd library for windows. I've googled but i can't find it.
Thanks
Hi,
I have this script:
$filename=plenar.mid;
$file_to_download=files/plenar123.mid;
$user_agent = strtolower ($_SERVER["HTTP_USER_AGENT"]);
header( "Content-type: application/force-download" );
if ((is_integer (strpos($user_agent, "msie"))) && (is_integer (strpos($user_agent,
"w
Hi,
I have this script taken form php.net
$filename=plenar.mid;
$file_to_download=files/plenar123.mid;
$user_agent = strtolower ($_SERVER["HTTP_USER_AGENT"]);
header( "Content-type: application/force-download" );
if ((is_integer (strpos($user_agent, "msie"))) && (is_integer (strpo
Hi,
I know that this is not an "xml list" but maybe you could help me.
I'm looking for a good tutorial in xml or a list with most of the xml tags. I've
googled for it but i can't find anything.
Could someone send me a link to that kind of tutorial?
Thanks for your reply !!!
Stefan
Hi,
How can i make a registration form that will remember my username and password every
time i login from the same computer?
I think i should set a cookie but i don't know how.
Thanks
Hi,
Is there any way to select all entries in the database except one entry or tho
entries?
Thanks
Hi,
How can i send email in php usig the smtp server? I'm looking for a tutorial or a good
script.
Thanks
Hi,
I have this array:
$array = array(element1, element2, element3, element4)
I want to list all elements of this array, so i used:
foreach ($array as $index => $element) {
$InputString = "$element";
echo "$InputString";
}
but this code lists the elements like thi
I've tried this but it is not working ...
Thanks anyway
- Original Message -
From: "Oliver Hankeln" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 17, 2004 4:04 PM
Subject: Re: [PHP] Problems with arrays
> Phpu wrote:
>
I want the element of the array to be displayed in a field
- Original Message -
From: "Steve Douville" <[EMAIL PROTECTED]>
To: "Phpu" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 17, 2004 4:12 PM
Subject: Re: [PHP] Problems w
Here is the code:
$element) {
$InputString = "$element";
echo "$InputString";
}
?>
- Original Message -
From: "Steve Douville" <[EMAIL PROTECTED]>
To: "Phpu" <[EMAIL PROTECTED]>
Hi,
How can i do a php script with a html extensionsuch as
http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html
Thanks
How to add a specified number of spaces to a string
I use this but won't work if $spaces is less than the length of the $string
$string = "bla bla bla";
$spaces = 5;
$string = str_pad($string, $spaces, " ");
Thanks in advance for your help
Hi,
How can i search a specific word in 2 tables
I use this but it is not working
sql = "SELECT a.product_id, a.".select_language('product_name_en',
'product_name_fr').", b.brand_name FROM products_accessories as a, brands as b
WHERE (a.".select_language('product_name_en', 'product_name
Hi,
I have this function
function validate_name($name) {
if(ereg("^[a-zA-Z0-9_]{2,30}$", $name)) {
return true;
} else {
return false;
}
}
If i enter a name like John for exemple everything is ok but if i enter John Doe the
function return false.
Where is the problem?
Thank
Hi,
I found a tutorial that creates thumbnails on the fly. The only problem is that
i want to save those thumbnails on the server.
Could anyone help me?
Thanks
I resolv the problem. Thanks anyway
- Original Message -
From: "Eakin, W" <[EMAIL PROTECTED]>
To: "Phpu" <[EMAIL PROTECTED]>
Sent: Wednesday, November 17, 2004 3:21 PM
Subject: Re: [PHP] Saving thumbnails
> Phpu wrote:
>
> >Hi,
> >I f
If i have 2 images:
$im1 = imagecreate (100, 100);
$white = ImageColorAllocate ($im1, 255, 255, 255);
$im2 = imagecreate (50, 50);
$black = ImageColorAllocate ($im2, 0, 0, 0);
How can i put $im2 over $im1 and result one single image? Is there a function
to do this?
Thank You
It's working Thanks a lot
- Original Message -
From: "Randy Rinehart" <[EMAIL PROTECTED]>
To: "Phpu" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 17, 2004 6:29 PM
Subject: Re: [PHP] Images problem
> I believe you
Hi,
I have an array named $ex_array.
I want to search the database and find those ids that are different from the
values in $ex_array.
I use this but didn't work
$sql = "SELECT product_id FROM products WHERE product_id <> '$ex_array' " ;
Thanks for any help
Hi,
If i have a php and mysql website...how many connections support mysql at one
time ?
Thanks
Hi,
If I have an sql interogation, for example:
$sql = "SELECT id, name FROM shop WHERE cat_id = $cat_id ";
For my server doesn't work...only if i put ... cat_id = '$cat_id'
I think i haven't set up apache..
What is the problem?
Thanks
Hi,
I have an array, for ex: $products=array(1, 2, 5 , 7)
I want to select all products from the database that has the ids of products.
I use this but doesn't work:
$sql = '';
foreach($products AS $products_id){
if(strlen($sql)){ $sql .= ' OR '; }
$sql .= "product_id = '$products_id'";
}
Hi,
I need to create multiple categories and subcategories using php and mysql.
Something like that
- category 1
- subcat 1.1
- subcat 1.2
- subcat 1.2.1
- subcat 1.2.2
- category 2
Does anyone know a godd totorial how to create this in pahp a
61 matches
Mail list logo