Hi @43102441, Since time is running out I would sugest you recreate the DB in the FWHA. If you sticked with only the necesary it shouldn't be alot of data to capture (15 min tops). Remember the FWHA will give the DB name you can name the tables as desired, so change your connection code to the new DB name. Hope you get right.by 46470107 - ICT3612 Sem 1
Hi @PI mogale I also had the same problem with winRar, then I used 7zip, that worked (browser firefox in both instances) Try other zipz and mayb make sure it is a .zip not .rar or something... Hope this helps.by 46470107 - ICT3612 Sem 1
Hi @FinalOracle, As I understand from our free host site creation your site name should be your student number followed by a word or phrase of your own choice... Thus only Prof Mac & the markers will see your site & code link at bottom, other students shouldn't be able to guess your site name... That also why we shouldn't past our url's anywhere on phorums for other stby 46470107 - ICT3612 Sem 1
Hi Mac, I see in my MyLife email that there is a new submission procedure from 24 April. We can't get into UNISA to download this pdf. Any other localion you can place it for us please. Thanking you in advance.by 46470107 - ICT3612 Sem 1
Hi Candice, Also check this line of code jus above the code you posted: Language: PHPpublic function Fetch(……, ……){ Tip make 100% sure about parameters...by 46470107 - ICT3612 Sem 1
Hi, I agree with Metalaniac, there is a problem with your query. By my experiance it sounds like the problem is incorrect values in your parameters, meaning you are passing & catching "incompatible" info. Paste your query function code and the code were you are calling it. Regardsby 46470107 - ICT3612 Sem 1
Hi @39413705, Your site has alot of bugs: 1. Landing page land on an index page that gives away alot of your "sensitave" info. 2. Calc.php does not validate any user input, the answer all the sudden aprears on top which some one might not even notice it should apear below the calc button and code link does not work. 3. String.php doesn't validate any user input. 4. Hyperliby 46470107 - ICT3612 Sem 1
Hi Pappy, Your availability table is OK (altough it doesn't need a avail_id, jus model_id & colour_id, but it doesn't hurt to have avail_id) In regard to the combined table you have to add below the "connection closed" the sample show in "availability" as yes or no, if you recall from Macs code he has a function that checks if the model is available in a spby 46470107 - ICT3612 Sem 1
Hi Tiyani, Are you sticking to Macs code or are you writing your own? If you are sticking to Macs code you have the Fetch function a bit wrong, you should leave function as it was and just fill missing bit. The Fetch function as in Macs code populates the form displaying for the user, thus you first will run the Fetch function for model to populate the model dropdown box then later run theby 46470107 - ICT3612 Sem 1
Hi @45352380, I think you can choose to have your classes on the page it's being used or on a seperate page. I have my classes on a seperate page classes.php, then on all other pages just have the "include" statement. But the book have an function __autoload as i show above, that in the book it says it will look for all classes in any .php pages and auto include them. Thiby 46470107 - ICT3612 Sem 1
Hi all, Is anyone using the __autoload function to include/require classes from seperate page? I can't get the function to work for me so i'm resulting to normal include statement which is ok for this project since i only have 1 class page but in futur i will want to use __autoload function if i have more than 1 class pages. The class Car is on a page called classes.php &by 46470107 - ICT3612 Sem 1
Hi April, Ag havn't started with portfolio pages between doing 3611 (vb.net) 2nd Assign, work with all the meetings and all else I find little time. Hopefully by end next week I should b finished with vb then can give php attention again. Hey all of us understand stuff diff thats why I like these chat forums so we can learn from each other. Stay in touch. Ps. remember your commentby 46470107 - ICT3612 Sem 1
@49912232 -mbux, If its for the course IDE's are not allowed as I understand, n++ or something alike sould be used. (Mac will b able 2 tell the dif...) 4 now I'm sticking with n++. If its for yourself: (I havn't tried any of these yet) http://en.wikipedia.org/wiki/List_of_PHP_editors http://stackoverflow.com/questions/116292/what-is-the-best-ide-for-phpby 46470107 - ICT3612 Sem 1
Hi April, me again... I was thinking and mayb Mac can help me if my thoughts on this is rite or wrong (I reallty would like to know if I'm starting to grasp the finer details of PHP, I see PHP in my futher career) In your function page u create an Array that catches users option from drop down, but your drop down can only have 1 value... Why create an Array that will always just receiveby 46470107 - ICT3612 Sem 1
Hi April, I agree with BasetsanaM, some of your code is not as I understand the Tut, just for advise use it... don't... I might be wrong. Calc.php: Your code dosn't check if deviding by 0 or if user entered letters in both fields. String.php: In some cases I think it should test if user entered numerics. Array.php: I don't see were you are creating or using an Array... Funby 46470107 - ICT3612 Sem 1
Hi Mac, I did test the code from suggested site... It worked beautifully just had to reajust rest of my code. Thanx a milby 46470107 - ICT3612 Sem 1
Tnax Mac, I will def try that code 2nite, u r the best lec @ UNISA. Now I understand why !$_POST didn't work well with 0. Hoping to make u proud again this year.by 46470107 - ICT3612 Sem 1
Hi there, Don't know if you solved your 0 problem yet... If not I had the same issue and got an answer. You are probably using the same statement I had to test if the field is empty... Language: PHPIf (!$_POST[';num1';]) rather use... Language: PHPIf ($_POST{';num1';] = "") For some reasom if u use not post it sees 0 as nothing, so ratheby 46470107 - ICT3612 Sem 1
It seems that the system is closed... Only Mac can tell 4 sure.by 46470107 - ICT2613
Well the flow of your code is not happening, You are trying to update the DB then set the form.. after you catch the primary key use it to set your form 1st to display data to the user to edit then update the DB. Also you are setting varible value at 2 places, only set variable value once. You realy should use formatted code tab also so we can better understand your code...by 46470107 - ICT2613
Hi Dumi, Waz up? u real quit... Did you get something right? As u can notice from 1 other post Mac might still accept l8 entries but it must be soon, he will subtract for l8nes. Holding thumbs 4 u.by 46470107 - ICT2613
Hi, I can see 1 mistake and & 1 .. well mater of opinion. The mistake: You create yout INSERT statement with $query, but you call your $result query with $store... Either change $query to $store or $store to $query in those 2 statements. Then the matter of opinion, you check if the user making the booking isn't already in your DB TABLE... That to me is not right.. you mean toby 46470107 - ICT2613
Hi Dumi, I would suggest u quickly create another account at FWHA, start with clean slate rather to fix broken @ last moments. Then you can confidantly try my previous suggestion, just create DB import or create same TABLES and edit connect page code. It should work, when all my pages where working on my PC thats what I did, becasuse of creating & delting mok data in the TABLES of my Pby 46470107 - ICT2613
Hi Dumi, If all your pages where working on your PC why not save the ones u got on FWHA then delete them... Reload all your pages from your PC back to FWHA then just create their DB, note the DB name and manage username & password, Import or recreate the TABLES as they where named on your PC with same fields. Then just change your connect page code as you had last. I'm also atby 46470107 - ICT2613
Hi Dumi, Hope your silence is due to u getting right. Will check in again l8r.by 46470107 - ICT2613
Hi Dumi, It seems in your other pages when querying you might still be refering to that old DB, make sure you are just refering to a TABLE name. Your new problem I don't have a clue... Sorry. I'm by no means an expert but I'll stay checking in online today since this last day to try n help you, The problem doesn't seem to be with your connect page but in other pagesby 46470107 - ICT2613
Ja u can del the db & recreate it but it wil give u same name 558815 if that is the 1 they gave u please make sure. The code i gave u on top should be your ENTIRE connect page nothing else, & on your other pages at the top you should only have the following to connect to DB: Language: PHP<?php include ("connect.php"); ?> Then in your query statement you justby 46470107 - ICT2613
O almost 4got, On FWHA you cannot create or import a DB with your own name you must use their DB, you can only import or create TABLES in their DB with your name of choice. Also notice that in my above, at the $connect statement 558815 should be same as your username for DB manage. & at $db statement 558815 is the DB name as they supply. Let us know if you got right.by 46470107 - ICT2613
Hi Dumi, I can see you like using variables but try this bit of code for connect. Jus make sure its the correct username, password and DB name. Language: PHP<?php //Connecting to Server & Database $connect = mysql_connect("localhost", "558815", "dumiweza2") or die ("Couldn';t connect to MySQL Server"); $db = mysql_sby 46470107 - ICT2613
Hi Candice, At Language: PHP$Insert=("INSERT INTO 535132, prop_agents (user_id, title, name, I Asume 535132 is your DB, then you are already connected to DB with your CONNECT Statement. So take out the DB name and c if that helps, the user_id is auto increment so dont INSERT it...also take out the ( infront of INSERT & at the end of statement Language: PHP$Insert="INSEby 46470107 - ICT2613