No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
25 Posted Topics
If your going to use the ob_start() tag dont forget the ob_flush() tag right at the end of the page. But obviously its better if you can actually sort the problem out.
Hi, I'm having a major problem with passing GCC link flags in Xcode. I created a C program that creates and runs a neural network using the FANN library. When I compile this command line I use the command [CODE]gcc main.c -o train_test -l fann[/CODE] to link the fann library …
Are you using the Apache that comes with OSX? If so, have you tried MAMP? I know it may be frowned upon but personally I've only ever had trouble with the pre-installed apache. MAMP has always worked for me well. Just write a script to start the servers on startup …
[CODE]$result=mysql_query($sql) or die(mysql_error()); echo "<table border=1>"; echo "<thead><th>NAME</th> <th>ORDER DETAILS</th><th>TIME</th> </thead>"; while($row = mysql_fetch_array($result)) { print '<tr><td>'.$row['NAME'].'</td><td>'.$row['ORDER_ID'].'</td><td>'.$TIME_VARIABLE.'</td></tr>'; } echo "</table>"; [/CODE]
I am attempting to dump a portion of my table after 7 days. This table will hold access logs so will fill up pretty quickly. I'm not too sure if this is entirely possible but this is what I'm trying to use. Any help or a push in the right …
Hi, this problem has had me stumped for weeks now. I have written a compiled CGI script in C to rotate my log files each day. The problem is that I don't seem to be able to execute it from inside PHP. It runs fine if I access the file …
I've created a C script that rotates logs on my web server. It needs to receive 2 arguments, one whether the rotated log will be zipped and the other is the location of the log file. This works fine in command line but I cannot get it to execute with …
Hi I'm writing a piece of code to update a users password when they have forgotten it, but, for some reason I cannot seem to get it to work. It is always echoing out that the secret answer is wrong. It's probably something stupid that I have looked over, if …
Hi, as a bit of background, My Uni have lately implemented a CGI script so you have to log in to be able to use the wireless. This would be OK but they are terrible programmers and instead of timing out after a period of inactivity it will time out …
Should it not be, [CODE]$checkz=mysql_query("SELECT DISTINCT poster FROM postcomment WHERE postid='".$po."' AND ((poster !='".$poster."') OR (poster !='".$user."'")));[/CODE] I can't see what the extra brackets were doing and I capitalized the AND and OR, I find it easier to read the statement then.
If I understand right you'd like a link that doesn't go anywhere if they're not an admin. Something like [CODE]if($user= "admin"){ print '<a href="page.php" class="enabled-link">Admin Section</a>'; } else{ print '<a href="" class="disabled-link">Admin Section</a>'; }[/CODE] with something like this in your css [CODE] .enabled-link { color:blue; text-decoration:underline; } .disabled-link{ color:grey; text-decoration:underline; …
The curly brace won't be on line 1965 that's just where PHP is getting the error as it expects something else to come. Try using a program that pairs up the braces like notepad++, Kate or Bluefish. Or even just spend a bit of time going through the code and …
I'm not sure if anyone will mind me saying this but I'm sure this forum is for HELP with PHP issues. Not for someone to come to for cheap solutions. You say you're not an expert in PHP but surely having a go at it and posting your ideas for …
Hey, I'm having some trouble building code to insert values from my form. The form prints out from the username, whether the account has been confirmed and the level of the user from the database. I am having trouble getting the data to go back in once amended, this is …
try something like may have to play around with the quotation marks a bit [CODE] while ($row=mysql_fetch_array($result)) { $name=$row["name"]; $options.="<OPTION VALUE=\"$name" <?php if (isset($_REQUEST['name']) && $_REQUEST['name'] == "Mr") {echo 'selected="selected"';} ?>>".$name.'</option>'; } [/CODE]
save your files in the folder htdocs located here: C:\xampp\htdocs
Yeah 'and' will work e.g. [CODE]'SELECT * FROM team_members WHERE name = " ' . $variable . ' " AND team = " ' . $second_variable . ' "';[/CODE]
Hi, The problem is that a Uni I am creating a PHP/MySQL based game. I have got it working for multi user movement and picking up objects but the trouble im having is implementing the puzzles into it. I have the user table which has my puzzles as: puzz_1, puzz_2, …
For some reason this is killing me, I am trying to update the field available to '-1' and don to '0' when the user submits the correct string into the input box, the thing I cant work out is why available wont update but don will the code is below …
Ok so heres the problem, my girlfriends laptop (toshiba satellite L100-170) will not start, it's very tempermental sometimes it will and sometimes it won't. If it was a PC I would go straight for a short on the motherboard but I'm not sure will be that :/ If you take …
Kate or Bluefish are both good for Linux, I prefer Kate since I had some issues with Bluefish's syntax highlighting failing. I would recommend using something basic like one of these which wont help with your code to start with, then you'll actually learn it rather than rely on the …
Sorry if I don't make this too clear, what I'm doing is creating a text based adventure game in PHP, a lot like Colossal Cave. I do not want to recreate my databases for every user so I hoping to write all the user date into a file and read …
Hi, for one of my projects at uni i have to create a PHP based text game, i am basing mine on the colossal cave game. i am trying to use the explode function to split my string up into variables to check against my database but am getting the …
I am writing a PHP registration form but when i view my page i cannot see the form, any ideas all my code is below. i have noticed that if i remove the [CODE]print '<h1> Please Register To Continue </h1>'; print '<style type="text/" media="screen> .error { color: red; } </style>';[/CODE] …
The End.
daryll1