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
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,
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,
If i have a php and mysql website...how many connections support mysql at one
time ?
Thanks
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,
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 found a tutorial that creates thumbnails on the fly. The only problem
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 can use imagecopymerged to do this.
http://us2
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',
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?
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 do a php script with a html extensionsuch as
http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html
Thanks
Howdy
Is there a time convertor written in php?
I mean to convert a specific hour/date in all world countries.
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
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
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
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
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 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 this:
I want the element of the array to be displayed in a select 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 with arrays
What are you outputting? html
-
From: Steve Douville [EMAIL PROTECTED]
To: Phpu [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 4:23 PM
Subject: Re: [PHP] Problems with arrays
Can you give us the code from select to /select?
- Original Message -
From: Phpu [EMAIL PROTECTED]
To: Steve Douville
Hi,
How can i send email in php usig the smtp server? I'm looking for a tutorial or a good
script.
Thanks
Hi,
Is there any way to select all entries in the database except one entry or tho
entries?
Thanks
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,
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,
Where can i get the gd library for windows. I've googled but i can't find it.
Thanks
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,
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,
win {
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
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
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
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
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 fir white
Hi
I have this form:
form action=modify.php method=POST enctype=multipart/form-data
?
$sql = SELECT * FROM table Where id_cat=.$_POST['id_cat'];
$result = mysql_query($sql);
while ($row=mysql_fetch_array($result))
{
print 'Categoryinput type=text name=nume_categorie
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 more than one picture your
current setup
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
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
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);
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't know how to
do it...
--
PHP General
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
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'][$i]
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
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
Cc
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
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
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
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 a table like this:
- product_id-mark_name-category_name -
-1- aaa
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 the category catg 1 the result is
Name: aaa
Name: aaa
Name: ddd
As you can see
=.$_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: [PHP] Big problemneed help
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: Tuesday, July 08, 2003 1:19 AM
Subject: Re: [PHP
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 do not know how to dump all of the results
into an array can you help me with this one please
59 matches
Mail list logo