Search found 13 matches

by after_shox
Sat May 22, 2004 1:19 pm
Forum: PHP - Code
Topic: Where select
Replies: 4
Views: 380

nice one, thanks for everyones help :)
by after_shox
Sat May 22, 2004 1:12 pm
Forum: PHP - Code
Topic: Where select
Replies: 4
Views: 380

cool it worked :wink: But why ?

Thanks
by after_shox
Sat May 22, 2004 12:49 pm
Forum: PHP - Code
Topic: Where select
Replies: 4
Views: 380

Where select

Having a bit of a headache with this :roll: <?php mysql_pconnect("localhost","**********","******"); mysql_select_db("douple_Newdata"); $result = mysql_query("select * from counter where id='3'"); mysql_fetch_array($result); $row = mysql_fetch_array(...
by after_shox
Mon May 17, 2004 3:17 pm
Forum: PHP - Code
Topic: php Frommail
Replies: 3
Views: 301

i get

Code: Select all

`T_VARIABLE' or `'$'' in /home/douple/public_html/link/send2.php on line 5
by after_shox
Mon May 17, 2004 1:52 pm
Forum: PHP - Code
Topic: php Frommail
Replies: 3
Views: 301

php Frommail

Is there a formmail for php that will just send me whatever text boxes are in the form by email so i dont have to specify them?
by after_shox
Fri Mar 26, 2004 4:30 am
Forum: Databases
Topic: Mysql connect
Replies: 1
Views: 330

Mysql connect

Can you use the Mysql control centre to connect to your web host and admin it that way instead of using phpmyadmin ? I wanted to use the control centre as it seems alot easyier/quicker than phpmyadmin which is all my host seems to give me.
by after_shox
Wed Mar 24, 2004 12:33 pm
Forum: PHP - Code
Topic: Formatting Data
Replies: 6
Views: 765

No that would just do the same. Can i select an individual record from the query that is returned and then call it from wherever i want ? Eg if i get 10 rows of data from the mysql table can i echo row 7 wherever i want ?
by after_shox
Tue Mar 23, 2004 4:17 pm
Forum: PHP - Code
Topic: Formatting Data
Replies: 6
Views: 765

"Well instead of looping through it, how about just using the array and echo()'ing out the values?"

Do you mean i can call individual rows from the array ? Didnt know i could do that. Can you point me in the right direction ?
by after_shox
Tue Mar 23, 2004 2:59 pm
Forum: PHP - Code
Topic: Formatting Data
Replies: 6
Views: 765

Formatting Data

I am building up a query with php that gets data from mysql and displays it in some nice preformated html tables i have made. It works good but i want to be able to position the boxes ( tables ) exactly where i want them. Im currently using a while loop and an echo statement to print out all of the ...
by after_shox
Sat Mar 20, 2004 8:46 am
Forum: PHP - Code
Topic: Parse line No
Replies: 1
Views: 366

Parse line No

Im getting a parse error on a line that has nothing on it ? I didnt think this was possible. But if theres nothing on the line how can i fix it ?
by after_shox
Wed Mar 10, 2004 2:36 pm
Forum: PHP - Code
Topic: php function
Replies: 4
Views: 625

Yeah think i got it. Thanks for your help. :)
by after_shox
Wed Mar 10, 2004 1:39 pm
Forum: PHP - Code
Topic: php function
Replies: 4
Views: 625

Thanks but how to i get the value back so i can use it in any statement as a variable ? The "Gobal" option ?
by after_shox
Wed Mar 10, 2004 11:53 am
Forum: PHP - Code
Topic: php function
Replies: 4
Views: 625

php function

ok this may seem stupid but i just spent about an hour trying to get php to pass a variable to a function. Can someone tell me why this doesnt work ?

<?php

$num ="10";


function square ($num)
{
return $num * $num;
}
echo "$num";

?>