Search Results

Showing results 1 to 38 of 38
Search took 0.01 seconds.
Search: Posts Made By: sam1 ; Forum: PHP and child forums
Forum: PHP Apr 12th, 2009
Replies: 4
Views: 901
Posted By sam1
hi,

Is there a way to include a php file in .tpl file.

basically i have a menu (javascript,html and css based) that i want to include in the .tpl file.

thanks
Forum: PHP Mar 17th, 2009
Replies: 1
Views: 234
Posted By sam1
hi,

i have this script, which i want to order by name. but when i say order by name asc at the end i get error:

here is the bit i am changing

$genre_id = $_GET['id'];

$items =...
Forum: PHP Feb 26th, 2009
Replies: 4
Views: 902
Posted By sam1
I got the answer to second question basically i will pass the id of textbox to insert.

but how would i actually write the url dynamically upon uploading, to database. say i am uploading into a...
Forum: PHP Feb 26th, 2009
Replies: 4
Views: 902
Posted By sam1
hi,

I am trying to learn how to upload multiple Music files to server then save information about them in database e.g. albumname, filename, type and maybe url. i have few questions:

1. would i...
Forum: PHP Feb 16th, 2009
Replies: 4
Views: 286
Posted By sam1
thanks for the reply. basically i have a php file but when i include html tags the redirect doesnt work. what should i do to make it work .

should i create .html file and have html tags then...
Forum: PHP Feb 16th, 2009
Replies: 4
Views: 286
Posted By sam1
Hi,

I am using redirect on my index.php to redirect to a directory in server. I havent used any html tags etc just <?php redirect ?>
i want to use html meta data and tags as well.

as i am a...
Forum: PHP Mar 5th, 2008
Replies: 25
Views: 7,348
Posted By sam1
as said above just use the where clause and u should be fine mate
Forum: PHP Sep 20th, 2007
Replies: 5
Views: 4,879
Posted By sam1
ok i will give you an example:

<html>
<head>
</head>
<body>
<?php
$host=""; // Host name
$username=""; // Mysql username
$password=""; // Mysql password
Forum: PHP Apr 19th, 2007
Replies: 7
Views: 2,402
Posted By sam1
how about a library system for your uni
Forum: PHP Apr 19th, 2007
Replies: 1
Views: 1,128
Posted By sam1
k,

i want to display error message from my php file to html file.
say i have this in contact.php

if(empty($visitormail)){ $message = "enter email"; }

now in html file do i have to have this...
Forum: PHP Mar 24th, 2007
Replies: 25
Views: 7,348
Posted By sam1
no worries guys it is solved:cheesy:
Forum: PHP Mar 23rd, 2007
Replies: 25
Views: 7,348
Posted By sam1
hi,

I am creating a form for user to update their details which is saved in the database. So far i can show their details in the form where i have a submit button but the updating part doesnt...
Forum: PHP Mar 22nd, 2007
Replies: 3
Views: 833
Posted By sam1
hi,

I am trying a login page for my website. the login page works fine and i can take the username using sessions to the welcome page.

now my question:

would i be able to retrieve(show) data...
Forum: PHP Mar 20th, 2007
Replies: 7
Views: 1,759
Posted By sam1
thanks for your time and effort, now i understand it clearly. yes i went with your advice and i am happy now, as before i was worried about the space it takes to store all those data. thanks again
Forum: PHP Mar 20th, 2007
Replies: 12
Views: 3,319
Posted By sam1
^^ really helpful and correct files mate. do u mean you are beginner and just did them or you mean in first try :).

In both situation great help for beginners like me thank you :)
Forum: PHP Mar 20th, 2007
Replies: 7
Views: 1,759
Posted By sam1
rhyan, i am implementing a shoutbox where i store the details in mysql. now if say 1000 users give a shout then it is gonna be alot of records in database.

now i want to delete the old shouts....
Forum: PHP Mar 20th, 2007
Replies: 7
Views: 1,759
Posted By sam1
hi,

i got a ID in the table, as the above code shows i did delete it but all the table is getting deleted. i want to delete first few rows..

say i have 10 records and i want to delete first 5....
Forum: PHP Mar 20th, 2007
Replies: 7
Views: 1,759
Posted By sam1
ok some update:

i tried to count the number of rows and if it is more then four i delete the records in table:


$query = mysql_query("SELECT * FROM shoutbox");
$number=mysql_num_rows($query);...
Forum: PHP Mar 20th, 2007
Replies: 7
Views: 1,759
Posted By sam1
hi,

is there a way to delete data in mysql using the 'date' column, i have a table with name message and date. if the date is say yesterday then delete the row....

it is for the shoutbox i am...
Forum: PHP Mar 18th, 2007
Replies: 12
Views: 3,319
Posted By sam1
crazynp :

thanks alot mate, i put null instead of ' ' and it wrote id as value 1...

thanks :cheesy:
Forum: PHP Mar 18th, 2007
Replies: 12
Views: 3,319
Posted By sam1
thanks for the replies and advices everyone.

crazynp : i tried the values but didnt work.

digital-ether: i tried the error checking but no error is output in meanwhile no data is entered...
Forum: PHP Mar 14th, 2007
Replies: 12
Views: 3,319
Posted By sam1
hi,

it is giving me headache to write data from a php file to mysql( i can read from the table but cant write) here is my connect.php which connects to mysql:

<?php
$mysql_host = "localhost";...
Forum: PHP Mar 12th, 2007
Replies: 11
Views: 4,452
Posted By sam1
I did

telnet smtp.blueyonder.co.uk 25 and it did work but when doing telnet smtp.blueyonder.co.uk 26 it failed.

this is the code i have used :

<html>
<head>
<meta http-equiv="Content-Type"...
Forum: PHP Mar 12th, 2007
Replies: 11
Views: 4,452
Posted By sam1
As i said i put blueyonder stmp and my gmail account there.... the server runs fine, but when i send the email i dont receive it in my gmail account.
Forum: PHP Mar 11th, 2007
Replies: 11
Views: 4,452
Posted By sam1
how would i do it, I tried putting in mail function mail.blueyonder.co.uk as i am using blueyonder broadband and my email address for the email. but i didnt get any results..............is that...
Forum: PHP Mar 10th, 2007
Replies: 11
Views: 4,452
Posted By sam1
^^no i am not using WAMP, it is apache with php5. :rolleyes:
Forum: PHP Mar 10th, 2007
Replies: 11
Views: 4,452
Posted By sam1
hi,
I am using my own computer, how do i find my smtp server. I tried google but didnt quite get it....
Forum: PHP Mar 9th, 2007
Replies: 11
Views: 4,452
Posted By sam1
hi,

I am creating a contact us page with php and html. everything works except for the actual receiving of the email. I am using php and apache on localhost but i am connected to internet.

What...
Forum: PHP Jan 8th, 2007
Replies: 3
Views: 1,590
Posted By sam1
hi,

I want to start learning php....

but i dont knw how to run it i mean is there any free compilers available. i tried installing apache and php bt couldnt figure it :(

help please
Forum: PHP Mar 17th, 2006
Replies: 4
Views: 1,456
Posted By sam1
thank you guys!!!
Forum: PHP Mar 12th, 2006
Replies: 4
Views: 1,456
Posted By sam1
hi everyone,

say i have a php code that works fine. How would i test it? can i use tomcat server to run the code or there is another way?

ps im new to php :p

thank you
Forum: PHP Jan 10th, 2005
Replies: 1
Views: 1,887
Posted By sam1
i have created this web page with html and php where i need to set cookies to block users voting more then once i have used something like this code:

if (isset($_COOKIE["x"]))
{
echo...
Forum: PHP Jan 8th, 2005
Replies: 5
Views: 2,732
Posted By sam1
hi guys

i have created a html and php based voting page. i want poeple to only vote once can u give me advice either i should use cookies or ip address. and if u get me started as well i will...
Forum: PHP Jan 5th, 2005
Replies: 0
Views: 1,570
Posted By sam1
can you plz show me the simple mutli poll handler example thanks alot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Forum: PHP Jan 3rd, 2005
Replies: 5
Views: 2,224
Posted By sam1
yes plz if u got one example SHOW ME THANKS!!!!!!!
Forum: PHP Jan 3rd, 2005
Replies: 5
Views: 2,224
Posted By sam1
so how can i restrict it so that a voter can only vote once!!!!!!!!!!!!!!!!!!!!!
Forum: PHP Jan 2nd, 2005
Replies: 5
Views: 2,224
Posted By sam1
hello
I have created a website where voters vote for their favourite website. I have used radiobox.
does anyone know how to count the votes in terms of percentage after the user has voted. The...
Forum: PHP Dec 10th, 2004
Replies: 1
Views: 1,648
Posted By sam1
hello
I have created a website where voters vote for their favourite website. I have used radiobox.
does anyone know how to count the votes in terms of percentage after the user has voted. The...
Showing results 1 to 38 of 38

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC