Search found 116 matches

by bawla
Wed Mar 24, 2004 9:36 pm
Forum: PHP - Code
Topic: parse error
Replies: 11
Views: 1050

this is after i added the semicolon

Code: Select all

Parse error: parse error, expecting `','' or `')'' in /home/krunk/public_html/ghetto.php on line 12
by bawla
Wed Mar 24, 2004 9:30 pm
Forum: PHP - Code
Topic: parse error
Replies: 11
Views: 1050

I'm sure you're just learning how to do stuff so i'll leave it there, but there is an infintely easier way to do what you're doing :o
tell me!! lol
by bawla
Wed Mar 24, 2004 9:01 pm
Forum: PHP - Code
Topic: parse error
Replies: 11
Views: 1050

even after i change that i still get the same error
by bawla
Wed Mar 24, 2004 8:51 pm
Forum: PHP - Code
Topic: parse error
Replies: 11
Views: 1050

parse error

i get this error Parse error: parse error in /home/krunk/public_html/ghetto.php on line 12 and this is the script im using <?php $points=NULL if (isset($_POST['ques1'] = 'ques1_true')){ $points+5; } if (isset($_POST['ques2'] = 'ques2_true')){ $points+8; } if (isset($_POST['ques3'] = 'ques3_true')){ ...
by bawla
Tue Mar 23, 2004 9:36 pm
Forum: PHP - Code
Topic: php test form
Replies: 5
Views: 1180

then if i want it to add to " $i" for example, if 'true' was checked would it be something like this ?

if (isset($_POST["ques10_true"]));
{
$i+7;
}
if (isset($_POST["ques11_true"]));
{
$i+5;
}
and so on
by bawla
Tue Mar 23, 2004 9:30 pm
Forum: PHP - Code
Topic: php test form
Replies: 5
Views: 1180

wut if i give for example

Question 10

i give different names for true and false

so $_POST['ques10_true'] or something
by bawla
Tue Mar 23, 2004 9:28 pm
Forum: General Discussion
Topic: What are you coding at the moment?
Replies: 17
Views: 1945

when it asks for the password it doesnt allow me to enter any
by bawla
Tue Mar 23, 2004 9:02 pm
Forum: PHP - Code
Topic: php test form
Replies: 5
Views: 1180

but wut if it needs to be true cuz it adds points for every true answer, heres the whole test so u know wut i mean --------------------------------------- If the statement is true add the points in parenthesis to your score. Scoring is given at the bottom of the test. 1. You've ever used an album co...
by bawla
Tue Mar 23, 2004 8:48 pm
Forum: PHP - Code
Topic: php test form
Replies: 5
Views: 1180

php test form

im trying to do a 50 question "test" with php and html form so far i got 10 question on html, just to work with and ill bulid on to it later on this is wut it looks like <form method="POST" action="ghetto.php"> 1. You've ever used an album cover or old envelope for a du...
by bawla
Mon Mar 22, 2004 10:47 pm
Forum: PHP - Code
Topic: specific code help
Replies: 11
Views: 962

o alright, i get it, thanks
by bawla
Mon Mar 22, 2004 10:11 pm
Forum: PHP - Code
Topic: stupid little syntax error - javascript and php
Replies: 30
Views: 2130

i should have thought before i posted
by bawla
Mon Mar 22, 2004 10:05 pm
Forum: General Discussion
Topic: PHP Editor
Replies: 10
Views: 1639

my bad, didnt even know this forum had a search feature,

and sami, wordpad is alright but i rather use notepad, but for php i like a php editor , with html its fine but php is a different story
by bawla
Mon Mar 22, 2004 10:03 pm
Forum: PHP - Code
Topic: stupid little syntax error - javascript and php
Replies: 30
Views: 2130

from wut i know of javascript <a href="javascript:window.open("picture.php?<? echo "type=$type&picture=$picture&title=$title"; ?>", "Picture Viewer","toolbar=0,status=0,menubar=0,scrollbars=no,resizable=no");> has to be one line, please correct me...
by bawla
Mon Mar 22, 2004 9:58 pm
Forum: PHP - Code
Topic: stupid little syntax error - javascript and php
Replies: 30
Views: 2130

for one thing you don't have a semicolin[;] at the end of your lines
by bawla
Mon Mar 22, 2004 9:55 pm
Forum: PHP - Code
Topic: specific code help
Replies: 11
Views: 962

Code: Select all

if(mysql_num_rows($result)){
  $row = mysql_fetch_assoc($result);
  echo 'Username: '.$row['username']."<br>\n";
theres nothing to add